> > - I have managed to add listeners to get the basic user events, although I > think they're a bit clumsy - suggestions welcome >
Rather than using the "idle" event, have you tried "bounds_changed"? > - I seem to be able to manually construct a url to pass to my kml service > and then display the results (currently set as a region covering western > Europe). I can also capture the current view using getBounds(). But > trying to shape this into a standard BBOX format (removing parentheses and > spaces) seems to break it, no matter what I try, so my ultimate aim of > constructing the url using this has so far failed. > Instead of depending on the toString() implementation of the LatLngBounds object, manually construct your string. Something like: mybbox.getNorthEast().lat() + "," + mybbox.getNorthEast().lng() + "," + ... > - when it has changed the view and layer, the listener that handles the > placemark click seems to be lost, I assume because I've emptied the > original layer and reloaded it? > Yup. You'll need to re-attach that even listener every time you call "new google.maps.KmlLayer" > - This was only intended as a 'quick win' re-using the existing kml, but > I'm now starting to think that the effort I am putting into this would be > better spent re-engineering it all to deliver json. Agreed?! > Up to you - but as you said you are close. > - I've also now got the 'bug' and want to try more things with this, like > custom icons (including a clear indication of the 'current' icon), a > 'loading' image when data is being fetched, user input queries (the kml > service accepts a simple q= to run a text search), and enhanced > navigation. I'd also quite like to display more placemarks and cluster > them. > But before I plunge headlong into anything I'd welcome any advice, whether > it's quick fixes, or longer-term approaches. > > Thanks, James > It's a cool maps project. Just have fun with it. -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-maps-js-api-v3/-/n5DVBdI23tsJ. 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-js-api-v3?hl=en.
