--
---
You received this message because you are subscribed to a topic in the Google Groups "Leaflet" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/leaflet-js/ehfPFyaDyHk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to leaflet-js+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
markerLatLng = myMarker.getLatLng();rectSouthWest = myRect.getBounds().getSouthWest();rectNorthEast = myRect.getBounds().getNorthEast();
if( (markerLatLng.lat > rectSouthWest.lat && markerLatLng.lng > rectSouthWest.lng) && (markerLatLng.lat < rectNorthEast.lat && markerLatLng.lng< rectNorthEast.lng) ){
alert("you're in");
}else{
alert("you're out");
}
Has anybody had success using leaflet for geofence?if so please help me with examples if possible.I will be grateful.
--
---
You received this message because you are subscribed to the Google Groups "Leaflet" group.
To unsubscribe from this group and stop receiving emails from it, send an email to leaflet-js+...@googlegroups.com.