I
I
Ivan Prilepsky2011-09-04 21:58:49
Google Maps
Ivan Prilepsky, 2011-09-04 21:58:49

Google Maps API: DirectionsRenderer

Google has an example . Everything is fine in it, the route is being built and displayed, but if I write

dirRenderer: new google.maps.DirectionsRenderer( {'preserveViewport': true,
'draggable': true }

then the route will be built, but it will have to be searched on the map (i.e. the map will not automatically display it).
I read the documentation and I know that if you set preserveViewport to true, then there will be such a picture.
But maybe someone came across and knows how to make the route automatically display while maintaining preserveViewport and draggable?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question