Re: Save the markers on a map back to an xml file
After I get all this information into an array, how would I pass it back
to a server side script like php?
www.wilsonvisuals.com wrote:
> The first step is that you need to have a global array that stores all
> of your markers. so you might do someting like this:
>
> GlobalMarkerArray[i] = CreateMarker( ... );
>
> The nice things is that you can add data to the marker by doing
> something like
>
> GlobalMarkerArray[i] = new Array();
> GlobalMarkerArray[i].mydata.info = "This should be displayed as an info
> window"
> GlobalMarkerArray[i].mydata.popularity = 10;
>
> which may or may not be in the CreateMarker function
> etc.,
>
> For the event listener I'd write something like:
>
> GEvent.addListener(marker,'click',function()
> {
> marker.openInfoWindowHtml(marker.mydata.info);
> });
> -----------------------------------
> http://www.wilsonvisuals.com/maps/
>
>
0 Comments:
Yorum Gönder
<< Home