On Jan 18, 1:11 pm, "[email protected]" <[email protected]>
wrote:
> 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.

I don't see any polygons or any way to add them to that page in IE6.
(javascript:startShape(); in the address bar works, but...)

If you want to access the polygons created, you need to keep
references to them.  The way I usually do that is create a global
array of polygons and add each one to that as it is created, similar
to the way Mike Williams uses the global array of gmarkers in his
tutorial. Your marker array is not an example, it is local to the
initialize function.

>
> 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to