/googlePolylineEncoded-to-arcgisGraphic

Converts encoded google polyline to arcgis js graphic to be added in an arcgis JS project

Primary LanguageJavaScript

Google encoded polyline to ArcGIS graphic converter

Converts encoded google polyline to arcgis js graphic to be added in an arcgis JS project.

Instructions

Add this code as a file in your project and call decodePoly_toGraphic which will return a line graphic for you. The parameters to pass into decodePoly_toGraphic are the google encoded string, and a symbol for the returned line graphic.