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
5 views

Mapbox drawing with snap to grid

I'm using Mapbox for a web project and would like to have a drawing tool for closed polygons where the drawn line is always snapped to a grid. Specifically, I'm using a 100m global grid (MGRS) and ...
1
vote
1answer
24 views

OpenLayers: How do I remove a layer based on a value?

In React, I'm using a pagination that returns a certain amount of results on each page. Using the address of these results, I convert them to longitude and latitude using a geo-coder package and set ...
0
votes
0answers
36 views

How to manually control react-leaflet popups (via props) within a GeoJSON layer?

I'm using react-leaflet to render a GeoJSON feature collection that has points and linestrings: I was able to get the click and hover events on the actual features themselves to work just fine. But ...
0
votes
1answer
105 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
119 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
318 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
109 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
181 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
83 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
177 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
79 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
37 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
96 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 ...
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
51 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
625 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
475 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 ...