I tried to follow Klipfolios guide to implementing a Google Map. This worked fine, but since we already had worked with Mapbox in another web application, and since I wanted to tweak the map more than I am able to with Google Maps, I made an attempt of doing the same thing with Mapbox.
It took a while but all in all it worked out great. Basically I went with the same HTML Template klip but entered the following in the script pane:
require.config({
paths: {
"mapbox": "https://api.mapbox.com/mapbox.js/v2.4.0/mapbox"
}
});
require( ["mapbox"] , function() {
L.mapbox.accessToken = 'your token here';
var map = L.mapbox.map('map', 'mapbox.dark', {
center: [50.2667, 10.4000],
zoom: 7,
zoomControl: false,
minZoom: 3,
maxZoom: 9,
});
});
From here I was both able to add markers as a geojson layer and use the gl api to use a tweaked map of my own. If somebody is interested in more details, please just put in comment.