Closed mem48 closed 4 days ago
I'm trying to copy the example code https://maplibre.org/maplibre-gl-js-docs/example/geocoder/
But adding a collapsible search box using:
map.addControl( new MaplibreGeocoder(geocoder_api, { maplibregl: maplibregl, collapsed: true }) );
But it does not work.
I can get it to work in jsfiddle but the example doesn't work as a simple HTML file. See attached.
collapsed.zip
It is working for me. I also opened the collapsed zip file you linked to and it works for me there too.
Closing this, if this is still relevant, please ask to reopen.
I'm trying to copy the example code https://maplibre.org/maplibre-gl-js-docs/example/geocoder/
But adding a collapsible search box using:
But it does not work.
I can get it to work in jsfiddle but the example doesn't work as a simple HTML file. See attached.
collapsed.zip