Skip to content

Problem displaying basemap with MiniMap plugin #37

@geoiva

Description

@geoiva

Good afternoon,

Thank you for the nice work!
I am having a problem adding the MiniMap plugin control (https://github.com/Norkart/Leaflet-MiniMap). I followed the pattern in the code, and I have been able to add the MiniMap but I cannot see the basemap from the MiniMap. I get the following error: "There was a problem running the BeforeMapLoads custom code: Cannot read property 'on' of undefined". I added the control in the setBasemap Function:

function setBasemap(basemap){
    ......
    bootleaf.MiniMapControl = new L.Control.MiniMap(bootleaf.basemapLayer).addTo(bootleaf.map);
}

Any help on how can I do it? Thank you in advance.

Is there any guide or something I could follow?

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions