Skip to main content
Filter by
Sorted by
Tagged with
-2 votes
0 answers
10 views

How we can show Highlight country and Zoom on Country Select on map in map Gl Library [closed]

I want to show Highlight Country region on map and on user select the region i want to zoom in to the region. also i want create polygon on map and get the latitude and longitude of the selected ...
SunnyThakurwar's user avatar
0 votes
0 answers
9 views

Does querySourceFeatures use/have some buffer?

When I use querySourceFeatures on mvt tiles I get results for features that are out of the current viewport. Why? Does it use some buffer around the tiles or does it happen because I am in the middle ...
tlzg's user avatar
  • 14.9k
0 votes
0 answers
15 views

Why does mapbox map zoom not work in safari using mouse wheel?

Why does mapbox map zoom not work in safari using mouse wheel? Also can't find information about similar problem on internet // I tried many things like: map.scrollZoom.enable(); //or map.on('wheel'...
Rina's user avatar
  • 1
-1 votes
0 answers
27 views

How to solve Mapbox API access token issue

I'm working on a project where I need to use Mapbox, I have created a public token and a secret token and both didn't work. I'm Importing the API in my .env file this way: REACT_APP_MAPBOX_TOKEN= (my ...
Hinad Fransis's user avatar
0 votes
0 answers
15 views

Mapbox: Make line cross the meridian

I have some trouble with the mapbox editor and the api itself. I have 4 coordinates and cross the meridian first time from west to east and afterwards from east to west. Unfortunately mapbox does not ...
Dwain's user avatar
  • 53
0 votes
0 answers
24 views

Hide or disable background/atmosphere on Mapbox GL

I am working on a project with Mapbox GL to display maps. I want to hide/disable the atmosphere like "mapbox://styles/mapbox/satellite-streets-v11" style. I've tried modifying the map style ...
AceDev's user avatar
  • 60
0 votes
0 answers
20 views

Switching between map styles in Angular project using ngx-mapbox-gl causes error

I'm working on an Angular project (v14) where I'm using mapbox-gl (v0.54.1), ngx-mapbox-gl (v3.3.1), and @types/mapbox-gl (v0.51.12). I have successfully implemented Mapbox and everything works fine ...
Safouane Jelassi's user avatar
1 vote
1 answer
27 views

IncompatibleClassChangeError with FusedLocationProviderClient in Flutter using Mapbox SDK using mapbox_gl, location packages

I'm encountering a java.lang.IncompatibleClassChangeError when trying to use the **Mapbox SDK **in my Flutter application. The error occurs when the location component is enabled. Here's the error log:...
Naqeeb Awan's user avatar
2 votes
1 answer
53 views

How to create a gradient background layer in MapboxGL?

Is there any way to create a gradient background in mapboxGL JS or Studio? There is a prop for linear gradient, but I can't find any information about polygonal gradient. As a background layer or a ...
SERG's user avatar
  • 3,949
0 votes
0 answers
80 views

Draw a POLYGON feature as as a line string in MapLibre / Mapbox

I have vector tiles that I want to render in MapLibre with a custom style. There are geofeatures with polygons that I want to render as a filled polygon. In addition, I want to render the outline of ...
alexgk's user avatar
  • 13
0 votes
1 answer
35 views

I cant get mapbox to work in my NextJs project

import React, { useEffect, useRef, useState } from 'react'; // eslint-disable-line import/no-webpack-loader-syntax // @ts-ignore import mapboxgl from '!mapbox-gl'; import 'mapbox-gl/dist/mapbox-gl.css'...
Ayushi jain's user avatar
0 votes
0 answers
59 views

A problem occurred configuring project ':mapbox_gl'

i just finished a prototype and when i run flutter build apk --release i get this error: (flutter 3.22.1) how am i supposed to fix it? thanks in advance: FAILURE: Build failed with an exception. What ...
Houssam's user avatar
0 votes
0 answers
17 views

MapboxGLJS's popup placed in the middle of two coordinates is never correct

I'm building an Angular app that will visualize a list of flights a user has taken. I'm drawing a line on the globe projection between two coordinates and whenever the line is clicked I'd like to ...
greenbanzai's user avatar
0 votes
1 answer
46 views

Removing all popups from mapboxgl map

I'm adding popups to a mapbox map using: var popup = new mapboxgl.Popup({closeOnClick: true, offset: [20, 0]}) But how do I remove all popups, for example, with an event listener? I've tried this but ...
DiamondJoe12's user avatar
  • 1,699
0 votes
0 answers
35 views

I get 'There is already a source with this ID' at initial Effect- mapbox gl js

Im trying to implement a custom DrawControl with mapbox-gl-js with Next 14 In the Dev Enviroment im using React Strict Mode so my useEffect's render twice. Now i want to create the Control with the ...
adamoe's user avatar
  • 23
0 votes
0 answers
23 views

Mapbox along with GIBS NASA API

I have been exploring options on how to add NASA images over Mapbox backgrounds. In this search I have encountered an example in this github respository GIBS mapbox-gl-js example, however it only ...
Juan Esteban Agudelo Ortiz's user avatar
3 votes
1 answer
410 views

How to use Mapbox's raster-color to recolour pixels with a specific value in a specific colour channel?

I am using Mapbox to add a red rectangle to a map. I would like to modify the colours of my rectangle. I use the raster-color Paint property to achieve this. Mapbox provides the example Add a raster ...
zabop's user avatar
  • 7,639
0 votes
1 answer
33 views

MapBox : How to prevent events of the top layer trigger bottom layers?

I have mapbox with 3 layers: Roof ( Polygon) Panels ( Rectangle ) PanelsID ( circle ) When I hover or click on the PanelID layer (circle) which should remove all the panels, it triggers also the ...
Ala Eddine Menai's user avatar
1 vote
0 answers
118 views

Issue with mapboxgl not removing layers/source on map

I'm having trouble dynamically remove and re-adding layers to a mapboxgl map. Here's some pseudocode, unfortunately I'm not able to produce a fully reproducible example since I'm running this code in ...
DiamondJoe12's user avatar
  • 1,699
0 votes
0 answers
180 views

React Native error trying to connect Mapbox

I followed every step on the starting guide on mapbox react native github repo but im still getting this errors: ERROR Error: @rnmapbox/maps native code not available. Make sure you have linked the ...
Eli's user avatar
  • 41
0 votes
0 answers
21 views

Changing property colour based on value? Mapbox JSS

I've been making a map in Mapbox about the number of offstreet carparking spaces in Melbourne. I have added a layer with my tileset and now am wanting to vary the colour of the objects in that layer ...
Emma Stanton's user avatar
0 votes
0 answers
22 views

Rendering data on Mapbox using geojson-vt

I see similiar questions were asked but could find a definite answer. I'm using Mapbox-gl with Vue3 (v-mapbox) and trying to render a lot of data. One solution that i've found is mapboxs geojson-vt ...
Coni Wright's user avatar
0 votes
0 answers
31 views

click event element in popUp mapbox

Hi guys I have a problem, I'm trying to call method that is inside a popUp of Mapbox library, this is my code, all code is in ngOnInit lifecycle for the moment I triend to put a method in a div of pup,...
Ricardo Tovar's user avatar
0 votes
0 answers
65 views

Mapbox - Creating a layer acting as a mask for another layer

I'm currently working with react-map-gl (6.1.21) and I'm encountering an issue that I've no idea how to solve I have data for a heatmap and I render this in a layer. This works fine <Source ...
Guillaume Munsch's user avatar
-1 votes
1 answer
38 views

Zoom into country

I'm trying to create a function that users can click on a country marker and the map will zoom into the country on React. However, the problem is the zoom level is different for different countries. ...
user16971617's user avatar
0 votes
0 answers
27 views

After the whole ride track using Mapbox, I want to show the route of the user which he has taken

It was working in older version and below sharing the code which I was using. Below is the code I used in version 8.6.0: val boundsList = LatLngBounds.Builder() for (i in 0 until rideTrack....
Pratiksinh Jhala's user avatar
0 votes
1 answer
115 views

Dynamically updating layers in mapbox gl within RMarkdown HTML document (Uncaught TypeError)

I'm rendering a mapboxgl map in RMarkdown (HTML output, using r2d3 js library in R for the js part). I'm trying to update the layers displayed in a mapboxgl map by passing in a dynamic variable for ...
DiamondJoe12's user avatar
  • 1,699
0 votes
0 answers
55 views

How to apply mask (transparent area) in mapboxGL?

I have a Map where I draw polygons for the coordinates that define the roofs: However, I struggle to disable specific areas on the roofs by making them transparent ( the gray area ) where these ...
Ala Eddine Menai's user avatar
0 votes
0 answers
56 views

Mapbox Flutter: 'A valid access token parameter is required' error

I have been successfully using Mapbox API with my Flutter application. However, after a significant number of requests, I started encountering the following error: E/Mbgl (14179): {ample.untitled1}[...
leith inoubli's user avatar
0 votes
0 answers
17 views

Direction waypoints are not following streets properly

I am using Mapbox 11 (React Native) and mapbox-gl (React) and would like to display routes for walking, driving and cycling. However, whethere it is driving or walking, the resulting route from the ...
Stefan Falk's user avatar
0 votes
0 answers
28 views

MapboxGl SymbolLayer iconImage showing random image in production

I'm building a mobile application with React Native and expo, using mapbox for the map rendering. I'm working with a MapView that display different images in custom markers based on the sport_id of my ...
Starcops's user avatar
0 votes
0 answers
20 views

Mapbox GL JS categorical color classification of strings?

Trying to set a color scheme for different categories of water facilities using step and get expressions, but nothing is showing up on the map. map.addLayer({ 'id': 'cool-spaces', '...
kelly's user avatar
  • 1
0 votes
1 answer
218 views

Dynamically styling active Mapbox GL JS marker in React

I'm working with mapbox-gl-js in a React (Next.js) project and I'm having trouble figuring out how to dynamically style markers differently when they are clicked. Specifically, I would like to enlarge ...
Thet Naing's user avatar
-1 votes
1 answer
251 views

Directly setting accessToken to Mapbox throws Imports are immutable error

When accessToken is directly set to mapboxgl, it throws an error. Imports are immutable in Javascript. To modify the value of this import, you must export a setter function in the imported file (e.g &...
Sudharshan's user avatar
  • 3,795
0 votes
1 answer
193 views

Mapbox Geocoder doesn't show the search bar

Im experimenting with Mapbox to build a simple web app around a map. I'm trying to implement the Mapbox Geocoder API, bit somehow I cant see the actual search bar. I have followed the examples ...
thijssdaniels's user avatar
0 votes
0 answers
48 views

farsi language for direction steps

I want to change the language of the mapbox direction steps to Farsi. I used this method but it does not work for Farsi language. Help me please. thank you. map.addControl(new MapboxDirections({ ...
Kokoviewpt's user avatar
0 votes
0 answers
67 views

mapbox gl add a layer upon met condition

I'm trying to add a Layer to my mapbox map only when a condition is met. In this case, the condition is if a tube station name is guessed correctly, then the Layer i.e. station name corresponding to ...
Jack's user avatar
  • 11
0 votes
0 answers
63 views

Some custom SVGs in Mapbox are not clickable

I am using mapbox 1.13.3 to render a map with some svgs as the icons. I have over twenty icons, but only two of them are not clickable from the map, so I am unsure if this is a mapbox problem or a svg ...
Carlos Isidoro López's user avatar
1 vote
0 answers
223 views

How to solve ` Cannot read properties of undefined (reading 'mark')` Mapbox in Angular

I followed all the instructions in the web page, and a tutorial but nothing change. The map get to display but I have this error in the consolo log `ERROR TypeError: Cannot read properties of ...
sevila's user avatar
  • 72
0 votes
1 answer
287 views

Mapbox, Angular, jest unit test fails

I have a mapbox.service.ts import * as mapboxgl from 'mapbox-gl'; In this service I just create this mapbox map this.map = new mapboxgl.Map({ accessToken: this.accessToken, container: 'mapbox-...
Maksat Madeniyetov's user avatar
0 votes
0 answers
114 views

maplibregl/mapboxgl color transitions get lost after setPaintProperty

I want my features to smoothly transition different to colors based on its data. For this I apply a map.setPaintProperty but then the 'fill-color-transition' property becomes lost, forever.. Some code ...
user1249791's user avatar
  • 1,251
1 vote
1 answer
343 views

Mapbox Flutter: How to Show Popup on Feature Tap?

I am working on a Flutter application using using the mapbox_gl: ~0.16.0 plugin, and I'm having difficulty implementing a feature where a popup is displayed when a user taps on a feature on the map. ...
sayantan poddar's user avatar
0 votes
1 answer
148 views

Zoom Control in Flutter with mapbox_gl: ^0.16.0

Using the mapbox_gl: ~0.16.0 plugin, I am developing a Flutter-Mapbox application. I've added fill layers to the map using my api fetched GeoJSON data source, but I still need to add zoom in and out ...
Spike Spiegel's user avatar
0 votes
1 answer
251 views

Current zoom level in Flutter Mapbox_gl

I'm using the mapbox_gl: ~0.16.0 plugin in my Flutter application, and I need to know the current zoom level when the user moves the map (or after move end)! However it always returns the original ...
Spike Spiegel's user avatar
0 votes
0 answers
79 views

Mapbox-GL Unable to Load Satellite Map on Android/iOS with Ionic and Angular

I had to revert back to Mapbox-GL v2.15.0 because I was getting WebGL errors on the Android Emulator, but the behavior I'm seeing now is consistent between iOS and Android. When I try to load a page ...
Charlie Grove's user avatar
0 votes
0 answers
68 views

How to dynamically change extrusion height of polygon in Mapbox GL

I would like to update the extrusion height of a polygon by dragging its topmost face up and down with the mouse. But I can't seem to be able to select the topmost face. Is that possible with Mapbox ...
BrunoAT's user avatar
1 vote
0 answers
378 views

mapbox_maps_flutter markers and clusters live thier own lives separately and clusters not visible if map's style is any other than MapboxStyles.LIGHT

Version mapbox_maps_flutter: ^0.5.1 is being used to render a MapBox in Flutter application Flutter version 3.16.2 1. First problem The 1st issue I want to highlight that if I apply my own map style ...
Andrey F's user avatar
0 votes
1 answer
88 views

How to add event at mapbox popup

I need to know how to use events like mouseover, click for the popup, when the popup is opened. I can't find anything about this functionality for Angular. When the popup is opened I need to handle ...
lebanta's user avatar
  • 13
0 votes
1 answer
772 views

Add source and layer from GeoJSON data in flutter mapbox gl

I'm building a simple Flutter application using the mapbox_gl: ^0.16.0 plugin. 1: https://i.sstatic.net/vh4Mp.png So basically i have a GeoJSON data, which i need to add in rendered map as source and ...
Spike Spiegel's user avatar
1 vote
1 answer
342 views

Displaying Feature IDs from Map Layers in Flutter using Mapbox Maps

I'm working on a Flutter application that utilizes Mapbox Maps, and I'm facing challenges in displaying feature IDs when users click on specific map layers. So basically, i have a Mapbox map in my ...
Spike Spiegel's user avatar

1
2 3 4 5
25