I'm trying to draw an encoded polyline via Google Maps but getting the wrong output.

Correct Output:

enter image description here

My Script Shows:

enter image description here

I have this KML https://drive.google.com/file/d/199bDKDjio4LDL83pgSywz6FNHqi9CM6T/view?usp=sharing file and first I created encode string with the help of PolylineEncoder class.

I used following approach http://www.svennerberg.com/2008/11/polylines-in-google-maps-part-2/

but when I import from KML file with multiple LineString then faced this issue. This script working fine with single LineString. Can anybody suggest me a script with multiple LineString?

  • You mentioned a script that is outputting the incorrect information. Please edit your question to include the code. – smiller Jan 14 at 21:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.