Displaying a shapefile without a base map

3044
2
06-06-2014 07:29 AM
Labels (1)
Cristian_Galindo
Occasional Contributor III
DEAR PEOPLE FROM THE FUTURE: Here's what we've figured out so far???

I had setup a small application that load a Map control, but I did not define a base map, therefore when the application runs, it only shows a blank space.

then I proceed to load a shapefile in a local dynamic layer and add it to the map.

I forgot to mention that I also added a legend control bond to the map...so if I add the shapefile, the legend shows me the name of the layer and the symbol.

Why does the features in the shapefile are not shown?
0 Kudos
2 Replies
DominiqueBroux
Esri Frequent Contributor
May be a Map SpatialReference issue.
If you set a basemap, the map SR is automatically set with the basemap SR, i.e likely WebMercator.
Without basemap, the map SR is not initialized automatically, you can try to set it manually by setting a map InitialExtent.
0 Kudos
Cristian_Galindo
Occasional Contributor III
If I add a Graphics Layer with its own spatial reference it is drawn. but if I add the shape file that contains it own spatial reference..it is not.
0 Kudos