GPS Plugin for leaflet-ng2
This is a GPS service and directive for YAGA's leaflet-ng2.
How to use
First install this module into your project with npm:
npm install --save @yaga/leaflet-ng2-gps
Keep in mind that you have to add @yaga/leaflet-ng2
as peer dependency
Insert this module into your app module
;; // ...
Use the yaga-gps
directive in your template and use the Circle, CircleMarker or Marker directives within.
You can style the sub-directives like you with directly in the template. The yaga-gps
directive take care about their
display state and position. In addition the radius of Circle directives gets set according to the GPS accuracy.
<!-- other YAGA directives --> This is your current position...
Note: The radius of the CircleMarker directive will not be set by this directive (it makes no sense!)