Community
All Communities
Products
ArcGIS Pro
ArcGIS Survey123
ArcGIS Online
ArcGIS Enterprise
Data Management
Geoprocessing
ArcGIS Web AppBuilder
ArcGIS Experience Builder
ArcGIS Dashboards
ArcGIS CityEngine
ArcGIS Spatial Analyst
All Products Communities
Industries
Education
Water Resources
State & Local Government
Transportation
Gas and Pipeline
Water Utilities
Roads and Highways
Telecommunications
Natural Resources
Electric
Public Safety
All Industries Communities
Developers
Python
JavaScript Maps SDK
Native Maps SDKs
ArcGIS API for Python
ArcObjects SDK
ArcGIS Pro SDK
Developers - General
ArcGIS REST APIs and Services
ArcGIS Online Developers
File Geodatabase API
Game Engine Maps SDKs
All Developers Communities
Worldwide
Comunidad Esri Colombia - Ecuador - Panamá
ArcGIS 開発者コミュニティ
Czech GIS
ArcNesia
Esri India
GeoDev Germany
ArcGIS Content - Esri Nederland
Esri Italia Community
Comunidad GEOTEC
Esri Ireland
Používatelia ArcGIS
All Worldwide Communities
All Communities
Products
Developers
User Groups
Industries
Services
Community Resources
Worldwide
Events
Learning
ArcGIS Topics
Networks
View All Communities
ArcGIS Ideas
GIS Life
Community Resources
Community Help Documents
Community Blog
Community Feedback
Member Introductions
Community Ideas
All Community Resources
Sign In
cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
Show
only
|
Search instead for
Did you mean:
Cancel
Home
:
All Communities
:
Developers
:
JavaScript Maps SDK
:
JavaScript Maps SDK Questions
:
Re: Projections and Extents?
Options
Subscribe to RSS Feed
Mark Topic as New
Mark Topic as Read
Float this Topic for Current User
Bookmark
Subscribe
Mute
Printer Friendly Page
Projections and Extents?
Subscribe
640
2
09-17-2013 08:53 AM
by
JamesCucinelli
Occasional Contributor II
09-17-2013
08:53 AM
Mark as New
Bookmark
Subscribe
Mute
Subscribe to RSS Feed
Permalink
Print
Report Inappropriate Content
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
Tags
(2)
Tags:
javascript
web_developers
Reply
0
Kudos
All Posts
Previous Topic
Next Topic
2 Replies
by
SteveCole
Frequent Contributor
09-17-2013
11:21 AM
Mark as New
Bookmark
Subscribe
Mute
Subscribe to RSS Feed
Permalink
Print
Report Inappropriate Content
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
Reply
0
Kudos
by
JamesCucinelli
Occasional Contributor II
09-17-2013
03:49 PM
Mark as New
Bookmark
Subscribe
Mute
Subscribe to RSS Feed
Permalink
Print
Report Inappropriate Content
Thanks I will check it out
Reply
0
Kudos
Post Reply