On Apr 2, 12:30 pm, Yasir <[email protected]> wrote:
> thanks Rossko and Pil for your replies.
>
> I've uplaoded the html file with the javascript, that I have worked on
> so far:www.iborough.co.uk/tourfilter.html
>
> The original Mapplets XML file that I am trying to work on is 
> here:http://www.iborough.co.uk/example_5_3_map_concert_data.xml
>
> so far I have managed to include the loadmap function. The other
> things involve alot more Javascript. I think it's the following
> section that needs to be edited for it to start working:
>
>         // find the proper zoom level for the bounds
>         // and center the map so that all of the markers are visible
>         map.getBoundsZoomLevelAsync(bounds, function(level) {
>                 map.setCenter(bounds.getCenter());
>                 map.setZoom(level);
>
>                 // don't render the list until we've centered the map
>                 _gel("content").innerHTML = displayHTML;
>                 _gel("status").innerHTML = "Done loading concert data";
>         });
>
>         // resize the mapplet window height
>         _IG_AdjustIFrameHeight();
>
> }
>
> function loadData(city) {
>
>         // make sure a city has been selected
>         if (city == "")
>                 return;
>
>         var url = "http://www.iborough.co.uk/xml/"; + city + ".xml";
>
>         // update the status field and clear out anything we have in
> 'content'
>         _gel("status").innerHTML = "loading...";
>         _gel("content").innerHTML = "";
>
>         // fetch the XML data from the url
>         _IG_FetchXmlContent(url, _IG_Callback(handleFetchContent, city));
>
> }
>
> I have read that Google Maps API calls are synchronous wheres
> communication between Mapplet and map is asynchronous. So I will have
> to somehow change the getBoundsZoomLevelAsync call.

Where did you read that?  Most of the calls from the API that return
data are asynchronous.


>
> Also, in the loadData function, _IG_FetchXmlContent(url, _IG_Callback
> (handleFetchContent, city)); has been used to retrieve the remote
> data, but with Google Maps API, I have to use GDownloadURL and GXml.
>
> Any help? Thanks, Yasir
--~--~---------~--~----~------------~-------~--~----~
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