Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
0answers
20 views

Dynamic Gallery in a Popup on React Leaflet

I am developing a Reactjs app with react-leaflet and I am trying to inject the images which I am taking their path from a promise, but the main error that I am taking is the following Uncaught ...
0
votes
0answers
26 views

Get coordinates from the OpenLayers drawn feature and redraw it again in OpenLayers?

I am drawing a polygon a extracting it feature coordiantes on "drawend" using the code var feature = evt.feature; var featureArray = feature.getGeometry().getCoordinates(); and it is giving me an ...
0
votes
1answer
80 views

React / CARTO Enabling interactions

I have a React JS component that adds a Layer to the Basemap: componentDidMount() { const { client } = this.props; // Craete source, styles and layer with the given props const ...
0
votes
2answers
90 views

CARTO.js / ReactJS: Showing and hiding layers on toggle

I have a the following layer: class DataLayer extends Component { static contextTypes = { map: PropTypes.object, // Leaflet map }; componentDidMount() { const { client } = this.props; ...
1
vote
1answer
203 views

ReactJS TypeError “not a constructor” on running a component with Carto

I am trying to integrate a CARTO map according to this example: Importing Carto: // Import react-leaflet for the map / basemap components import { Map, TileLayer as Basemap } from 'react-leaflet'; /...
0
votes
0answers
63 views

Consume ArcGIS REST API in MapBox's React Native Library

I’m currently working on a weather app built in React Native. In the process, I’ve come to learn a lot about mapping technologies and GIS in general. My immediate goal is to display radar imagery in ...
3
votes
1answer
134 views

Creating buffers using JSTS + ES6 modules not working

Creating a buffer from a Point or other Geometry objects in JSTS seems to be quite simple when reading the documentation, but still I can't produce a buffer from a Point in my React application. Let ...
1
vote
0answers
65 views

How can i add placemarkers (points) from click-event or database to openlayers3 map using geodjango

How can i plot place-markers in Geodjango using the methods: a user click-event from the user on openlayers map preferably in reactjs or alternatively from geodjango database that has PointField() ...
1
vote
0answers
143 views

Update WMS params in OL3 + React

I have an OL3 map with a WMS layer generated in a React component. I'm trying to update the parameters of the ol.source.ImageWMS() dynamically, using React props to set CQL_FILTER and STYLES ...
1
vote
0answers
58 views

How would I go about getting the user input from a popup that contains a text input in Mapbox GL JS?

I want to make a list of places I'd like to visit. When I click on the map a marker is placed and a popup appears above the marker. The popup contains a text input field and a submit button to save ...
1
vote
0answers
29 views

Drawing Manager circle moves when zoom out [closed]

I am using DrawingManager to draw a circle at zoom level 19. this.drawingManager.setDrawingMode(google.maps.drawing.OverlayType.CIRCLE); when zoomed out the circle is moving. Now the circle is in ...
1
vote
0answers
73 views

Is it possible to build up a system based only on individual markers without postGIS? [closed]

We are a team of 2 developers and we've been thinking this month on how to build up a system for showing locations on a map. After reading some articles and taking some courses seems like the best ...
0
votes
0answers
253 views

React Leaflet Google: Hybrid layer is not showing up

I'm using the example here as a rough guide. I'm trying to implement Leaflet.js with Google Maps providing the base layers for imagery. Everything works great, but the hybrid view (satellite+place/...
2
votes
1answer
1k views

React-Leaflet-Draw: accessing a polygon's array of coordinates on save

I've got a component which puts an editable polygon on the map. When the user hits the "save" button, I want to access an array of the polygon's new vertices, so that I can save them. How do I do ...
1
vote
0answers
43 views

Query on all layer features with boundlessgeo sdk

I'm currently implementing a webgis by using the reactjs components from the boundlessgeo sdk. I'm using the QueryBuilder component in order to query for features but It always performs the query on ...
0
votes
0answers
494 views

Options for JS Shapefile to geoJSON conversions that allow multiple input files?

I am looking for JavaScript options that allow me to take a set of shapefiles (the .shp, .shx, .dbf, and what ever other related files) and convert them into geoJSON. I am then going to take this ...
2
votes
0answers
451 views

Uncaught TypeError: a.addEventListener is not a function When using React OpenLayers Wrapper

I am trying to create a web app using a Django back end with React for the front end. I am using a React OpenLayers wrapper on the OpenLayers site and keep getting the Type Error. Can someone please ...