chribre / Kleinerzeugernetzwerk

0 stars 0 forks source link

change map-provider #7

Closed chribre closed 3 years ago

chribre commented 3 years ago

https://github.com/chribre/Kleinerzeugernetzwerk/blob/44c4c79f5301991a08c223953145f8a361d80659/assets/components/map.php#L791

Instead of using mapbox we should consider using the map-provider cartoDB. I think it's free to use for non-commercial purposes so we are good to go.

var CartoDB_Positron = L.tileLayer('https://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}{r}.png', {
    attribution: '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors &copy; <a href="https://carto.com/attributions">CARTO</a>',
    subdomains: 'abcd',
    maxZoom: 19
});

Mapbox is charging fees at >50.000 loads. Maybe it's far away but I don't know what will happen when we reach out to public so it's safer to use an alternative.

https://www.mapbox.com/pricing/