Code Monkey home page Code Monkey logo

Comments (3)

jgravois avatar jgravois commented on September 7, 2024

this is happening because your custom geocoder is stripped from the array of resources provided in the actual widget constructor here.

i was able to get the template configured properly after manually supplying a singleLineFieldName (in addition to url for the geocode helperService in the commonConfig.js

geocode: [{
  url: location.protocol + "//tasks.arcgisonline.com/ArcGIS/rest/services/Locators/TA_Address_NA_10/GeocodeServer",
  //needs to match the actual input parameter for your own service        
  singleLineFieldName: "SingleLine"
}]

i'm not sure what wiki instructions you're talking about, but if you can point me to them I can add some more information so the same problem doesn't bite someone else in the future.

from viewer.

mikeri1000 avatar mikeri1000 commented on September 7, 2024

Thanks, that got it working once i figured out what the singleLineFieldName should be for my service. The wiki instructions i was referring to are these: https://github.com/Esri/basic-viewer-template/wiki/Configure-utility-services

from viewer.

jgravois avatar jgravois commented on September 7, 2024

glad i could help. i've submitted PR #40 here to add a few code comments to clarify the requirement and edited the wiki to reflect the same. thanks for reporting.

from viewer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.