6,499 questions
0
votes
0
answers
32
views
Raster tiles not rendering colors correctly on map
I am working on rendering raster tiles on a web map, but I'm encountering an issue where the tiles do not display the expected colors. Instead, they appear either blank, black or incorrectly styled.
...
Tooling
0
votes
2
replies
95
views
How to implement an interactive alumni map with clustering and sidebar in React (Leaflet or Mapbox)?
I am building an alumni networking web application where I want to display alumni locations on a global map along with a sidebar list.
I want to implement the following features:
A world map with ...
Advice
0
votes
3
replies
34
views
Mapbox attribution report
I would like to know how I can report a breach of Mapbox’s attribution policy?
I am an OpenStreetMap contributor, and I have noticed that my “work” is being used
I have contacted the website owner and ...
Tooling
1
vote
4
replies
162
views
What is the difference between these mapping libraries
I want to transition from Google Maps to OpenStreetMap and overwhelmed by the number of library options out there. What is the difference between leafletjs, MapLibre, MapBox, OpenFreeMap, OpenTiler, ...
2
votes
1
answer
58
views
How to handle Mapbox GL JS popup click events with custom HTML
I'm building a map application with Mapbox GL JS and need help with popup click events.
Here's my current code:
const popup = new mapboxgl.Popup() ...
1
vote
0
answers
60
views
Maps not displaying in CarPlay Instrument Cluster
Is anyone else using the Mapbox iOS SDK with CarPlay — specifically the instrument cluster display? With the latest Navigation/Maps SDK releases (Navigation 3.17.0, Maps 11.17.0), the instrument ...
0
votes
3
answers
427
views
Token Setup for @rnmapbox/maps in an Expo Project
I'm currently really struggling to correctly setup the token I need in my Expo project for @rnmapbox/maps.
The Documentation lacks any explanation regarding the tokens. It only mentions:
Before ...
Best practices
0
votes
0
replies
37
views
Implementing sdk-agnostic callbacks in fragments
My question is not Android specific, it is rather more design-specific.
Previously I had a BaseFragment that many child fragments were derived from. base fragment had objects of mapbox map to handle ...
1
vote
0
answers
44
views
Mapbox 3.16.0 js gl - returns two objects on click event with some missing properties in first one
I am experiencing some very weird results and I cannot begin to understand why 2 objects of [0] and [1] are returned on a single click.
I load three layers of pistes (ski runs), a solid line layer, a ...
0
votes
0
answers
49
views
Mapbox gljs map in Flutter issues with any kind of sheet/overlay
I'm using Mapbox in my Flutter app and am having some issues with building out UI the way I want to because of all of the hacks I need to put in place to have bottom sheets and any kind of overlay ...
0
votes
1
answer
51
views
Mapbox Android V10 OnMapClickListener/OnMapLongClickListener not detecting clicks when AnnotationManger is added
I am using com.mapbox.maps:android-ndk27:10.19.0, and I seem to have found a bug.
Bug
When I create an AnnotationManager, the OnMapClickListener does not detect clicks.
class MainActivity : ...
1
vote
0
answers
31
views
Mapbox tileset : Points appear aligned on a grid at low zoom levels
I’ve created a tileset with point data that I’d like to display around zoom levels 11–12. It works perfectly at higher zoom levels, but when I zoom out below 12, the points start appearing aligned on ...
0
votes
1
answer
99
views
mapbox gl : SVG in symbol layer
I have an SVG hard-coded in JavaScript:
fr = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 3 2"><path fill="#EC1920" d="M0 0h3v2H0z"/><...
0
votes
1
answer
85
views
Change cluster icon in Mapbox compose for Android
I would like to set a specific icon for my clusters in mapbox but I can't find how to do this in compose. I found some tutorials to do this in classic Java but can't find how to adapt it to the ...
0
votes
0
answers
32
views
Why the layer fill-extrusion-height changes when I enable terrain layer on mapbox?
In this example, I have a Mapbox map where I draw a cube on top of it.
When I enable an online terrain service to add a terrain layer, I notice that the fill-extrusion-height appears visually ...
1
vote
1
answer
515
views
Expo Mapbox build EAS fail
I'm trying to build my React Native Expo app for Android using EAS Build. The iOS build works perfectly, but the Android build consistently fails with a Mapbox dependency resolution error.
Build ...
0
votes
0
answers
31
views
Style using coordinates in Mapbox GL JS
I have a map loaded with a large geojson feature collection and would like to apply some fading (opacity) of the geometries that are near a certain latitude. All of the feature collections are ...
4
votes
2
answers
243
views
Why does @mapbox/polyline decode differently than Google’s Routes API polyline decoder?
I have an encoded polyline string:
ivgfAw_}bNaAfMwBjZk@IUrCGlC?jBFjCDbAV~B^xBVdAJFbB~EpApClAzBfC~DfAbBvDxGFZvDxGtAzBpDbHp@hAbDdG|EhH@d@bEbGlDnFl\fi@lIfN~OlWvFbJ|BpDg@~x@bDdFtHfMvZ~f@hDvF|EzHhDxFxTj^...
0
votes
0
answers
63
views
Mapbox for MAUI Pulsing dot marker
I'm tryng to implement Mapbox in MAUI App using Mapbox.Maui 10.11.1.1 package.
I'm currently displaying marker as circle with fixed color.
I would like to display some point in a map using a pulsing ...
0
votes
0
answers
38
views
Is there a way to know the maximum pitch/zoom to prevent having the camera inside mountains?
I'm using Mapbox GL JS with terrain and exaggeration, and would like to adjust maximum pitch dynamically based on what's visible on the map.
More specifically, I would like to prevent the user from ...
2
votes
0
answers
179
views
How to install NATIVE iOS mapbox navigation SDK in EXPO
Is there any way to use the native iOS mapbox navigation sdk in an expo module WITHOUT using a third party expo or react-native package?
I'm following this expo guide on how to Wrap third-party native ...
1
vote
0
answers
58
views
Why are features not retained in unclustered layer during Mapbox tileset creation?
I am trying to create/publish a tileset on Mapbox. When I upload the geojson into Mapbox's dataset the locations properly retain their properties. However, when I try to create the tileset thru the ...
0
votes
0
answers
55
views
How to highlight specific buildings in MapBox Flutter SDK according to provided lat/long coordinates
I have around 100k apartments in one city which I need to highlight on MapBox map. For these apartments I have coordinates (lat, lng) but I don't see how can I find a specific building (feature) in ...
0
votes
1
answer
57
views
How to set Mapbox line layer width in miles in SwiftUI?
Using .constant(20.0) gives the line a fixed width of 20 pixels on the screen.
I'm building a mapping application in SwiftUI using the Mapbox Maps SDK where I draw various paths on the map.
For each ...
-4
votes
1
answer
65
views
Where is storage size and tile count of OfflinePack in Mapbox's ReactNative module?
I wanted to show my user's the space in memory of an offline map they had downloaded and saw ambiguous fields in the OfflinePack arg in the onProgress callback in the createPack call in the Mapbox ...
-1
votes
1
answer
94
views
Cannot extract coordinates in my Mapbox Search API code
I have been trying to get the latitude and longitude of locations I have searched for in the Mapbox Search Bar API, and am using the following code implementation and it works perfectly for everything ...
0
votes
2
answers
122
views
How to add zoom buttons to Mapbox SwiftUI view?
I'm developing a SwiftUI app with Mapbox. How can I add zoom buttons to my map?
My current code that works in the .camera viewport state. But how can I apply zoom when the viewport is in the .idle ...
0
votes
0
answers
44
views
Custom draw control component works on local instance but not after build and deployment
Custom draw control component from mapbox-gl-draw works on local instance but not after build and deployment in React environment.
I have a custom draw control here:
import React, { useCallback } from ...
0
votes
1
answer
58
views
Mapbox - "Cannot find 'MGLPolyLine' in scope" error when MapBox has been imported
I have found that despite the fact that I have imported the Mapbox Package and have followed the code steps they have provided me correctly, I still get the error "Cannot find 'MGLPolyLine' in ...
0
votes
0
answers
60
views
MapBox with Expo: Cannot get styles
I am trying to build a map feature on my expo app. I am using the maps package. It requires Expo. It requires native code so I setup Expo that way. However, when I build the ios app I get an error:
...
0
votes
0
answers
91
views
Flutter Mapbox v4 Vector Tiles
I'm trying to use MapBox Vector tiles v4 according documentation: but something is wrong. I was able to use the normal tiles but they are expensive.
final vectorUrlTemplate = (_isSatelliteView
? '...
-1
votes
1
answer
90
views
How to access MapState in React Native MapBox?
I'm building a React native app and have this example below using the @rnmapbox/maps package. Is there a way to access the current MapState through the mapViewRef or cameraRef?
I know I can get it ...
1
vote
1
answer
156
views
How to show the whole world on a mobile screen in rnmapbox/maps
I'm using @rnmapbox/maps, and would like to be able to show a full map of the world like below on a mobile screen (i.e., with all countries shown at once). I don't particularly mind what the height to ...
0
votes
0
answers
45
views
How to style unselected line points in Mapbox draw gl?
Initially, when drawing a line in Mapbox GL Draw, the vertex points are only visible when the line is selected. However, I want the points to remain visible even when the line is unselected, and to ...
1
vote
0
answers
184
views
Flutter MapBox maps are just black
I'm trying to make a page using a MapWidget from mapbox_maps_flutter version ^2.8.0-beta. However, the map doesn't load and is just black. No errors have been outputted.
My code worked a couple days ...
1
vote
0
answers
172
views
React Native MapBox - ShapeSource lags the whole app when rendering many features
I am developing an app in expo that relies heavily on the map. Basically, here is my implementation:
MapScreen
import { MapProvider } from "./MapContext";
import MapContainer from "./...
1
vote
0
answers
131
views
How to add circle annotation to Flutter mapbox
I'm making a Flutter page and I want to have a Mapbox widget that shows a highlighted circle around the user's location. And there's a slider outside the map that can adjust the radius of the circle. ...
1
vote
0
answers
52
views
Add side resize for rectangle polygon layer in Mapbox GL
I'm building a tool for editing rectangular polygon on a Mapbox map in web. I rectangle has controls on the middle of each rectangle side that allow side resizing. This resizing should allow move only ...
1
vote
0
answers
56
views
Can I use a custom routing server with Mapbox Navigation SDK on Android?
I am developing an Android application using the Mapbox Navigation SDK for turn-by-turn navigation. However, instead of using Mapbox's routing service, I want to use my own routing server (based on ...
0
votes
1
answer
54
views
Mapbox Custom Marker as a "Pillar" on the Map
My goal is to have my markers standing like pillars at 90 degrees to the Mapbox map.
Like this:
I got this from https://github.com/vasturiano/globe.gl
Currently I have this code to add a Marker but ...
1
vote
0
answers
67
views
Flutter Mapbox memory Leak - app crashes with 300 MB of dynamic GeoJSON data
In my Flutter app, I am using the flutter_mapbox_map plugin. I have about 300MB of GeoJSON data which is loading from the server directly to map in pieces. However, in lower-end devices, the app ...
2
votes
2
answers
698
views
How do I fix a basic(BasicAuthentication) call in Gradle authentication setup when it is not documented and not working?
I'm trying to set up the Mapbox SDK for use in Android Studio, which requires authentication setup. In every example I can find, it's supposed to be set up approximately like this in the ...
0
votes
1
answer
57
views
How does the "all" expression in Mapbox for Swift work?
I'm having a very difficult time understanding Mapbox expressions in Swift. For example, I write the following:
let falseExpression: MapboxMaps.Expression = Exp(.literal) { false }
let combinedFilter: ...
-2
votes
1
answer
49
views
MapBox: Clustering routes (A -> B)
I am using react-map-gl and mapbox-gl in my nextjs application.
This is my first time using advanced map rendering.
I need to cluster routes. Each route has StartPoint (lat, lng) and EndPoint (lat, ...
-1
votes
1
answer
52
views
Mapbox - Saved lat/lon, zoom, bearing and pitch produce two different camera positions when recalled
I am using mapbox gl js version 3.2. I have a button that when clicked, will save the following data to my database which makes up a view:
view data
var mapbox_pitch
var mapbox_zoom
var ...
-1
votes
1
answer
75
views
Is there a way in mapbox expression to check if attribute values are empty or blank space?
I am trying to check if the field values are null or empty(blank space). Is there a way to trim the field values and check if those are empty string or not?
'icon-image': [
'case',
['==', [...
1
vote
1
answer
52
views
Mapbox rendering empty labels if background color is not null
I’m working on a web application where I need to exclude labels from rendering if their values are null or empty. In my labelingInfo, the issue arises when labels have no valid value—the background ...
0
votes
1
answer
119
views
Error on Maptiler geocoding import method; tried Mapbox, but it requires the credit card info
I am new to backend development, and I am trying to use MapTiler's geocoding service to convert addresses into latitude and longitude (forward geocoding). My goal is to retrieve the latitude and ...
0
votes
2
answers
270
views
Use QGIS WMTS to load mapbox satellite image. It is blank after loading
According to the official guideline, I use QGIS WMTS to load a Mapbox satellite image. After loading, it is blank, the token is correct, and the network is fine. I use the QGIS debug panel to see that ...
0
votes
1
answer
196
views
Why map resize is not working when layout changes?
I am trying to implement layout with map and sidebar. Everything seems to be working fine until I collapse sidebar (change its width to smaller value). After the sidebar is collapsed, the map should ...