mapbox-gl
Here are 271 public repositories matching this topic...
-
Updated
Feb 8, 2022 - JavaScript
MGLTilePyramidOfflineRegion should have a countOfTiles method that returns the number of tiles included in the tile pyramid. The implementation would rely on the mbgl::util::tileCount() function added in #9906.
This is the iOS/macOS equivalent to #11108 for Android. It would serve as a built-in alternative to mapbox/turf-swift#47 for applications already using the map SDK, including applica
-
Updated
Feb 8, 2022 - TypeScript
-
Updated
Jul 7, 2020 - Java
-
Updated
Jan 14, 2022 - TypeScript
'react-autocomplete' (https://github.com/reactjs/react-autocomplete) is no longer maintained and causing warnings
react-dom.development.js:12357 Warning: componentWillMount has been renamed, and is not recommended for use. See https://fb.me/react-unsafe-component-lifecycles for details.
- Move code with side effects to componentDidMount, and set initial state in the constructor.
- R
-
Updated
Feb 7, 2022 - Rust
-
Updated
Jan 8, 2022 - JavaScript
-
Updated
Jan 13, 2022 - JavaScript
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
To access queryRenderedFeatures (which does not seem to be exposed on the MapGL comp) I currently make use of MapContext:
<MapContext.Consumer>
{map => {
map.on("dragend", () => {
const fe
-
Updated
Jan 17, 2022 - R
-
Updated
Jan 28, 2022 - C++
Support testMode property so end to end tests don't hit the API
https://docs.mapbox.com/mapbox-gl-js/guides/browsers-and-testing/
-
Updated
Jan 21, 2022 - TypeScript
Missing POI icons
There are some POIs without an icon, e.g.:
There are some new Maki icons, so it would be good to check if there are any new icons we could use for missing ones:
OpenMapTiles POI layer:
https://github.com/openmaptiles/openmaptiles/tree/master/layers/poi
Maki icons:
https://l
-
Updated
Jan 20, 2022 - Java
Setup a homepage
As there is a lot of functionality in Pure Maps, it would be helpful to have user-oriented homepage. It should be hosted using github pages, as done with OSM Scout Server. Among other things, it should include
- list of platforms where it works, ideally with screenshots
- list of functions
- list of providers
- explain how to use offline
- for more complicated functions (GPX & GPX Smart, fo
Add tests
For now: a unit test that makes sure we can mount the DrawControl component.
-
Updated
Jan 25, 2022 - C++
-
Updated
Jan 14, 2022 - JavaScript
-
Updated
Feb 2, 2022 - TypeScript
-
Updated
Feb 1, 2022 - JavaScript
-
Updated
Feb 2, 2022 - TypeScript
-
Updated
Jan 24, 2021 - HTML
Improve this page
Add a description, image, and links to the mapbox-gl topic page so that developers can more easily learn about it.
Add this topic to your repo
To associate your repository with the mapbox-gl topic, visit your repo's landing page and select "manage topics."

mapbox-gl-js version:2.6.1
browser:Chrome
Steps to Trigger Behavior
1.create LngLatBounds as
bounds2 .use
map.fitBoundsand pass thecenteroption to itLink to Demonstration
check out this link for more info:
https://jsbin.com/zodotod/edit?html,output
Expected Behavior
The
boundsshould be in the view and thecenterof the map should be the `cen