Graphics Overlay without a basemap

1196
2
12-27-2016 06:51 PM
CityOf_Lorain
New Contributor

I'm trying to add a Graphics Overlay without a basemap. I loaded everything correctly and the graphics overlay doesn't show up. Why is this happening?

I just want to show the outline of a polygon without a basemap offline. Do I have to licenses offline even if i dont want to use the offline layers??

Tags (1)
0 Kudos
2 Replies
AnttiKajanus1
Regular Contributor II

It's pretty hard to say without knowing what you are doing. Could you verify that you are specifying Maps SpatialReference when you create it.

 var myMap = new Map(SpatialReferences.Wgs84);
0 Kudos
dotMorten_esri
Esri Frequent Contributor

Overlays are only rendering when there's a valid map available.

You can create an empty map, but make sure you set the spatial reference and the initial viewpoint, or the mapview will wait for layers to be added to the map before rendering (It deduces the spatial reference and initial viewpoint from the layers if you don't provide those, so you must either provide layers, and/or the SR+Initial Viewpoint).

0 Kudos