react-map-gl Questions

4

Solved

I've built a React app with a map component which renders a map. I tried to add a marker, but the marker keeps moving when I zoom. What is causing this to happen? import MapGL, { Marker } from &quo...
Alejandraalejandrina asked 6/2, 2022 at 15:17

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

2

I am using the ionic framework with React and trying to display a map via mapbox and react-map-gl. It is working, but the map is only 100px * 100px or so until I resize the page. I have set the wid...
Chadburn asked 6/2, 2022 at 10:54

7

I am using react 17.0.1 and react-map-gl ^6.0.2 i have a map component. I have tried other libraries and the problem persists I have contacted support for mapbox I have contacted other mapbox user...
Rompish asked 24/12, 2020 at 6:51

1

I'm setting up a map in react-map-gl however after providing my access token I am getting the following console error: Cross-Origin Request Blocked: The Same Origin Policy disallows reading the rem...
Carpal asked 2/3, 2022 at 16:37

2

I've specified two <Source> elements under ReactMapGL trying to load two different FeatureCollections with different coloring. It doesn't work when both Sources are present as it hides the fi...
Dislocate asked 9/4, 2020 at 15:9

5

Solved

I am using semantic react ui as a ui library and react map gl to render maps in my react application. But the Maps rendered from react-map-gl are not taking the entire width of the column. Please f...
Ferdy asked 6/1, 2019 at 9:37

1

I am trying to draw a line between two points using react-map-gl library. I can not find example from the official document, So I am trying to reproduce same behavior from following code snippet wh...
Vela asked 4/6, 2021 at 18:28

1

My map instance lives in a resizable container, and when I change size I should call map.resize(). I was wondering is there a way to listen to mapbox container resize event so it can trigger map.re...
Crandale asked 30/7, 2021 at 15:36

3

I'm trying to add a GeoJSON line to show car direction between a point A and a point B ( like they have in the official documentation of mapbox-gl-js (https://www.mapbox.com/mapbox-gl-js/example/ge...
Inaptitude asked 21/12, 2017 at 2:8

1

Solved

Is it possible? This tells me it is, but dont know why it defines and API key. but I cannot get it to work with react-map-gl StaticMap class. The property I can see from that class is just mapStyle...
Leigha asked 7/12, 2018 at 12:39

1

I have seen few examples of animated line on mapbox but I haven't found any that creates a linear line between two points. I am able to create markers on the map and also to draw a line between the...
Barsac asked 23/10, 2018 at 6:17

1

I'm working in kepler.gl and loading in data from a database. I want to be able to dynamically update a dataset if the database is updated. Is there any way to add a row to a dataset and update the...
Oxidation asked 24/7, 2018 at 15:45
1

© 2022 - 2024 — McMap. All rights reserved.