Skip to main content

All Questions

Tagged with
0 votes
1 answer
2k views

ReactJS with Leaflet: tiles not correctly displayed until page refresh

I am building an application using Semantic UI and ReactJS. I am using a tab module to contain my map, which uses the Leaflet Javascript library to render the map. The problem is that the tiles do ...
user2840647's user avatar
  • 1,296
0 votes
2 answers
2k views

How to map JSON data graphically on a Leaflet map?

I want to use the Citybik.es API (http://api.citybik.es/) to show data on a Leaflet map. How do implement this data on the map from JSON? I am already fetching information from the API inside a ...
RCohen's user avatar
  • 1,922
0 votes
1 answer
1k views

How to get the number of map markers per country - ReactJS

I'm working with the Citybik.es API (http://api.citybik.es/) to show data on a Leaflet map. At the moment, the code is showing every item in the map, but after analysing I would like to organize the ...
RCohen's user avatar
  • 1,922
0 votes
1 answer
3k views

Do leaflet maps have a label function?

Anyone know whether it is possible to add a label beside my markers on my react-leaflet map?
Leonard Koh's user avatar
0 votes
1 answer
3k views

Leaflet JS (react-leaflet) - Bounds Box Filled With Transparent Color

I'm working with react-leaflet package, however, if you can answer the question in plain leaflet that would be helpful as well. I am successfully panning to the bounds of a polygon that I supply like ...
maxwell's user avatar
  • 2,361
0 votes
2 answers
4k views

Delete layer before creating a new one with react-leaflet-draw in leaflet

My purpose here is to allow only one polygon on the map. My approach has been saving the new layer during onCreated method in a var or array and in the method onDrawStart get it and delete, so once ...
Nendil's user avatar
  • 85
0 votes
1 answer
943 views

Pop up on react leaflet map library

I'm using react-leaftlet map library https://react-leaflet.js.org/en/ in my react app and i have rendered some markers on the map and when a user clicks on a marker, a pop up appears. I want to open a ...
CraZyDroiD's user avatar
  • 6,993
-1 votes
1 answer
2k views

How can I open a modal using react-leaflet?

I am trying to use the library react-leaflet and I want to open a modal when we click on a button on the popup but I do not achieve to do that. Here is my code : import React from "react"; ...
teatzr's user avatar
  • 69

15 30 50 per page
1
4 5 6 7
8