Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Share extent issue when basemap is other than WebMeractor or WGS84 (4326) #48

Open
sverkerEsriSE opened this issue Mar 9, 2018 · 1 comment

Comments

@sverkerEsriSE
Copy link
Contributor

When this template is used with a web map that has a basemap with another coordinate system than Web Mercator (EPSG:3857) or WGS84 (EPSG:4326), a javascript error will appear stating that "Cannot read property xmin of undefined".

From what I can tell, the reason for this is the code on line 254 in the file js/ShareDialog.js where it tries to get the map.geographicExtent, which according to the API is only available for maps with WebMercator or WGS84 spatial reference:
https://developers.arcgis.com/javascript/3/jsapi/map-amd.html#geographicextent

@sverkerEsriSE
Copy link
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant