Coordinate Systems GVH v2.4
Trying to update my Html5 default.json.js file to now house the default coordinate system. When I've added the three properties to the coordinateSystems, my viewer will no longer load. Is the syntax below correct?
"viewModels": [
{
"id": "CoordinatesViewModel",
"type": "geocortex.essentialsHtmlViewer.mapping.modules.coordinates.CoordinatesViewModel",
"configuration": {
"isEnabled": true,
"openByDefault": false,
"useBasemapCoordinates": true,
"numDigits": 5,
"coordinateSystems": [
{
"DisplayName" = "NAD83 UTM17",
"WKID" = "26917",
"output" = "xy"
}
]
}
}
]
Trying to replace the lines we had before in the viewer.xml file:
<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" />
Walter
-
Should have read the documentation correctly. Configure the map coordinate readouts in the configure "map widgets" module in manager.
"coordinateSystems": [
{
"displayName": "NAD83 UTM17",
"wkid": 26917,
"output": "latLon"
},
{
"displayName": "Web Mercator",
"wkid": 102100,
"output": "latLon"
}
Gets written to the default.json.js file after the project is saved.Walter
0 -
Hi Walter,
I couldn't figure out if there is away to make the xy coordinate the default one instead of the lat/long as the GVS do?
The GVH
/customer/servlet/servlet.FileDownload?file=00P6000000elzjgEAA
but the GVS, the xy coordinate is the default one as shown below:
/customer/servlet/servlet.FileDownload?file=00P6000000elzdYEAQ
Thank you,
Best,
Lubna
0 -
Lubna,
There's no setting that I see in the new GVH viewer configuration that allows for the setting of "default"
<CoordinateSystem DisplayName="NAD83 UTM17" WKID="26917" NumDigits="2" DisplayAsDMS="false" DisplayAsLatLon="false" Default="true" />
The line above is from our GVS viewer.xml file for Silverlight.
Walter
0 -
I'm having trouble locating the viewer.xml file, also where is the default.json.js file? Is the default.json.js file the equilavent of the viewer.xml for GVH? 0
Please sign in to leave a comment.
Comments
4 comments