Select to view content in your preferred language

No measure results on mouse move with non-Mercator basemap

1259
1
Jump to solution
10-28-2016 02:59 PM
deleted-user-ZTub55yWbsya
Deactivated User

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?

0 Kudos
1 Solution

Accepted Solutions
deleted-user-ZTub55yWbsya
Deactivated User

I have learned it is a known bug, still outstanding as of Nov 1, 2016.  No workaround available according to ESRI.

#BUG-000092114   [Enhancement] The cursor coordinates display section of the Measurement widget does not work in version 3.14 of ArcGIS API for Javascript if the basemap uses a state plane coordinate system.

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

 

 

#ENH-000098071   [Enhancement] Allow on-the-fly updates using the Measurement widget if the map's spatial reference is not Web Mercator

Open

Status: In Product Plan

Severity: Medium

Escalated: Yes

Submitted: 7/25/2016

View solution in original post

1 Reply
deleted-user-ZTub55yWbsya
Deactivated User

I have learned it is a known bug, still outstanding as of Nov 1, 2016.  No workaround available according to ESRI.

#BUG-000092114   [Enhancement] The cursor coordinates display section of the Measurement widget does not work in version 3.14 of ArcGIS API for Javascript if the basemap uses a state plane coordinate system.

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

 

 

#ENH-000098071   [Enhancement] Allow on-the-fly updates using the Measurement widget if the map's spatial reference is not Web Mercator

Open

Status: In Product Plan

Severity: Medium

Escalated: Yes

Submitted: 7/25/2016