Default="true" - Default Coordinate System Not Set
We've just upgraded our Essentials to v4.1.1 and both viewers to v2.2 After reading several entries in the forum regarding setting the default coordinate system for a single viewer, when I apply this to one of my coordinate systems ie. (Default="true"), it does not set it as the default. Rather, the default is still being set from the basemaps being used. Therefore, the show mouse coordinates also display the default.
/customer/servlet/servlet.FileDownload?file=00P6000000em1ZREAY
<CoordinateSystem DisplayName="NAD83" WKID="26917" NumDigits="6" DisplayAsDMS="false" DisplayAsLatLon="false" Default="true" />
<CoordinateSystem DisplayName="Web Mercator" WKID="102100" NumDigits="6" DisplayAsDMS="false" DisplayAsLatLon="false" />
<CoordinateSystem DisplayName="Lat/Lon (DD)" WKID="4326" NumDigits="4" DisplayAsDMS="false" DisplayAsLatLon="true" />
<CoordinateSystem DisplayName="Lat/Lon (DMS)" WKID="4326" NumDigits="4" DisplayAsDMS="true" DisplayAsLatLon="false" />
<CoordinateSystem DisplayName="Lat/Lon (DDM)" WKID="4326" NumDigits="4" DisplayAsDMS="false" DisplayAsDDM="true" DisplayAsLatLon="false" />
</CoordinateSystems>
Walter
-
Hi Walter,
I am new to Geocortex app, can you please tell me where to find the code you post below?
thanks,
Linda
0 -
Linda,
The file is called Viewer.Defaults.xml and it can be found in the following directory: C:\inetpub\wwwroot\GSV\Config
This is your base configuration file for your Silverlight viewer.
Make a backup copy first before you change anything.
Walter
0 -
Hi Walter and Linda
the more correct answer would be to follow the instructions found here:
http://support.geocortex.com/how-to-edit-your-viewerdefaultsxml
Editing using the instructions there will have a global effect on all viewers.
You could also add in those CoordinateSystem tags to separate viewer.xml files if you did not want exactly the same settings to be applied to all viewers.
Have a read of the SL Viewer Admin and Development Guide in the section About Viewer Configuration
Thanks
Ralph
0 -
Thanks Ralph.
Walter, I tried it, but it does not work. Did you ever figure it out?
Thanks,
Linda
0 -
Linda,
Ralph's instructions are the correct ones to follow. I did manage to get our proper settings set with the line entries below:
<CoordinateSystems>
<CoordinateSystem DisplayName="NAD83 UTM17" WKID="26917" NumDigits="2" DisplayAsDMS="false" DisplayAsLatLon="false" Default="true" />
<CoordinateSystem DisplayName="Web Mercator" WKID="102100" NumDigits="6" DisplayAsDMS="false" DisplayAsLatLon="false" />
<CoordinateSystem DisplayName="Lat/Lon (DD)" WKID="4326" NumDigits="4" DisplayAsDMS="false" DisplayAsLatLon="true" />
<CoordinateSystem DisplayName="Lat/Lon (DMS)" WKID="4326" NumDigits="4" DisplayAsDMS="true" DisplayAsLatLon="false" />
<CoordinateSystem DisplayName="Lat/Lon (DDM)" WKID="4326" NumDigits="4" DisplayAsDMS="false" DisplayAsDDM="true" DisplayAsLatLon="false" />
</CoordinateSystems>Walter
0
Please sign in to leave a comment.
Comments
5 comments