Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I want to combine maps from Google maps, Wikimapia, Mapmyindia and Bing maps on one web page with synchronization like in Dual Maps.

For example, if I pan on Google maps it should show the same location on all maps.

Does anyone know how to do this?

Any help is appreciated.

share|improve this question

2 Answers 2

Make sure all maps have an API first! Then what you need are event listeners, especially for the dragstart, drag and dragend events. (These are from Google Maps API v3) If you declare an event listener for an event, say for the drag event, there is an object returned in the function. Again, in google maps api v3 it is the event object, which has the latLng property which is an object of google.maps.LatLng type (ergo this contains the coordinate). So you should declare these event listeners for all the map instances on your page and you should include commands to change all the other map instance's center/zoom etc. in each of the event listener functions.

I hope that the above made sense to you but if you have any questions feel free to ping me!

share|improve this answer
    
Thanks for your reply. @Tamas. I am not a Programmer but understand Google map API Code to some extent.Can you do this for me. if i got one. will definitely pull myself into it. thanks Once again. –  Mr. X Sep 13 '12 at 5:08
    
To what extent are you familiar with Javascript and Google Maps API? I can help you of course, but I am not sure if this is the right place to change contact details. Am I right? –  Tamas Sep 13 '12 at 7:45
    
I know only the basic. can say myself as "Beginner", i am just started learning it.if i have source code for it. it will be great. thanks for helping. –  Mr. X Sep 13 '12 at 8:47

You can do this using openlayers. You can create multiple divs, with a map in each div and update all of the other maps based on the one which is changed.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.