nicopace / lime-app

Simple, lightweight and scalable PWA for diagnosis of Libremesh nodes
https://libremesh.github.io/lime-app/
GNU Affero General Public License v3.0
0 stars 0 forks source link

identify my own node in the map #1

Open nicopace opened 5 years ago

nicopace commented 5 years ago

let myIcon = L.icon({
    iconUrl: 'my-icon.png',
    shadowUrl: 'my-icon.png', // where this is like a small house
    iconSize:     [25, 25], // width and height of the image in pixels
    shadowSize:   [35, 20], // width, height of optional shadow image
    iconAnchor:   [12, 12], // point of the icon which will correspond to marker's location
    shadowAnchor: [12, 6],  // anchor point of the shadow. should be offset
    popupAnchor:  [0, 0] // point from which the popup should open relative to the iconAnchor
  });
L.marker(latlng, { icon: myIcon }).addTo(map)
nicopace commented 5 years ago

http://mapkeyicons.com/dist/svg/home.svg