Help! API 3.23 Input Coordinate Widget

915
7
Jump to solution
10-29-2019 04:55 PM
FranciscoCastillo1
New Contributor III

Hi, Robert.

I'm working with an app on API 3.23 and I need a widget that gives me the position of a point in my map. In 4.7 there is a widget (Coordinate Conversion) that works terrific. However, I haven't found another one for 3.23.

Just like that: I need to Input a coordinate in DMS and the widget shows me where is that point in my map.

Thank's in advance and I hope you can help me again.

Greetings!

Sincerely,

Francisco

0 Kudos
1 Solution
7 Replies
FranciscoCastillo1
New Contributor III

Thank You So Much again, Robert. I will use this widget because this is what I was looking for. Greetings and have a nice day! .

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Don't forget to mark this question as answered by clicking on the "Mark Correct" link on the reply that answered your question.

FranciscoCastillo1
New Contributor III

Thank's for remembering the issue. Greetings.

0 Kudos
FranciscoCastillo1
New Contributor III

Hi again, Robert.

I have some trouble with the Coordinate Widget. I have inserted to my script, but there isn't in my map. I changed some values and rename css, but still there isn't in ther app. What should I review? I have published in the internet the result: https://sigagis.conagua.gob.mx/323 as a temporary site. I hope ypu can help me. I just see a white square instead the coordinate widget

Thank You in advance.

Francisco

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Francisco,

   You main issue is your require list. You several things that were not listed in the require vars and thus several modules were being assigned to the wrong var.

require([
        "esri/map",
        "esri/toolbars/draw",
        "esri/symbols/SimpleMarkerSymbol",
        "esri/layers/FeatureLayer",
        "esri/layers/ArcGISDynamicMapServiceLayer",
        "esri/layers/ArcGISTiledMapServiceLayer",
        "esri/tasks/query",
        "esri/symbols/SimpleFillSymbol",
        "esri/symbols/SimpleLineSymbol",
        "esri/graphic",
        "esri/dijit/Popup",
        "esri/dijit/PopupTemplate",
        "esri/urlUtils",
        "esri/graphicsUtils",
        "esri/Color",
        "esri/InfoTemplate",
        "dojo/number",
        "esri/dijit/BasemapGallery",
        "esri/dijit/Search",
        "esri/dijit/Scalebar",
        "esri/dijit/HomeButton",
        "esri/dijit/OverviewMap",
        "esri/dijit/LayerList",
        "esri/dijit/Legend",
        "esri/toolbars/navigation",
        "esri/arcgis/utils",
        "dojo/_base/array",
        "dojo/parser",
        "dojo/dom-construct",
        "dojo/dom",
        "esri/dijit/Print",
        "esri/tasks/PrintTemplate",
        "esri/request",
        "esri/config",
        "esri/geometry/webMercatorUtils",
        "dojox/mobile",
        "dojox/mobile/parser",
        "esri/sniff",
        "dijit/registry",
        "dojo/on",
        "dojo/query",
        "dojox/mobile/ToolBarButton",
        "dojox/mobile/View",
        "dijit/layout/BorderContainer",
        "dijit/layout/ContentPane",
        "esri/dijit/LocateButton",
        "esri/tasks/IdentifyTask",
        "esri/tasks/IdentifyParameters",
        "dijits/GotoXY",
        "dojo/domReady!"
      ],
      function (
        Map,
        Draw,
        SimpleMarkerSymbol,
        FeatureLayer,
        ArcGISDynamicMapServiceLayer,
        ArcGISTiledMapServiceLayer,
        Query,
        SimpleFillSymbol,
        SimpleLineSymbol,
        Graphic,
        Popup,
        PopupTemplate,
        urlUtils,
        graphicsUtils,
        Color,
        InfoTemplate,
        number,
        BasemapGallery,
        Search,
        Scalebar,
        HomeButton,
        OverviewMap,
        LayerList,
        Legend,
        Navigation,
        arcgisUtils,
        arrayUtils,
        parser,
        domConstruct,
        dom,
        Print,
        PrintTemplate,
        esriRequest,
        esriConfig,
        webMercatorUtils,
        mobile,
        mobileParser,
        has,
        registry,
        on,
        query,
        ToolBarButton,
        View,
        BorderContainer,
        ContentPane,
        LocateButton,
        IdentifyTask,
        IdentifyParameters,
        GotoXY
      ) {

Your css layout issue (I am having a hard time figuring out what) is causing the widgets menu to appear a bunch of pixels down from the widget location. I am not sure the fix to that, but it has to do with your header and footer.

FranciscoCastillo1
New Contributor III

Robert, Thank's for your quick answer and comments. I'm going to check this out, I'm just a beginner in this topics as you can realize. Have a nice day and I hope to solve this soon. Greetings again.

0 Kudos