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.EdgeMarker.js file from the repo and added it to my...
Right now I am setting the bounds of my react leaflet map by passing a bounds parameter as shown below:      <div hidden={!this.props.hide && !this.props.toggle} className="map-container">         <Leaflet.Map ref='leafle...
I tried everything I found on google and I can't figure out how to trigger the popup.         <Marker   position={this.props.position}   onMouseOver={() => { openPopup() }}   onMouseOut={() => { closePopup() }} >   <Popup>...
I'm working on a map view for a react application which I'm using Leaflet for (react-leaflet). I'm able to plot markers on the map, but the popups that I have bound to them won't open when clicked.  I first tried using <Marker>...
I would like to create a custom component with react-leaflet that shows the actual position (x,y) of the mouse, but I don't know how to create it. I found react-leaflet-control but it seems that it is not up to date, of course I readded the api d...
I can catch the single click event   <Circle onClick={ (event) => this.seatClickHandler(event, seat) } ... />   But I want to catch also double-click event, is that is possible in react-leaflet  I had disabled zoom-in map on double click, so...
I'm trying to get a polyline popup that opens on mouseover.  I've tried forcing the position props of the popup attribute with static values but that doesn't seem to affect anything. I'm unsure if its possible to set this value when i...
I am using React-leaflet for generating a dynamic map using latitudes and longitudes. Now , i have to show that map in a pptx and in doc file. Is there any way i can export this map as an image or in byte64 format , so that i can include that in my g...
The react-leaflet map component is rendered properly based on a polyline. The polyline starts perfectly centered in the middle of the screen.  Here is my issue: I want to recenter the map to the polyline programmatically, because the interface takes...
We have a project which works with Leaflet and react-leaflet, also we are using such a great instrument called Leaflet.PolylineMeasure for measuring distances. Main application is based on babel and old fashion React Classes and works perfectly!  Rec...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.