I do NOT need the infoWindow but I can't figure out how to turn it off.
The template that defines the content to display in the map info window when the user clicks on a feature. If not specified, the info window will not be displayed.
I was just experiencing this same problem using the editor dijit with the attribute inspector displaying in a div instead of the info window. An empty info window kept popping up on screen. My solution was to set the following styles in my css stylesheet.#map_infowindow { display:none; visibility:hidden; } .window { display:none; visibility:hidden; } Hope this helps! 🙂
#map_infowindow { display:none; visibility:hidden; } .window { display:none; visibility:hidden; }
#map_root .esriPopup { display: none; visibility: hidden; }
#map .esriPopup { display: none; visibility: hidden; }
I am not using the editor toolbar, but I am using the template picker. I'm using it to create new features and to edit feature attributes. However, most of the attributes are all housed in related business tables so I'm using a lot of custom code..
That was my original code. That doesn't work either.
dojo.connect(map, "onLoad", function() { map.enableScrollWheelZoom(); });
enableScrollWheelZoom isn't set via the Map's constructor. Try this after the map is created.map.enableScrollWheelZoom();
FWIW, I wonder if this is a related issue - I can't get my map to enable zooming with the scroll wheel either. It appears that my map settings are having no effect whatsoever. map = new esri.Map("map", { enableScrollWheelZoom: true, showInfoWindowOnClick:false }); Any ideas as to why these settings are not being honored?
map = new esri.Map("map", { enableScrollWheelZoom: true, showInfoWindowOnClick:false });
Thanks Kelly! I appreciate the tip. Unfortunately it didn't work. I added that to my init() function but the infoWindow still pops up.
map = new esri.Map("map", { extent: esri.geometry.geographicToWebMercator(new esri.geometry.Extent(-125.90, 44.60, -114.65, 50.22, new esri.SpatialReference({wkid:4326}))), showInfoWindowOnClick:false });
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.