[Google Maps API v3] multi kml layers?

2011-09-14 Thread wang Chen
Hi, Is it possible to use 2 KML files on a Google map in the same time? One for paths (streets) and the other one for placemarks (interesting places such as restaurants, stores). The reason I can't put them in one kml file is that I need to display more than 1000 features. Thanks. -- You rec

[Google Maps API v3] How to ceate our own base map and use our own geodata

2011-03-25 Thread wang Chen
Sorry my question may not be directly related to Google Maps JS API. I work for a local government and we plan to start a GIS project. I'm checking the possibility to implement it with Google Map. Now I have two questions: 1. how to create our own base map (or how to customize the default Google ba

Re: [Google Maps API v3] Re: How to switch kml file in listener

2011-03-23 Thread wang Chen
Rossko, Thanks a lot for your response. I just start to learn Google Map Api. Do you mean I just need the following code in listener? Thanks a lot. google.maps.event.addListener(map, 'idle', function() { number++; if (number%2==0) //decide which kml file shoulded be used ctaLaye

[Google Maps API v3] How to switch kml file in listener

2011-03-23 Thread wang Chen
I'd like to learn how to switch to a different kml file in listener after any mouse action. The following code only works for the first time and no mouse event any more. I believe something wrong to reset map in listener method. Could any one tell me how to reset map in listener? thanks a lot va

[Google Maps API v3] how to add listener to get bounds after mouse action

2011-03-21 Thread wang Chen
I'm trying to get new bounds after mouse action (zoom in/out, pan). One post says that we can use idle. However the following code doesn't work except the first time when the page is loaded. Could any one kindly tell me how to add listener to get bounds after mouse action. google.maps.event.addLis

[Google Maps API v3] How to create a custom overlay from imagery

2011-03-14 Thread wang Chen
In an article about how to render many markers ( http://code.google.com/apis/maps/articles/toomanymarkers.html ) , it's said that "if you'd prefer to perform computations on your own server, this can be accomplished by creating a custom overlay from imagery that is pre-rendered, or rendered on the

[Google Maps API v3] why getBounds value is different from the value set by fitBounds()

2011-03-05 Thread wang Chen
Hey, I just start to learn Google Maps api. I copy the following code from Google Maps documents to set map bounds and add an alert statement to display the bounds I just set. However I find that the getBounds value is different from the value I send to fitBounds(). The value I send to fitBounds(