0

Is there a geocoderOption to have a symbol dropped on the map for a location searched for with the CMV Geocoder widget?

asked Nov 30, 2015 at 20:04

1 Answer 1

0

Trae,

Here's how I accomplished this for a client:

define([
 'esri/symbols/PictureMarkerSymbol'
], function (PictureMarkerSymbol) {
 return {
 map: true,
 mapRightClickMenu: true,
 expanded: true,
 collapsible: false,
 geocoderOptions: {
 autoComplete: true,
 zoomScale: 500,
 maxLocations: 20,
 highlightLocation: true,
 symbol: new PictureMarkerSymbol({
 angle: 15,
 xoffset: -12,
 yoffset: 24,
 type: 'esriPMS',
 url: 'http://static.arcgis.com/images/Symbols/Basic/RedFlag.png',
 contentType: 'image/png',
 width: 18,
 height: 18
 }),
 arcgisGeocoder: {
 placeholder: 'Search for an Address'
 }
 }
 };
});

This was done in the separate geocoder.js config file in a common folder shared by all applications. You'll need to merge this with your own configuration settings.

answered Nov 30, 2015 at 20:24
0

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.