Multiple Mapkit Layers
I'm trying to add standard & hybrid layers in my website. In console, it is generating the following warning since the initialization is done twice. Is it possible to specify multiple layers using single mapkit js object?
[MapKit] mapkit.init(): already initialized; ignoring.
var roadMapTile = L.mapkitMutant({
language: "en",
type: "standard",
authorizationCallback: function (done) {
fetch("gettoken").then(res => res.text()).then(done);
}
});
// Satellite Map Tile Layer
var satelliteMapTile = L.mapkitMutant({
language: "en",
type: "hybrid",
authorizationCallback: function (done) {
fetch("gettoken").then(res => res.text()).then(done);
}
});