项目作者: gustavonunezlab

项目描述 :
variations of the standard leaflet markers
高级语言:
项目地址: git://github.com/gustavonunezlab/icons.git
创建时间: 2020-11-02T13:21:51Z
项目社区:https://github.com/gustavonunezlab/icons

开源协议:BSD 2-Clause "Simplified" License

下载


Icons

Icons for leaflet made by me. If you need more icons, send request at guscostaf@gmail.com

Types of icon: airport, bank, educative, gym, goberment, hospital, hotel, home, church, office, shipport, rest, restaurant, market.

Types of marker: icon (classic marker), star, diamond, square.

Colours: darkred, red, orange, yellow, darkblue, blue, lightblue, violet, darkpink, pink, darkgreen, green, lightgreen, black, white.

All possible combinations.

Usage

  1. var blueIcon = new L.Icon({
  2. iconUrl: 'https://raw.githubusercontent.com/gustavonunezlab/icons/main/blue-matte.png'
  3. shadowUrl: 'https://cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.7/images/marker-shadow.png',
  4. iconSize: [25, 41],
  5. iconAnchor: [12, 41],
  6. popupAnchor: [1, -34],
  7. shadowSize: [41, 41]
  8. });
  9. L.marker([-42, -65], {icon: blueIcon}).addTo(map);