mfhsieh / leaflet-simple-locate

A Leaflet plugin to show the location and orientation!
https://mfhsieh.github.io/leaflet-simple-locate/
MIT License
3 stars 1 forks source link

Suggestions #1

Open PeterPan73 opened 6 days ago

PeterPan73 commented 6 days ago

Great job! Well done!

I have a few suggestions for improving the plugin:

  1. Events - on click, on located, when refusing to share a location, when changing the angle of rotation and speed
  2. Button to lock the map (cannot move the map)
  3. Ability to rotate the map, using mouse or touch

Thanks.

mfhsieh commented 6 days ago
  1. Events => I will try to add this feature.
  2. Lock the map => There should be other ways to accomplish this, for example: here, which differs from the core functionality of this plugin. However, I will add the option for the map to move with the device later.
  3. Rotate the map => It seems difficult to achieve this with Leaflet on OSM, so it's not in my plan.