-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GL JS docs copyedits #11175
GL JS docs copyedits #11175
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What dependencies changed? I don't see changes to package.json
anywhere, just the lock file.
src/ui/map.js
Outdated
* @param {number} [options.zoom=0] The initial zoom level of the map. If `zoom` is not specified in the constructor options, Mapbox GL JS will look for it in the map's style object. If it is not specified in the style, either, it will default to `0`. | ||
* @param {number} [options.bearing=0] The initial bearing (rotation) of the map, measured in degrees counter-clockwise from north. If `bearing` is not specified in the constructor options, Mapbox GL JS will look for it in the map's style object. If it is not specified in the style, either, it will default to `0`. | ||
* @param {number} [options.pitch=0] The initial pitch (tilt) of the map, measured in degrees away from the plane of the screen (0-85). If `pitch` is not specified in the constructor options, Mapbox GL JS will look for it in the map's style object. If it is not specified in the style, either, it will default to `0`. | ||
* @param {LngLatLike} [options.center=[0, 0]] The inital geographical [centerpoint](https://docs.mapbox.com/help/glossary/camera#center) of the map. If `center` is not specified in the constructor options, Mapbox GL JS will look for it in the map's style object. If it is not specified in the style, either, it will default to `[0, 0]` Note: Mapbox GL uses longitude, latitude coordinate order (as opposed to latitude, longitude) to match GeoJSON. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great catches @ryanhamley – correcting these issues now. Using #11072 as a reference for OGC:CRS84 and the GeoJSON standard for coordinate order.
* @param {LngLatLike} [options.center=[0, 0]] The inital geographical [centerpoint](https://docs.mapbox.com/help/glossary/camera#center) of the map. If `center` is not specified in the constructor options, Mapbox GL JS will look for it in the map's style object. If it is not specified in the style, either, it will default to `[0, 0]` Note: Mapbox GL uses longitude, latitude coordinate order (as opposed to latitude, longitude) to match GeoJSON. | |
* @param {LngLatLike} [options.center=[0, 0]] The initial geographical [center](https://docs.mapbox.com/help/glossary/camera#center) point of the map. If `center` is not specified in the constructor options, Mapbox GL JS will look for it in the map's style object. If it is not specified in the style, it will default to `[0, 0]` Note: Mapbox GL uses `longitude, latitude` coordinate order (as opposed to `latitude, longitude`) to match the [GeoJSON specification](https://datatracker.ietf.org/doc/html/rfc7946#section-4), which is equivalent to the OGC:CRS84 coordinate reference system. |
Thanks @ryanhamley for your careful review! I've incorporated your feedback.
The lock file is no longer in the diff for this PR, I ran Any advice on resolving the 1 failing check? |
That's a known issue; the test is just flaky. I'll re-run those tests. |
YOUR_MAPBOX_ACCESS_TOKEN
as placeholder string inREADME.md
andCONTRIBUTING.md
per https://github.com/mapbox/documentation/issues/773map.js
optionssrc/ui/events.js
andsrc/ui/map.js
Launch Checklist
@mapbox/map-design-team
@mapbox/static-apis
if this PR includes style spec API or visual changes@mapbox/gl-native
if this PR includes shader changes or needs a native portmapbox-gl-js
changelog:<changelog></changelog>