Projections and Extents?

640
2
09-17-2013 08:53 AM
JamesCucinelli
Occasional Contributor II
So I'm trying to modify the unique value renderer example and one thing I don't like is the projection of the US where the Canada US border is flat.

So I found this example of this code to add instead of the normal gray basemap from Esri.

It works in that it's something new but it's not in the projection I want.

I found the list of WKIDs but how do I find the extent to go with it?

extent: new esri.geometry.Extent({xmin:-20098296,ymin:-2804413,xmax:5920428,ymax:15813776,spatialReference:{wkid:3088}})
  });
  var dynamicMSLayer = new esri.layers.ArcGISDynamicMapServiceLayer
        ("http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Specialty/ESRI_StatesCitiesRivers_USA/Map...")

Eventually I will use my own server but for now this is testing.

Thank you in advance,
James Cucinelli
0 Kudos
2 Replies
SteveCole
Frequent Contributor
I believe you'll need to use a GeometryService to project the webMercator extent into the projection of your choice. Maybe this sample will steer you in the right direction:

Project A Point
0 Kudos
JamesCucinelli
Occasional Contributor II
Thanks I will check it out
0 Kudos