Hey all!
Please get a look at: http://www.d-ef.de/dpsg/
I took this example for drawing and editing polygons! (I deleted the
marker and line part.)
And I also added some custom labelled markers.
But I want to make the polygons deletable! This should somehow work
with map.removeOverlay(poly). I want to link it behind a hyperlink
(see the "x" icon on the top left corner when you create a polygon).
How do I do it? Unfortunately I am not really familiar with JS+DOM
yet.
What I also want to do is to rename the polygon or at least a label
referenced to it -- which should happen when you click the other icon
in the featuretable.
There are also a lot more other things I want to do...
For example I wanted to give every marker (it has got a tree icon; and
it's on random points/coordinates at the moment) some more background
information in that InfoWindow. So I tried to put
GEvent.addListener(marker[i], "click", function() {
marker[i].openInfoWindowHtml("foobar #" + i.toString());
});
but it seems this doesn't work with arrays? What am I doing wrong.
I want to add the centroids to the polygons (ok what I really want to
do is to add another label with for example the name of the area). But
this is more or less a methematical "challenge".
Thanks for your help!
I really do appreciate it! :)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Maps API" 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-API?hl=en
-~----------~----~----~----~------~----~------~--~---