Hello,
Has anybody figured a work around for have the same WKID listed more than once in the coordinate widget? I would like to show WGS_1984_Web_Mercator_Auxiliary_Sphere (3857) as MGRS, Degrees Minutes Seconds and Decimal Degrees but I can only add the WKID once. On the second time off trying to add the same WKID I get the following error:
Regards
Anthony
Solved! Go to Solution.
This has been enhanced to allow multiple CS with same wkid, and will be available in next update (AGOL Nov update and Dev Edition 1.3).
In response to my own question I can add the following json to the layout config which allows me to get the three types of output I require but it is not a very elegant way to have to do it (plus only possible with the developer version). Notice on the second spatial reference I am using 102100 you can not add this in through the widget gui as it keeps changing back to 3857:
{ "uri": "widgets/Coordinate/Widget", "position": { "left": 20, "bottom": 40 }, "config": { "spatialReferences": [ { "wkid": "3857", "label": "MGRS", "outputUnit": "MGRS", "transformationWkid": "", "transformationLabel": "MGRS", "transformForward": false, "options": { "sameSRWithMap": true, "isGeographicCS": false, "isGeographicUnit": true, "isProjectedCS": true, "isProjectUnit": false, "spheroidCS": 4326, "defaultUnit": "Meter", "unitRate": 1 } }, { "wkid": "102100", "label": "Degrees Minutes Seconds", "outputUnit": "DEGREE_MINUTE_SECONDS", "transformationWkid": "", "transformationLabel": "Transformation Name", "transformForward": false, "options": { "sameSRWithMap": true, "isGeographicCS": true, "isGeographicUnit": true, "isProjectedCS": false, "isProjectUnit": false, "spheroidCS": 4326, "defaultUnit": "Degree", "unitRate": 1 } }, { "wkid": "4326", "label": "Decimal Degrees", "outputUnit": "DECIMAL_DEGREES", "transformationWkid": "", "transformationLabel": "Transformation Name", "transformForward": false, "options": { "sameSRWithMap": false, "isGeographicCS": true, "isGeographicUnit": true, "isProjectedCS": false, "isProjectUnit": false, "spheroidCS": 4326, "defaultUnit": "Degree", "unitRate": 1 } } ], "decimalPlaces": 3, "addSeparator": true }
This has been enhanced to allow multiple CS with same wkid, and will be available in next update (AGOL Nov update and Dev Edition 1.3).
Thanks Lemao,
I'll look forward to the next release
Regards
Anthony