react-leaflet Questions

1

I'm having some issues with the basic rendering tests from create-react-app and the Polyline component from react-leaflet. Whenever I try to add the Polyline as a child to my Map, I get the test er...
Ecthyma asked 26/1, 2019 at 20:25

1

Solved

I am using react leaflet draw for drawing polygons and circles. But when I chose edit polygon there is no drag handler for a move and resize. How to solve this issue if any one have the same? ...
Richardo asked 19/9, 2018 at 13:41

2

Solved

I'm trying to create a custom component in react-leaflet v2 extending a leaflet plugin EdgeMarker. The documentation does not really give details on how to do this. So I have copied the Leaflet.Edg...
Dordogne asked 3/7, 2018 at 20:47

1

I am trying to render a simple Leaflet-React map to the screen. But the tiles are all messed up and or not rendering. Take a look at the screenshot: I tried using the default OpenStreetMa...
Anaya asked 1/8, 2018 at 18:14

1

Solved

I want to get this map bounds and center it map I tried with getBounds() and getCenter() but it was undefined. then i found this but it says Cannot read property 'leafletElement' of undefined Than...
Jd asked 18/7, 2018 at 10:18

1

Solved

I am trying to draw an ellipse on a map made using react-leaflet, which has built-in support for circles and rectangles. To achieve this, I am using code to produce an ellipse in (non-react) leaf...
Ultraism asked 3/3, 2018 at 20:41

1

Solved

How can I make the arrow on the pop-up box on a React-Leaftlet Popup point to the marker, instead of the bottom right of the box, as in the figure below? Here is my code for the popup: <Pop...
Wiliness asked 2/3, 2018 at 3:25

1

Solved

In native Leaflet map, lib CRS attribute should be set as below var mymap = L.map('mapid', { center: [-1800, 1000], zoom: 13, crs: L.CRS.Simple, minZoom: 0, maxZoom: 13, }); How to do that ...
Bateau asked 10/1, 2018 at 10:25

1

Solved

I'm trying to render some react components inside a layer created by react-leaflet-draw. This is my attempt: _onCreate(e) { var layer = e.layer layer.bindPopup( <Content> <Label>F...
Troglodyte asked 20/3, 2017 at 2:13

1

Solved

When a user is dragging the page on mobile browsers, it acts like scrolling but when it comes to the map and the users finger is on the map, leaflet's dragging event is fired and scrolling is not. ...
Inflexion asked 17/2, 2017 at 21:44

1

Solved

I have an offline Leaflet map, where the countries are drawn from a huge Javascript variable with coordinates. index.html is as such(an example from codepen, I load the libraries locally): <h...
Shortwave asked 9/3, 2017 at 8:47

2

Solved

i am currently trying to learn react and i want to use a leaflet map (react-leaflet). I have two (Point, Polygon) GeoJson objects that i want to display, which is working, but i want to replace th...
Tonnie asked 24/2, 2017 at 11:40

2

Solved

I'm starting to use react-leaflet and I came across a question: In my application the user fills out a form that then requests a rest service that returns a GeoJSON, which is then added as a new la...
Memphian asked 29/1, 2017 at 18:44

2

Solved

I'm following Leaflet's Choropleth tutorial http://leafletjs.com/examples/choropleth.html and using react-leaflet. I managed to setStyle without any modification from the original source code and i...
Fi asked 18/8, 2016 at 20:7

© 2022 - 2024 — McMap. All rights reserved.