egeloen / IvoryGoogleMapBundle

Google Map API v3 integration for your Symfony2 project.
https://github.com/egeloen/ivory-google-map
MIT License
217 stars 152 forks source link

Directions, long distances polyline issue #69

Closed darkons closed 11 years ago

darkons commented 11 years ago

Hello Egeloen,

I'm drawing routes with EncodedPolyline but when I set a long distant points I get inaccurate lines.

See picture:

Image and video hosting by TinyPic

Thank you!

egeloen commented 11 years ago

It is a known limitation of the encoded polyline. The encoded polyline is just a string representation of consecutive coordinates separates by a line, so, it is normal you get this output on a deep zoom.

darkons commented 11 years ago

Hello again Egeloen,

Is there any other way to paint smooth routes without using polylines? (like native gmaps directions routes)

Thank you, regards!

egeloen commented 11 years ago

@proecil Yep but it is not implemented in the bundle currently. The solution is to use the javascript DirectionsRenderer which is what you can see on the official google map app.