AnsweredAssumed Answered

autocomplete working with geocoder

Question asked by asta.oladottir@lmi.is on Jun 20, 2013
Latest reply on Jun 21, 2013 by asta.oladottir@lmi.is
I am not able to get autocomplete to work, It works fine when I build an application with ArcGIS viewer for flex but when I build an application with the same geocode service with arcgis api for javascript (https://gis.lmi.is/ako_os/) it doesn't work.
Here is my code:
var myGeocoders = [{
             url: locatorUrl,
             name: "geocode_thjonusta_single",
      singleLineFieldName: "SingleLineCityName"
        }];


        var geocoder = new esri.dijit.Geocoder({
          map: map,
          autocomplete: true,
          arcgisGeocoder: false,
          geocoders: myGeocoders

        },"search");

        geocoder.startup();

[ATTACH=CONFIG]25383[/ATTACH]

Attachments

Outcomes