mapbox-gl Questions

3

Solved

I'm experiencing issues installing mapbox_gl plugin on my flutter app... I did follow the official instrctions from there : https://pub.dev/packages/mapbox_gl But whenever I hit flutter run I get t...
Safari asked 4/6, 2021 at 8:38

7

Solved

So, I know that we have Marker.togglePopup() in Mapbox GL API. But can we close all popups programmatically?
Jamshedpur asked 29/11, 2016 at 6:32

4

I have a full-stack React.js application deployed on Heroku. Everything deployed fine except for Mapbox. In development, everything works nice. As soon as I open my application in Heroku, Mapbox di...
Centrepiece asked 20/1, 2021 at 1:49

7

Solved

I have been banging my head against the desk for the last few hours. I am trying to get Mapbox to zoom in on load to the bounding area of all my markers. However, this is the error I am getting for...
Bakken asked 23/7, 2020 at 14:20

10

I have a map wher we can classically switch from one style to another, streets to satellite for example. I want to be informed that the style is loaded to then add a layer. According to the doc, ...
Hypocorism asked 6/6, 2017 at 15:49

9

I'm using Mapbox GL to show a map and crop a fixed size image from the center of it. It works great for a particular resolution I designed it (1920x1080) but when I started to make the page respons...
Spice asked 10/2, 2017 at 2:12

3

I want to achive the fly animation to different locations on a click event using mapbox. I have read in the docs that useMap provide the flyTo method that could do exactly what i want, but i keep g...
Damato asked 2/5, 2022 at 8:6

4

I am creating a React Mapbox App, and I have an issue with popups. When I render the map, all the Markers show correctly on the map. Then I click on the Marker and a Popup on that marker opens, wit...
Kleinstein asked 4/3, 2022 at 8:17

4

Solved

I'm trying to make an example on StackBlitz with mapbox-gl. How can I set the accessToken? The editor states "Cannot assign to 'accessToken' because it is a constant or a read-only property". I ...
Empennage asked 27/3, 2019 at 13:26

2

Solved

I'm using the Mapbox Dark v9 style and would like to remove all the labels. I found a list of labels here. And have tried the map.removeLayer function to remove some of them, e.g.: map.removeLa...
Mannequin asked 8/5, 2017 at 6:31

2

Looking for a way to get the current coordinates of the center of a map using Mapbox GL JS the same way they do on Mapbox Studio (see below) Mapbox Studio Screenshot Thanks
Sialoid asked 20/2, 2018 at 21:22

3

Solved

Situation We render a raster layer to the map. The layer's source has an initial tile-url. Now we want to change the tile-url of the source and trigger a reload for the new tiles. E.g. we have til...
Navarra asked 28/7, 2016 at 8:46

1

I have a geojson polygon adding to the map with the click of a button. I also have the style of the polygon changing on the mousedown event on the geojson and the x/y coord pairs (the geojson geome...
Homeland asked 18/9, 2017 at 20:29

3

Solved

I'm adopting this example but I need popups to appear on hover not on click. Here is how popups are added now: new mapboxgl.Marker(el, { offset: [0, -25] }) .setLngLat(marker.geometry.coordinates...
Chemiluminescence asked 18/1, 2019 at 13:3

3

I want to create custom control using Mapbox gl Api. I'm trying to extend Control class and add my own functionality. It doesn't seem working. I'm getting TypeError: "x" is not a constructor error ...
Connecticut asked 20/10, 2016 at 19:10

2

Solved

I'm having some troubles trying to display 2 different markers placed at exactly the same coordinates. The case is: we are displaying stores, and some of them are placed at the same building (ie. ...
Midstream asked 13/11, 2017 at 21:7

2

Solved

I tried to change the line-dasharray settings using the following code, 'line-dasharray': [ "case", ['==', ['get', "user_class_id"], 'laneway'],[0.2,2],[0.3,2] ] It gives this error, Error...
Slapdash asked 15/5, 2019 at 11:11

3

I have a geoJSON file that I convert into vector.tiles using this npm package. I use const tileIndex = geojsonvt(geoJSON). The geoJSON file has the following format and it gets converted without a...
Matherly asked 5/6, 2020 at 23:35

6

I am wondering if it is possible to render a react component within a mapboxgl.Popup(). Something like this: componentDidMount() { new mapboxgl.Popup() .setLngLat(coordinates) .setHTML(`<di...
Exhaust asked 21/2, 2018 at 22:53

3

I am developing my first angular web app and I want to introduce something similar to Google maps. I dón´t want to use this last one because of new billing politics, so I have tried MapBox. Follow...
Fourlegged asked 26/8, 2018 at 2:55

5

Solved

I have the following array: test = ['a', 'b', 'c'] I would like to filter objects on the map if they exist in the array. Is it possible to use this filter with array: mapObj.setFilter("hover", ...
Emmett asked 9/8, 2017 at 16:51

4

Is there a way to change a mapbox-gl-js icon-image color? This code taken from https://www.mapbox.com/mapbox-gl-js/example/geojson-markers/ won't change the marker color to red map.addLayer({ "i...
Midway asked 21/11, 2015 at 1:45

7

My app working with Geojson file. I use MapBox SDK to add MGLPolyline to map. But the problem is my file too large, so that the app crash and got the error: Message from debugger: Terminated due to...
Yabber asked 3/11, 2016 at 10:8

2

Solved

The goal is to display large amount of data on Google Maps. By large amount I mean around 10 millions of segments stored in PostgreSQL database. The segments represent some characteristics of roads...

3

Polymer 3 uses import to load external Javascript. For example import {GoogleCharts} from 'google-charts'; However, it seems for this to work, the external library should use exports. I am tryi...
Goethe asked 3/8, 2018 at 10:49

© 2022 - 2024 — McMap. All rights reserved.