-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Description
Hi Heyman,
I am looking at your code and trying to implement a part of it in React:
var marker = null;
pestMap.on("locationfound", function(location) {
if (!marker) {marker = L.userMarker(location.latlng, {pulsing:true}).addTo(pestMap)}
marker.setLatLng(location.latlng);
marker.setAccuracy(location.accuracy);
});
pestMap.locate({
watch: false,
locate: true,
setView: true,
enableHighAccuracy: true
});
The error I keep getting is: L.userMarker is not a function. have you experienced this before by any chance?
Any help is much appreciated.
Tyler
Metadata
Metadata
Assignees
Labels
No labels