Hello,
My search bar is closed by default in my map. I want it to be open by default (see attached file). I have also attached the css I got from using the inspect in chrome. Any suggestions?
Thanks in advance,
Brandon
https://community.esri.com/community/gis/web-gis
Solved! Go to Solution.
I don't do much work with story maps but if you know the file that the Search widget is created in the in the constructor there will be a enableButtonMode property or you can just invoke the expand() method on the Search dijit.
Brandon,
I don't see an attached file and the WAB search widget is opened by default so this question has me scratching my head.
I don't do much work with story maps but if you know the file that the Search widget is created in the in the constructor there will be a enableButtonMode property or you can just invoke the expand() method on the Search dijit.
Thanks Robert. I was able to do this in the viewer-min.js file of the story map by changing the enableButtonMode for the geocodercontainer from !0 to !1
Best,
Brandon
Great don't forget to mark this as answered then.
Ok. Sounds good.
I was able to get this to work but would there be a way to make it stay the button version for mobile devices?
Code here:
function c() {
var e = $(r.container).find(".geocoderBtn");
f = n.createGeocoder({
map: r,
domNode: e.find(".geocoderContainer")[0],
enableButtonMode: !0,
searchOptions: o
}).then(function (t) {
a = t, e.find(".esriGeocoderContainer input, .esriGeocoderSearch").attr("tabindex", "-1")
})
}
Never mind I figured it out
Hey Ricky,
Are you saying have it still be closeable? I haven’t figured that one out yet.
-Brandon