Skip to main content

Questions tagged [mapbox-gl]

A client-side map rendered with implementations in native platforms utilizing OpenGL.

mapbox-gl
0 votes
0 answers
48 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
-1 votes
0 answers
16 views

Delay Tiles Request in Mapbox Web for Raster Source

I am adding a raster source for Mapbox in a web application using Angular. When I zoom in or zoom out, Mapbox immediately sends requests for new tiles. In the Mobile SDK, there is a property that ...
Void's user avatar
  • 77
-1 votes
0 answers
16 views

How to remove a poi label from the standard style mapbox (Restaurant for example)

I'm trying to hide or show some poi (point of interest) labels and icons depending on they type on the mapbox standard style (3d mapbox://styles/mapbox/standard-beta): For example I want with a button ...
Esdras Assikidana's user avatar
0 votes
1 answer
25 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
40 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
15 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
37 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,701
0 votes
0 answers
32 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
21 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
2 votes
1 answer
268 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,511
0 votes
1 answer
26 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
93 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,701
0 votes
0 answers
111 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
20 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

15 30 50 per page
1
2 3 4 5
81