Add Graticule?

731
1
05-14-2019 11:49 AM
IsraelBrewster
New Contributor

Simple question: how can I add latitude/longitude lines to my map? I would have expected this to be a basic feature of any map, but I can't seem to figure out how to do it. Using the JavaScript API, version 3.28. 

0 Kudos
1 Reply
SteveCole
Frequent Contributor

I'm not aware of any built in functionality to display graticules but you can possibly accomplish this using some layers available in AGOL. This link will take you to an AGOL item that has 1,5,10,20 degree interval lat/longs. These lines were created by ESRI for the Firefly basemap option so you'll probably want to re-symbolize them to better fit with your app.

On the AGOL item page, just copy the Service URL link for whichever lat/long lines you want to use in your app and add them as a layer into your app as you would normally do.