-
-
Notifications
You must be signed in to change notification settings - Fork 278
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
Disable popups for no information #305
Comments
Agreed as there are some layers that I would rather not show in the identify window. I know in the Identify.js file I could comment out:
but it would be nice to add a property in the operationalLayers ("viewer.js") section to where i state if i wish to have it included in the Identify pop-up (such as identifiable: false) Fantastic application!!!!! |
You can configure it like so: |
David, { |
Could this be configured using the You can always add your own Popup to the mapOptions in config/viewer. Perhaps we can look at adding some of that configuration to the identify widget that is passed on to the info window? |
Going to open a new thread as I believe my issue may be a tad different than what the original poster stated. |
Solution: define([
'esri/units',
'esri/geometry/Extent',
'esri/config',
/*'esri/urlUtils',*/
'esri/tasks/GeometryService',
'esri/layers/ImageParameters',
'gis/plugins/Google',
'dojo/i18n!./nls/main',
'dojo/topic',
'esri/dijit/Popup',
'put-selector'
], function (units, Extent, esriConfig, /*urlUtils,*/ GeometryService, ImageParameters, GoogleMapsLoader, i18n, topic, Popup, put) {
//. ...........................
mapOptions: {
basemap: 'streets',
center: [-96.59179687497497, 39.09596293629694],
zoom: 5,
sliderStyle: 'small',
infoWindow: new Popup({visibleWhenEmpty: false}, put('div'))
}, |
@roemhildtg I have implemented this into my app, but the behavior is causing the popup to disappear even if the popup contains data. Is this an error on my behalf, or with the fix? |
I wish I could disable popups "no information available" when there is nothing to identify.
I heard it is possible by modifying js/gis/dijit/Identify.js but it would be nice to be able to configure.
The text was updated successfully, but these errors were encountered: