2.17.0-dev • Published 9 months ago

mapbox-gl-js-with-shapes v2.17.0-dev

Weekly downloads
-
License
SEE LICENSE IN LI...
Repository
github
Last release
9 months ago

THIS IS A FORKED BRANCH FROM THE ORIGINAL MAPBOX

This branch will have everything what the mapbox has but extended to show some shapes within the markers like in the image below:

image

USAGE

Just add the shape and shapeColor properties for each of your marker and you are ready to rock.

For example:

{
    type: 'Feature',
    properties: {
      shape: 'triangle', 
      shapeColor: '#fff'
    },
    geometry: {
      type: 'Point',
      coordinates: []
}

Available shapes are: circle, diamond, triangle, square, star, invTriangle