All Questions
7
questions
1
vote
0
answers
40
views
Property 'onClick' does not exist on type 'IntrinsicAttributes & MapContainerProps & RefAttributes<Map>'
Onclick doesn't work on the mapcontainer, can anyone help with that?
Function handleMapClick:
function handleMapClick(event: LeafletMouseEvent ) {
}
MapContainer with onClick:
<MapContainer ...
0
votes
2
answers
594
views
Leaflet map is not displayed in ReactJS
I have included both the css and js Leaflet map CDN links.
Also given height and width to div container inside which Map component is present, but still the map is not getting displayed. The space of ...
4
votes
1
answer
5k
views
React-Leaflet TypeError: Cannot read property 'lat' of null
I'm working on a map that asks for permissions for the users location. Than if the location is allowed it finds the users location and then changes the coords of the leaflet map to the coords of the ...
1
vote
2
answers
1k
views
Cannot read property 'leafletElement' of undefined - React Eesri leaflet
I'm building a esri project in react and I am following this demo. I ran into an error that I can't find an answer to. In the demo, the leafletElement is defined but somehow isn't on my code. Here is ...
0
votes
0
answers
812
views
How to include leaflet library locally in project
I am looking to add leaflets entire library to my project files instead of using the http link. I have followed the following instructions from leaflet :
My index.html is as follows :
<!DOCTYPE ...
23
votes
2
answers
9k
views
React Native Webview with openlayers
I have seen this info: https://stackshare.io/stackups/leaflet-vs-mapbox-vs-openlayers
I'm developing at the same time a web application with react using OpenLayers. And I have to make the same app on ...
0
votes
1
answer
3k
views
map.addLayer(markerClusters) is not a function
I get this error:
map.addLayer(markerClusters) is not a function
in for my markerClusters since I updated the following packages:
"leaflet": "^0.7.7",
"leaflet.markercluster": "^0.5.0",
"react-...