Skip to content
This repository was archived by the owner on Jun 10, 2023. It is now read-only.
This repository was archived by the owner on Jun 10, 2023. It is now read-only.

Leaflet Instance #49

@csimpi

Description

@csimpi

Hi, thank you for this directive, very helpful.

I'd like to use the leaflet-image plugin to make a snapshot.

Here is the example:
https://www.mapbox.com/mapbox.js/example/v1.0.0/leaflet-image/

$scope.$on('mapboxglMap:load', function (event, mapboxglMapEvent) {
            $scope.mapInstance = mapboxglMapsData.getMapById('worldMap');
            leafletImage(map, function(){});
});

I'm getting getSize() function doesn't exists when the leafletImage plugin calls the getSize() function on the $scope.mapInstance object.
Everything else like addLayer(),addSource() is working.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions