Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add esri search widget #496

Merged
merged 2 commits into from
Jan 13, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 6 additions & 10 deletions viewer/js/config/viewer.js
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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