Norkart / Leaflet-MiniMap

A minimap control plugin for Leaflet
BSD 2-Clause "Simplified" License
395 stars 125 forks source link

Position relative to a sidebar #157

Open CodyBontecou opened 4 years ago

CodyBontecou commented 4 years ago

I'd like to create an effect similar to Google Maps, where the minimap moves relative to the detail drawer.

i.e. When the drawer is closed, the minimap has a 5px margin from the edge of the screen. When the drawer is open, the minimap has a 5px margin from the edge of the drawer.

Screen Shot 2020-09-09 at 22 54 36 Screen Shot 2020-09-09 at 22 54 43

As you can see in the second picture, the minimap maintains it's position regardless of what I create. I'd like to gain some control of this behavior if possible.