MapboxVectorTileImageryProvider Save

Live rendering of Mapbox Styled-Vector tiles within Cesium

Project README

MapboxVectorTileImageryProvider

A Mapbox Styled Vector Tile plugin for the Cesium map client. Please note that this project is in the very early stages of development. Please get in touch if you feel as though you can contribute. Javascript is not my first language and I am not an expert in Spatial systems or Cesium.

MapboxVectorTileImageryProvider MapboxVectorTileImageryProvider MapboxVectorTileImageryProvider MapboxVectorTileImageryProvider

Installation

I have not yet created an NPM package as I do not feel that it is yet mature enough. For now you can just check out my source code into CESIUM's node_modules folder and run from there, or if using a release build of CESIUM, check out into the BUILD folder.

//TODO: npm install @robbo1975/MapboxVectorTileImageryProvider

Usage

import MapboxVectorTileImageryProvider from '../node_modules/@robbo1975/index.js';
  
var mapbox = new MapboxVectorTileImageryProvider({
  url : 'https://basemaps.arcgis.com/arcgis/rest/services/OpenStreetMap_v2/VectorTileServer/tile/{z}/{y}/{x}.pbf',
  styleUrl : 'https://www.arcgis.com/sharing/rest/content/items/3e1a00aeae81496587988075fe529f71/resources/styles/root.json'
});

var viewer = new Cesium.Viewer("cesiumContainer", {
  imageryProvider: mapbox
});

Tests

//TODO: npm test

Contributing

Please contact me at [email protected]

Update

Since uploading this source code, there have been 'breaking changes' in the Cesium base code that prevent this prototype code from running.

Open Source Agenda is not affiliated with "MapboxVectorTileImageryProvider" Project. README Source: robbo1975/MapboxVectorTileImageryProvider
Stars
65
Open Issues
5
Last Commit
6 months ago
License
MIT

Open Source Agenda Badge

Open Source Agenda Rating