Hi Ashwin, Each marker and DirectionsRenderer can be displayed on only one map. You will need to create separate objects for each map. You can, however, bind the markers' positions and the directions' result, so that if you change it on one map, it's changed on the other.
Let me know if that helps. I'd be curious to see the results! Thanks, Susannah On Oct 18, 10:41 pm, Ash <[email protected]> wrote: > Hi all, > > Can anyone help me to show same map in two div's on the same page. > > Currently I am using bindTo() function to do this. I am able to set > the zoom and location of the two maps same but cannot plot the > directions and location markers on the second map. > > I am using below code to bind the two maps. > map1.bindTo('center', map2, 'center'); > > Please answer me with your valuable suggestion > > Thanks, > Ashwin -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" 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-js-api-v3?hl=en.
