Skip to content

robbo1975/MapboxVectorTileImageryProvider

Repository files navigation

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 robbo.blah@gmail.com

Update

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

About

Live rendering of Mapbox Styled-Vector tiles within Cesium

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published