Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MINIMAP throws an error #279

Open
tahv0 opened this issue Apr 30, 2020 · 0 comments
Open

MINIMAP throws an error #279

tahv0 opened this issue Apr 30, 2020 · 0 comments

Comments

@tahv0
Copy link

tahv0 commented Apr 30, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant