6,514 questions
1
vote
0
answers
40
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
1
answer
38
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 : ...
0
votes
1
answer
71
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
0
answers
35
views
Is it possible to create a map only made of islands or islets through mapbox?
I want to create a map only made of islands or islets have "place":"island" property. But it's a bit troublesome if i need to download data from osm regulaly to keep my geo data ...
1
vote
1
answer
364
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 ...
4
votes
2
answers
159
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
23
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 ...
1
vote
0
answers
55
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
1
answer
45
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 ...
-1
votes
1
answer
80
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
0
answers
39
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
0
answers
50
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:
...
-1
votes
1
answer
73
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 ...
0
votes
0
answers
35
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 ...
0
votes
0
answers
108
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 "./...
0
votes
0
answers
56
views
update routes when user's location change is not working
I'm using mapbox_maps_flutter: ^2.7.0
i've set up an observer for user's location, when user changes his location (if user is driving for example), i call Directions API and get a new route from his ...
1
vote
0
answers
42
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
52
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
0
answers
110
views
Example of Navigation Between Points Using Mapbox and Jetpack Compose
I'm working on a Jetpack Compose application and I want to implement GPS navigation between multiple points using Mapbox.
I've managed to display the map using Mapbox, but I'm struggling to find a ...
1
vote
2
answers
520
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
47
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
39
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, ...
0
votes
0
answers
93
views
promoteId in Mapbox Studio
I use a geojson file such as the following to upload data as a Mapbox tileset to Mapbox Studio. The tileset is then used for a Mapbox style created with Studio. Within my file, I assign both a top-...
0
votes
0
answers
26
views
Mapbox search feature by lat lng
I want to search for a feature just like queryRenderedFeatures, but instead of providing viewport coordinates, providing geographical coordinates.
I tried to achieve this with map.project but it is ...
0
votes
0
answers
61
views
stop mapbox from requestin location on android not possible-> react native
I got a problem with my newest react native app.
I have implemented @rnmapbox/maps and only use it to show the location of the operator of the app. So I don't use any data from the user.
This is the ...