USGS-WiM / WLERA

Western Lake Erie Restoration Assessment
http://glcwra.wim.usgs.gov/WLERA/
Other
2 stars 5 forks source link

Problem with spatial reference mismatch on zoom to extent button #50

Closed BlakeDraper closed 8 years ago

BlakeDraper commented 8 years ago

Probably just needs to be converted on the fly, client side. Must have broken when the map service spatial references were returned to UTM17.

BlakeDraper commented 8 years ago

The individual coordinates that define the extent have to be projected using the Geometry Service. Already doing this to retrieve the UTM coordinates for the measurement tool. Just need to loop through the layer's extent object.

BlakeDraper commented 8 years ago

Fixed with PR #57. Just needed to grab the layer's extent in UTM17 SR and project to web mercator before attempting to set map to it.