j2l / leaflet-map-icon

A view plugin based on leaflet-map that adds icons on the map based on table data

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

leaflet-map-icon

A saltcorn view plugin that:

  • adds an openstreetmap map and markers from a table having icon (File type field), latitude and longtitude fields (both of type Float)
  • can popup a show view at eack marker
  • can limit the number of markers (row) shown on the map

Actually, icon must be 56x60 pixels and pinpoint is located at 40,59 pixels, popup at 0,0 (relative to pinpoint).

You'll need to study this code and leaflet icon (https://leafletjs.com/reference-1.7.1.html#icon) if you want to change the size, add shadow, etc.

About

A view plugin based on leaflet-map that adds icons on the map based on table data

License:MIT License


Languages

Language:JavaScript 100.0%