django-leaflet icon indicating copy to clipboard operation
django-leaflet copied to clipboard

MINIMAP throws an error

Open tahv0 opened this issue 4 years ago • 0 comments

Hi! I tried to use Minimap with MINIMAP = True, but it throws this error on console and map doesn't show up:

leaflet.extras.js:181 Uncaught TypeError: L.Control.MiniMap is not a constructor
    at e.<anonymous> (leaflet.extras.js:181)
    at e.whenReady (leaflet.js:5)
    at e._djSetupControls (leaflet.extras.js:180)
    at e.initialize (leaflet.extras.js:68)
    at new e (leaflet.js:5)
    at Function.L.Map.djangoMap (leaflet.extras.js:206)
    at loadmap ((index):1432)
(anonymous) @ leaflet.extras.js:181
whenReady @ leaflet.js:5
_djSetupControls @ leaflet.extras.js:180
initialize @ leaflet.extras.js:68
e @ leaflet.js:5
L.Map.djangoMap @ leaflet.extras.js:206
loadmap @ (index):1432
load (async)
(anonymous) @ (index):1437
(anonymous) @ (index):1440

Any ideas how I might use it wrong or is this a bug?

Using Python 3.6.9, Django 3.0.5 and django-leaflet 0.26.0

tahv0 avatar Apr 30 '20 09:04 tahv0