I'm using ArcGIS Server 10.2.2. After migrating from API version 3.13 to 3.17 we discovered the measurement widget no longer displays the location coordinates or segment distances "on the fly", i.e. real time when you're hovering your cursor around the map div. My map uses the NAD83 State Plane coordinate system and is initialized like so:
app.spatialRefNAD83 = new SpatialReference({ wkid: 2276 });
app.defaultExtent = new Extent(2377900.70899601, 6898000.2235117,
2399245.87566268, 6984000.2235117, app.spatialRefNAD83
);
app.map = new Map("map", {
extent: app.defaultExtent,
[parameters...]
});
Then I add layers
app.map.addLayers([app.layerOrthos, app.layerESRIWorldStreetMap, app.layerBaseMap,...)]
layerOrthos: tiled service - Spatial Reference: 102738 (2276)
layerESRIWorldStreetMap: tiled service - Spatial Reference: 102100 (3857)
layerBaseMap: vector service - Spatial Reference: 102738 (2276)
In JS API 3.13 the measure results displayed real time with my setup above. Looks like 3.14 is the version where the measurement widget changed its behavior or dependencies. It only updates the measurement results when you click on the map for segments or coordinates. Our users need real time updates, though. The only way I get real time results is when I use one of ESRI's basemap options, "streets", "topo", "gray", etc.
Every combination I've tried leads to projection errors, even though I have defined my geometry service.
esriConfig.defaults.geometryService = new GeometryService(app.geometryServerURL);
Any suggestions?
Solved! Go to Solution.
I have learned it is a known bug, still outstanding as of Nov 1, 2016. No workaround available according to ESRI.
Closed
Status: Not in Current Product Plan
Severity: Medium
Escalated: Yes
Submitted: 11/12/2015
Version Fixed:
Service Pack Fixed:
Product: ArcGIS API for JavaScript
Version: 3.14
Open
Status: In Product Plan
Severity: Medium
Escalated: Yes
Submitted: 7/25/2016
I have learned it is a known bug, still outstanding as of Nov 1, 2016. No workaround available according to ESRI.
Closed
Status: Not in Current Product Plan
Severity: Medium
Escalated: Yes
Submitted: 11/12/2015
Version Fixed:
Service Pack Fixed:
Product: ArcGIS API for JavaScript
Version: 3.14
Open
Status: In Product Plan
Severity: Medium
Escalated: Yes
Submitted: 7/25/2016