Title: LayerSwitch button
Last modified: February 21, 2022

---

# LayerSwitch button

 *  Resolved [creinemann](https://wordpress.org/support/users/creinemann/)
 * (@creinemann)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/layerswitch-button/)
 * I have quite a few maps and layers on the second map on the referenced page, 
   but I cannot get the layers ‘menu’ to collapse to the small layers box in the
   upper right-hand corner. It seems to work on a tablet or phone just fine, but
   on Chrome Firefox and Edge the layers and maps do not collapse to the smaller
   layers ‘box’
 * Is there a setting I am missing?
 * the short code for map:
 *     ```
       [leaflet-map mapid="Satellite" doubleClickZoom="true" scrollwheel=true zoom="4" height="640"]
       [leaflet-geojson src="https://usradioguy.com/map/ground.json"  table-view iconurl="https://usradioguy.com/map/satpin.png" iconanchor="10,30"]
       [leaflet-geojson src="https://usradioguy.com/map/xfiles.json" table-view iconurl="https://usradioguy.com/map/roswell.png" iconanchor="10,30" ]
       [leaflet-geojson src="https://usradioguy.com/map/NASANOAA.json" table-view iconurl="https://usradioguy.com/map/satpinnoaa.png" iconanchor="10,30"]
       [layerswitch][fullscreen][zoomhomemap fit/!fit]
       ```
   
    -  This topic was modified 4 years, 3 months ago by [creinemann](https://wordpress.org/support/users/creinemann/).
      Reason: added short code
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Flayerswitch-button%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [hupe13](https://wordpress.org/support/users/hupe13/)
 * (@hupe13)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/layerswitch-button/#post-15388874)
 * You’re not doing anything wrong. I liked it when the menu was not collapsed on
   the desktop, so I wanted to automate it, but that does not work as it should.
   In the next version it is always collapsed again.
 *  Thread Starter [creinemann](https://wordpress.org/support/users/creinemann/)
 * (@creinemann)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/layerswitch-button/#post-15388911)
 * Ok, thank you very much.
 * Carl
 *  Thread Starter [creinemann](https://wordpress.org/support/users/creinemann/)
 * (@creinemann)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/layerswitch-button/#post-15407521)
 * Thanks for the plugin update, collapsing menu works great!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘LayerSwitch button’ is closed to new replies.

 * ![](https://ps.w.org/extensions-leaflet-map/assets/icon-256x256.png?rev=3067862)
 * [Extensions for Leaflet Map](https://wordpress.org/plugins/extensions-leaflet-map/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/extensions-leaflet-map/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/extensions-leaflet-map/)
 * [Active Topics](https://wordpress.org/support/plugin/extensions-leaflet-map/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/extensions-leaflet-map/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/extensions-leaflet-map/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [creinemann](https://wordpress.org/support/users/creinemann/)
 * Last activity: [4 years, 3 months ago](https://wordpress.org/support/topic/layerswitch-button/#post-15407521)
 * Status: resolved