https://geospatial.alberta.ca/titan/res ... eryобразно class = "lang-js prettyprint-override">
Код: Выделить всё
const map = new mapboxgl.Map({
container: 'map',
style: 'mapbox://styles/mapbox/streets-v11',
});
map.on('load', () => {
map.addSource('main-source', {
type: 'geojson',
data: 'https://geospatial.alberta.ca/titan/rest/services/transportation/access_facility_roads/FeatureServer/0/query?where=1%3D1&returnExceededLimitFeatures=true&f=geojson'
});
// Some calls to addLayer for styling
});
Код: Выделить всё
{
type: "FeatureCollection",
exceededTransferLimit: true,
features: [. . .],
properties: { exceededTransferLimit: true }
}
Подробнее здесь: https://stackoverflow.com/questions/796 ... on-sources
Мобильная версия