maplibre-gl-geocoder icon indicating copy to clipboard operation
maplibre-gl-geocoder copied to clipboard

collapse: true doesn't work with the Maplibre example

Open mem48 opened this issue 1 year ago • 1 comments

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

mem48 avatar Feb 28 '23 22:02 mem48

It is working for me. I also opened the collapsed zip file you linked to and it works for me there too.

d3netxer avatar Aug 28 '23 19:08 d3netxer

Closing this, if this is still relevant, please ask to reopen.

HarelM avatar Aug 18 '24 14:08 HarelM