Navigation Menu

Skip to content

Commit

Permalink
Merge pull request #496 from cmv/feature/add-esri-search-widget
Browse files Browse the repository at this point in the history
add esri search widget
  • Loading branch information
DavidSpriggs committed Jan 13, 2016
2 parents c3a8737 + 29bb313 commit 4cf83ff
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
16 changes: 6 additions & 10 deletions viewer/js/config/viewer.js
Expand Up @@ -228,19 +228,15 @@ define([
},
geocoder: {
include: true,
id: 'geocoder',
type: 'domNode',
path: 'gis/dijit/Geocoder',
srcNodeRef: 'geocodeDijit',
path: 'esri/dijit/Search',
srcNodeRef: 'geocoderButton',
options: {
map: true,
mapRightClickMenu: true,
geocoderOptions: {
autoComplete: true,
arcgisGeocoder: {
placeholder: 'Enter an address or place'
}
}
visible: true,
enableInfoWindow: false,
enableButtonMode: true,
expanded: false
}
},
identify: {
Expand Down
4 changes: 3 additions & 1 deletion viewer/js/viewer/_WidgetsMixin.js
Expand Up @@ -113,7 +113,9 @@ define([

createWidget: function (widgetConfig, options, WidgetClass) {
// set any additional options
options.id = widgetConfig.id + '_widget';
if (widgetConfig.id) {
options.id = widgetConfig.id + '_widget';
}
options.parentWidget = widgetConfig.parentWidget;

//replace config map, layerInfos arrays, etc
Expand Down

0 comments on commit 4cf83ff

Please sign in to comment.