Measurements not working....
I am unable to do any length or area measurements in the HTML5 viewer… I am able to measure in the Silverlight viewer with no problem so I know the geometry service is working correctly. I’ve messed with the different measurement options and nothing seems to work. Anyone have any ideas how to fix this?
I'm using the latest versions.
0
-
Hi Joshua
Have you tried adding the server the you are consuming the Geometry service from to the Proxy.config file for the HTML5 Viewer?
C:\inetpub\wwwroot\Html5Viewer\proxy.config
It would look something like this:
<?xml version="1.0" encoding="utf-8" ?>
<!-- Proxy config is used to set the ArcGIS Server services that the proxy will forward to.
mustMatch: true to only proxy to sites listed, false to proxy to any site -->
<ProxyConfig mustMatch="true">
<serverUrls>
<!-- serverUrl options:
url = location of the server, either specific URL or stem
matchAll = true to forward any request beginning with the url
token = (optional) token to include for secured service
dynamicToken = if true, gets token dynamically with username and
password stored in web.config file's appSettings section.
-->
<serverUrl url=(http://yourserver/arcgis/rest/services/) http:// yourserver /arcgis/rest/services/
matchAll="true"></serverUrl>Cheers
Chris
0 -
That did the trick. Not sure why it would work and then all of a sudden quick working.
Thank you,
JB
0
Please sign in to leave a comment.
Comments
2 comments