Problem using GoToLayer

1263
1
08-24-2016 01:48 AM
MarkBalman
Occasional Contributor

Hi all

Not sure what is happening here and hope someone can enlighten me.  I am using jsapi 4 I can pass a value into a text box and click a button which then zooms to the required feature however, this is where the problem (I think) lies, this only works if accessing a layer stored on a local version of ArcGIS for Server 10.4. If I replace this layer with one stored on Amazon ArcGIS for Server, the feature displays only and doesn't zoom. Not sure why this is, can anyone shed some light. The caching is set to dynamically from the data only in both cases.

Thanks in advance

Mark

0 Kudos
1 Reply
MarkBalman
Occasional Contributor

Just realised the problem, all to do with projections. my local server layer using web mercator and amazon layer mercator.. how stupid of me.. problem solved!

0 Kudos