Skip to content

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

Open
@sverkerEsriSE

Description

@sverkerEsriSE

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions