From 3a8bf8eb18aed88d8118d4f98e9e7084c2808006 Mon Sep 17 00:00:00 2001 From: Lauren Budorick Date: Thu, 29 Mar 2018 13:14:56 -0700 Subject: [PATCH] Remove canvas source documentation from style-spec page --- docs/pages/style-spec.js | 67 +--------------------------------------- 1 file changed, 1 insertion(+), 66 deletions(-) diff --git a/docs/pages/style-spec.js b/docs/pages/style-spec.js index 961946ed79b..fa3f9f3b6bb 100644 --- a/docs/pages/style-spec.js +++ b/docs/pages/style-spec.js @@ -97,9 +97,6 @@ const navigation = [ }, { "title": "video" - }, - { - "title": "canvas" } ] }, @@ -223,7 +220,7 @@ const navigation = [ } ]; -const sourceTypes = ['vector', 'raster', 'raster-dem', 'geojson', 'image', 'video', 'canvas']; +const sourceTypes = ['vector', 'raster', 'raster-dem', 'geojson', 'image', 'video']; const layerTypes = ['background', 'fill', 'line', 'symbol', 'raster', 'circle', 'fill-extrusion', 'heatmap', 'hillshade']; const {expressions, expressionGroups} = require('../components/expression-metadata'); @@ -874,68 +871,6 @@ export default class extends React.Component { - -
-

canvas

-

- A canvas source. The "canvas" value is the ID of the canvas element in the document. -

-

- The "coordinates" array contains [longitude, latitude] pairs for the video - corners listed in clockwise order: top left, top right, bottom right, bottom left. -

-

- If an HTML document contains a canvas such as this: -

-
- {highlightMarkup(`
-

- the corresponding canvas source would be specified as follows: -

-
- {highlightJSON(` - "canvas": { - "type": "canvas", - "canvas": "mycanvas", - "coordinates": [ - [-122.51596391201019, 37.56238816766053], - [-122.51467645168304, 37.56410183312965], - [-122.51309394836426, 37.563391708549425], - [-122.51423120498657, 37.56161849366671] - ] - }`)} -
-

- This source type is available only in Mapbox GL JS. Avoid using it in styles that need to maintain - compatibility with other Mapbox Maps SDKs. -

-
- { entries(ref.source_canvas).map(([name, prop], i) => - name !== '*' && name !== 'type' && - )} -
- - - - - - - - - - - - - - - - - - - -
SDK SupportMapbox GL JSAndroid SDKiOS SDKmacOS SDK
basic functionality>= 0.32.0Not supportedNot supportedNot supported
-