mapbox-gl-js icon indicating copy to clipboard operation
mapbox-gl-js copied to clipboard

Wrong StyleSpec Docs for Geojson Source

Open bewithjonam opened this issue 7 years ago • 3 comments

Not sure if this is the right repo to report bug about the mapbox gl js doc, but doing anyway. (StyleSpec Docs for Geojson Source)[https://docs.mapbox.com/mapbox-gl-js/style-spec/#sources-geojson]

There are two sections of geojson source in the doc. The first geojson source doc list properties like tiles/scheme/url (properties from TileJSON). And I guess the first one is wrong.

mapbox-gl-js version:

browser:

Steps to Trigger Behavior

1. 2. 3.

Link to Demonstration

https://jsbin.com/

Expected Behavior

Actual Behavior

bewithjonam avatar Feb 04 '19 12:02 bewithjonam

It looks like the GeoJSON and Vector source docs got mixed together for some reason. I don't see anything wrong with the style-spec JSON. Could it be something with Batfish or the page shell @mapbox/docs? screen shot 2019-02-04 at 10 57 06 am

ryanhamley avatar Feb 04 '19 19:02 ryanhamley

@ryanhamley looks like this section got duplicated on the page: https://github.com/mapbox/mapbox-gl-js/blob/949afdcaa7bcc5c003026a854eaa00c07eb6b7e9/docs/pages/style-spec.js#L371

https://github.com/mapbox/mapbox-gl-js/blob/949afdcaa7bcc5c003026a854eaa00c07eb6b7e9/docs/pages/style-spec.js#L493

I'll create a PR to fix

katydecorah avatar Feb 04 '19 19:02 katydecorah

Fixed in #7875 thank you for reporting!

katydecorah avatar Feb 04 '19 20:02 katydecorah