Select to view content in your preferred language

Coordinate Conversion cant rename label

386
1
Jump to solution
10-17-2023 09:09 AM
abureaux
MVP Frequent Contributor

I am curious how this even happened.

I am looking to edit some things in Coordinate Conversion and want to rename something. Thankfully I can edit the Lat-Long output (X°‎, Y°‎ > Y, X). But why can't I edit the label?? It stays as the default of "Long-Lat":

abureaux_0-1697558425411.png

But it's not like they don't know people would want to edit the label since the End User can:

abureaux_2-1697558594004.png

But there is more... The End User gets a "reset" button. And when you press it... It only resets the "Format" while completely ignoring the "Label" field!

abureaux_3-1697558707074.png

Am I missing something here, or is this actually how this works?

Also, zoom doesn't seem to work at all? I set a zoom of 1:5 and nothing happens. Edit: I guess the only way to zoom is by pressing the button. There should be a toggle or something to do that automatically as well.

abureaux_4-1697558953364.png

abureaux_5-1697558966158.png

 

0 Kudos
1 Solution

Accepted Solutions
DavidDas__GISP
Frequent Contributor

You can change the Labels in the Coordinate Conversion Widget in the Developer Edition of the Experience Builder.

 

Here is an example:

 

Before

DD

DMS

 

After

Decimal Degrees

Degree Minute Seconds

 

DavidDas__GISP_0-1697564668756.png

 

 

 

To do this, you must edit the config.json files.

 

There are two config.json files

 

Server/public/apps/app-id/config.json

 

Server/public/apps/app-id/resources/config/config.json

 

 

   "widget_29": {

      "uri": "widgets/arcgis/coordinate-conversion/",

      "version": "1.12.0",

      "label": "Coordinate Conversion",

      "config": {

        "inputSettings": {

          "defaultCoordinate": "xy",

          "format": "X°‎, Y°‎"

        },

        "outputSettings": [

          {

            "name": "address",

            "label": "Address",

            "defaultPattern": "",

            "currentPattern": "",

            "enabled": true,

            "isCustom": false

          },

          {

            "name": "dd",

            "label": "Decimal Degrees",

            "defaultPattern": "Y°‎N, X°‎E",

            "currentPattern": "X°‎E, Y°‎N",

            "enabled": true,

            "isCustom": false

          },

      

          {

            "name": "dms",

            "label": "Degree Minute Seconds",

            "defaultPattern": "Y°‎ A' B\"N, X°‎ C' D\"E",

            "currentPattern": " X°‎ C' D\"E, Y°‎ A' B\"N",

            "enabled": true,

            "isCustom": false

          },

You can change the Zoom Scale here as well.

In this example the Zoom Scale is set to 1:2000

 

        "addressSettings": {

          "minCandidateScore": 100,

          "maxSuggestions": 6,

          "useUtilitiesGeocodeService": [

            {

              "utilityId": "utility_1"

            }

          ],

          "geocodeServiceUrl": "https://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer"

        },

        "generalSettings": {

          "zoomScale": 2000,

          "defaultPointSymbol": {

            "type": "esriPMS",

            "angle": 0,

            "xoffset": 0,

            "yoffset": 0,

View solution in original post

0 Kudos
1 Reply
DavidDas__GISP
Frequent Contributor

You can change the Labels in the Coordinate Conversion Widget in the Developer Edition of the Experience Builder.

 

Here is an example:

 

Before

DD

DMS

 

After

Decimal Degrees

Degree Minute Seconds

 

DavidDas__GISP_0-1697564668756.png

 

 

 

To do this, you must edit the config.json files.

 

There are two config.json files

 

Server/public/apps/app-id/config.json

 

Server/public/apps/app-id/resources/config/config.json

 

 

   "widget_29": {

      "uri": "widgets/arcgis/coordinate-conversion/",

      "version": "1.12.0",

      "label": "Coordinate Conversion",

      "config": {

        "inputSettings": {

          "defaultCoordinate": "xy",

          "format": "X°‎, Y°‎"

        },

        "outputSettings": [

          {

            "name": "address",

            "label": "Address",

            "defaultPattern": "",

            "currentPattern": "",

            "enabled": true,

            "isCustom": false

          },

          {

            "name": "dd",

            "label": "Decimal Degrees",

            "defaultPattern": "Y°‎N, X°‎E",

            "currentPattern": "X°‎E, Y°‎N",

            "enabled": true,

            "isCustom": false

          },

      

          {

            "name": "dms",

            "label": "Degree Minute Seconds",

            "defaultPattern": "Y°‎ A' B\"N, X°‎ C' D\"E",

            "currentPattern": " X°‎ C' D\"E, Y°‎ A' B\"N",

            "enabled": true,

            "isCustom": false

          },

You can change the Zoom Scale here as well.

In this example the Zoom Scale is set to 1:2000

 

        "addressSettings": {

          "minCandidateScore": 100,

          "maxSuggestions": 6,

          "useUtilitiesGeocodeService": [

            {

              "utilityId": "utility_1"

            }

          ],

          "geocodeServiceUrl": "https://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer"

        },

        "generalSettings": {

          "zoomScale": 2000,

          "defaultPointSymbol": {

            "type": "esriPMS",

            "angle": 0,

            "xoffset": 0,

            "yoffset": 0,

0 Kudos