mapbox
Here are 1,534 public repositories matching this topic...
mapbox-gl-js version:2.6.1
browser:Chrome
Steps to Trigger Behavior
1.create LngLatBounds as bounds
2 .use map.fitBounds and pass the center option to it
Link to Demonstration
check out this link for more info:
https://jsbin.com/zodotod/edit?html,output
Expected Behavior
The bounds should be in the view and the center of the map should be the `cen
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
Dec 3, 2021 - JavaScript
-
Updated
Dec 31, 2021 - TypeScript
-
Updated
Dec 31, 2021 - TypeScript
-
Updated
Dec 21, 2021 - JavaScript
-
Updated
Sep 14, 2021 - Java
-
Updated
Dec 31, 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
Jan 1, 2022 - JavaScript
-
Updated
Dec 20, 2019 - Kotlin
-
Updated
Aug 16, 2021 - JavaScript
-
Updated
Dec 21, 2021 - Rust
-
Updated
Dec 23, 2021 - Java
-
Updated
Nov 26, 2021 - JavaScript
-
Updated
Oct 21, 2021 - Swift
-
Updated
Oct 5, 2021 - JavaScript
-
Updated
Dec 20, 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
Dec 17, 2021 - R
-
Updated
Oct 28, 2021 - C++
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
Jun 13, 2021 - JavaScript
-
Updated
Dec 17, 2021 - C++
-
Updated
Jan 11, 2019 - JavaScript
-
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