On 13 feb, 17:22, Marcelo <[email protected]> wrote:
> On Feb 13, 4:46 pm, Grapefruit <[email protected]> wrote:
>
>
>
> > What do I have to do to hide/show the polygons?
>
> .setMap(null);
>
This is working, but only when:
google.maps.event.addListener(poly, 'click', function() {
poly.setMap(null);
});
I want to let it disappear when I click on a button outside of the
map.
What do I need to put in the onClick=""? I can't figure it out...
I've tried onClick="remov()"
with
function remov() {
poly.setMap(null);
}
but then nothing is happening...
Yes, i'm a JS noob :)
--
You received this message because you are subscribed to the Google Groups
"Google Maps JavaScript API v3" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-maps-js-api-v3?hl=en.