On Dec 30, 2:46 am, John Rom <[email protected]> wrote: > hey there, > > i've been writing a javascript-based map of all of the prisons and > universities in the united states that i could find information for. > unfortunately, when loading all of the information, it's obviously too > much to load 3,000 markers in one go. therefore, i've been trying to > attach the markerManager to the database, but I haven't been able to > push the array into the manager just right. additionally, i've been > trying to figure out how, using this, i would be able to attach all of > the information (address, type, etc) to the addMarkers function. i'm > relatively new to all of this stuff so it feels kind of like learning > calculus at a japanese university. > > if you feel like adding another layer to it, i'm trying to figure out > how to split the markers up by type. before trying to implement the > markerManager, we had it so that we used a new GMarker (point, > customIcons("type")) command, but I don't know how to incorporate into > the array or the addMarkers() function.. if you have any ideas, please > let me know. > > I forgot to send a link. It is > here:http://insideoutcenter.org/iomaps/map-beta1.0.html
I get fairly obvious javascript errors on that page (you need to include the API before any code which uses it, like the marker manager). I don't see any attempt to call "getMarkers" GDownloadUrl is asynchronous, so you will have to call "getMarkers" in its callback routine after the batch array has been populated. Have you seen Mike Williams' tutorial? http://econym.org.uk/gmap/ -- Larry > > thanks, > John Rom -- 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.
