-
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
[docs] Address user feedback for /api: sources, images, layers #8754
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.
Wow, those updates are so good! This will be super helpful for new users.
@@ -1144,9 +1144,29 @@ class Map extends Camera { | |||
* {@link CanvasSourceOptions}. | |||
* @fires source.add | |||
* @returns {Map} `this` | |||
* @see [Draw GeoJSON points](https://www.mapbox.com/mapbox-gl-js/example/geojson-markers/) | |||
* @see [Style circles using data-driven styling](https://www.mapbox.com/mapbox-gl-js/example/data-driven-circle-colors/) | |||
* @see [Set a point after Geocoder result](https://www.mapbox.com/mapbox-gl-js/example/point-from-geocoder-result/) |
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.
ha, I just discovered this independently, was about to submit my PR when I noticed this.
Since 6e6a005#diff-44befe964c5c5c476298e33cc55ce3e7 the geocoder example no longer uses addSource.
This PR is one in a series that will address user feedback on the contents of the API docs including adding inline examples to all sections of the API docs and auditing
Related
links for relevance.As always, all feedback is welcome! But, there are some specific things that need a close look:
addImage
correctly?@see
resources (for example,* @see Vector source: [Show and hide layers](https://docs.mapbox.com/mapbox-gl-js/example/toggle-layers/)
)?setLayerZoomRange
description.cc @mapbox/docs