mapbox
Here are 1,482 public repositories matching this topic...
Most our set* APIs return a map object to allow for function call chaining, e.g.:
map.setProjection().setZoom().set...
Currently, map.setProjection doesn't follow that pattern. We should update that for API consistency.
Refer https://github.com/mapbox/mapbox-gl-js/blob/main/src/ui/map.js#L1020_L1027.
cc @ryanhamley
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
Nov 12, 2021 - JavaScript
-
Updated
Nov 13, 2021 - TypeScript
-
Updated
Nov 13, 2021 - TypeScript
-
Updated
Jul 11, 2021 - JavaScript
-
Updated
Sep 14, 2021 - Java
-
Updated
Oct 29, 2021 - Python
In the event payload the return type of layer is `L.Layer? so it needs to be casted to the Layer-Type.
layer.on('pm:edit', (e) => {
if(e.shape === 'Polygon'){
(e.layer as Polygon).getLatLngs();
}
});
I think following should work too: (But not tested)
layer.on('pm:edit', (e) => {
if(e.layer instanceof L.Polygon){
(e.layer as Polygon).getLatLngs();
}
-
Updated
Nov 12, 2021 - JavaScript
-
Updated
Dec 20, 2019 - Kotlin
-
Updated
Aug 16, 2021 - JavaScript
-
Updated
Nov 4, 2021 - Java
-
Updated
Nov 13, 2021 - Rust
-
Updated
Nov 2, 2021 - JavaScript
-
Updated
Oct 21, 2021 - Swift
-
Updated
Oct 5, 2021 - JavaScript
-
Updated
Nov 12, 2021 - Java
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
Nov 11, 2021 - R
No translation
This word does not appear in the translation into Transifex:
- Nextcloud additional settings
https://github.com/nextcloud/maps/blob/10aa2edd4882f27dfcbeb7a4d3d387a725a766e0/js/script.js#L986
App:
Maps 0.1.4
-
Updated
Oct 28, 2021 - C++
-
Updated
Jun 13, 2021 - JavaScript
-
Updated
Jan 11, 2019 - JavaScript
-
Updated
Nov 4, 2021 - C++
-
Updated
Oct 16, 2020 - JavaScript
Improve this page
Add a description, image, and links to the mapbox topic page so that developers can more easily learn about it.
Add this topic to your repo
To associate your repository with the mapbox topic, visit your repo's landing page and select "manage topics."

Hi!
My suggestion/request is simple. When filtering the data, sometimes one needs to use the edge values of the data distribution in the filter histogram.
For example, one wants to choose the data of an hourly distribution (from 0:00 to 24:00) for the time between 22:00 and 6:00 in the nighttime and discard the data from 6:00 till 22:00 during the daytime.
So, when filtering the data with