Questions tagged [react]
React is a JavaScript framework for building user interfaces. It uses a declarative paradigm and aims to be both efficient and flexible.
137 questions
0 votes
0 answers
10 views
Unable to transfer mapbox style to another account
Long story short, I have tried the advice in this Mapbox documentation: https://docs.mapbox.com/help/troubleshooting/transfer-styles-between-accounts/. I am account A, trying to hand over access to a ...
2 votes
1 answer
100 views
How to Add Public Feature layer to web app with OpenLayers
I am trying to add a publicly shared ESRI Feature layer (https://services2.arcgis.com/C8EMgrsFcRFL6LrL/ArcGIS/rest/services/US_County_Boundaries/FeatureServer/0) to a React web app map using open ...
0 votes
1 answer
258 views
Why does view.on('click') event not fire and popup not open
I am trying to add a popup to a very simple web app using the arcGIS Map SDK for JS and React. The popup is not opening and when I check the debugger, it looks like the `view.on('click', ...) event is ...
0 votes
0 answers
67 views
Convert default coordinate system React-Leaflet
I'm trying to make a request from the NASA satellite, but when I use 3857 it doesn't show the region I want, and in 4326 it does. That's the problem, when I use 4326 it moves on the map and I can't ...
2 votes
0 answers
891 views
React Native with offline maps
I am developing a React Native app functionality that will allow user to navigate with offline map. I had luck with react-native-maps package and raster .jpg tiles. The main downside is that tiles for ...
0 votes
1 answer
732 views
Get Other Widgets in ArcGIS Experience Builder setting UI
I am creating a custom widget in ArcGIS experience builder and am trying to get a list of all the widgets currently defined in the setting UI. I tried using the widget state to transfer the list, as ...
0 votes
0 answers
215 views
OpenLayers Popup not showing. Uncaught TypeError: document.getElementbyId(...) is null being encountered
I am using OpenLayers in React.js to render the results of a GeoJSON data. The results should be shown in a Popup when a marker is clicked. I have been using Microsoft Bing to generate code as I am a ...
1 vote
1 answer
191 views
Encountering Uncaught (in promise) Error: Unsupported GeoJSON type: undefined in React.js using OpenLayers
I am encountering Uncaught (in promise) Error: Unsupported GeoJSON type: undefined. I am rendering it in OpenLayers using a MERN application. I have checked that the API call for the GeoJSON is ...
0 votes
1 answer
149 views
Why L.vectorGrid.protobuf return undefined?
I have this component: import L from 'leaflet'; import { useEffect } from 'react'; import { useMap } from 'react-leaflet'; import { useSelector } from 'react-redux'; import { selectLayersStatus } from ...
0 votes
0 answers
358 views
React Leaflet, convert GeoJSON coordinates to Leaflet format
I am trying to plot a GeoJSON using Leaflet. I know the order of co-ords is different for GeoJSON and leaflet ([long, lat] vs[lat, long]). Here is my GeoJSON file : { "type": "...
0 votes
1 answer
913 views
OpenLayers map rendering issue in Next.js 13 using TailwindCSS on a page with sticky header and footer
I am building a web app using Openlayers in Next.js 13 with TailwindCSS. I am encountering a issue/bug with rendering the base map inside a page with a sticky header and footer. The map has scrollbar ...
0 votes
1 answer
177 views
Additional properties or alternative library to achieve buffer functionality
In a react native app that I am working on, I have a question about as to whether there are additional properties for turfs buffer to make the buffer around a line not form a closed polygon on overlap ...
0 votes
1 answer
454 views
OpenLayers can't render the VectorTileLayer
I have a React app that should render a base map and a VectorTileLayer with OpenLayers. OpenLayers makes it easy to put a dynamic map in any web page. It can display map tiles, vector data and markers ...
3 votes
0 answers
652 views
Mbtiles to plot in map using react-leaflet
I am new to map technology and I am using react-leaflet to plot GEOJSON to map. It was all going well but then I m facing load time with massive GeoJSON data, so need to convert GeoJSON to mbtiles. ...
1 vote
1 answer
829 views
Project React-Leaflet map in different projection
I am working on a college project that deals with MAPS. Our project is related to mapping the location of stadiums for the recent FIFA worldcup. The tileserver url provided to us is custom. When I use ...