Select to view content in your preferred language

Trouble with Lon/Lat Points in 4269, MapPoints and Map

721
3
08-24-2010 03:48 PM
JenniferBaldwin
Emerging Contributor
Sorry if this has been posted before, though I've seen people with similar problems, they seem to have solved them in no way related to this. I have a series of points (longitude and latitude) that I want to make polygons out of, none show up and neither does my extent.

So for example, I want to show Texas, so I have:
<esri:Extent xmin="-110.240406375474" ymin="37.9691089850409" xmax="-89.8937266879795" ymax="23.9749678372559">
     <esri:SpatialReference wkid="4269"/>
</esri:Extent>

And it always shows up in the ocean (default) (I've tried switching up the value to no avail), any ideas why? Once this is solved, I'm guessing my polygons will show up too 🙂

I should mention when I use the stock values and create polygons etc, it all works. I mean the ones like -3867905,-671044, for a different spatial reference. So it's not my code that is messed up, just the coordinates.

Thanks!
Tags (2)
0 Kudos
3 Replies
JenniferBaldwin
Emerging Contributor
I found that this helps it center, though I haven't fixed my polygon issue yet:
<!-- imagery service in 4326 -->
  <esri:ArcGISTiledMapServiceLayer url="http://services.arcgisonline.com/ArcGIS/rest/services/I3_Imagery_Prime_World_2D/MapServer"/>
  <!-- local dynamic service in 4269 -->
  <esri:ArcGISDynamicMapServiceLayer url="http://myserver/ArcGIS/rest/services/test_service/MapServer/" />

but it is not the type of map I hoped for. Is there any way to find a list of these map urls?
0 Kudos
JenniferBaldwin
Emerging Contributor
I have found this map and it centers fine with it: http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_StreetMap_World_2D/MapServer

Everything shows up fine now. In case someone runs across this.
0 Kudos
BjornSvensson
Esri Regular Contributor
You have to specify the map extent in the same spatial reference as your Map.

If you are using a map that is in Web Mercator, then your extent also need to be in that coordinate system.
0 Kudos