davide-casiraghi/ci-global-calendar

View on GitHub
storage/app/public/leaflet-color-markers/js/leaflet-color-markers.js

Summary

Maintainability
C
1 day
Test Coverage
var blueIcon = new L.Icon({
    iconUrl: '/storage/leaflet-color-markers/img/marker-icon-2x-blue.png',
    shadowUrl: '/storage/leaflet-color-markers/img/marker-shadow.png',
    iconSize: [25, 41],
    iconAnchor: [12, 41],
    popupAnchor: [1, -34],
    shadowSize: [41, 41]
});

var goldIcon = new L.Icon({
    iconUrl: '/storage/leaflet-color-markers/img/marker-icon-2x-gold.png',
    shadowUrl: '/storage/leaflet-color-markers/img/marker-shadow.png',
    iconSize: [25, 41],
    iconAnchor: [12, 41],
    popupAnchor: [1, -34],
    shadowSize: [41, 41]
});

var redIcon = new L.Icon({
    iconUrl: '/storage/leaflet-color-markers/img/marker-icon-2x-red.png',
    shadowUrl: '/storage/leaflet-color-markers/img/marker-shadow.png',
    iconSize: [25, 41],
    iconAnchor: [12, 41],
    popupAnchor: [1, -34],
    shadowSize: [41, 41]
});

var greenIcon = new L.Icon({
    iconUrl: '/storage/leaflet-color-markers/img/marker-icon-2x-green.png',
    shadowUrl: '/storage/leaflet-color-markers/img/marker-shadow.png',
    iconSize: [25, 41],
    iconAnchor: [12, 41],
    popupAnchor: [1, -34],
    shadowSize: [41, 41]
});

var orangeIcon = new L.Icon({
    iconUrl: '/storage/leaflet-color-markers/img/marker-icon-2x-orange.png',
    shadowUrl: '/storage/leaflet-color-markers/img/marker-shadow.png',
    iconSize: [25, 41],
    iconAnchor: [12, 41],
    popupAnchor: [1, -34],
    shadowSize: [41, 41]
});

var yellowIcon = new L.Icon({
    iconUrl: '/storage/leaflet-color-markers/img/marker-icon-2x-yellow.png',
    shadowUrl: '/storage/leaflet-color-markers/img/marker-shadow.png',
    iconSize: [25, 41],
    iconAnchor: [12, 41],
    popupAnchor: [1, -34],
    shadowSize: [41, 41]
});

var violetIcon = new L.Icon({
    iconUrl: '/storage/leaflet-color-markers/img/marker-icon-2x-violet.png',
    shadowUrl: '/storage/leaflet-color-markers/img/marker-shadow.png',
    iconSize: [25, 41],
    iconAnchor: [12, 41],
    popupAnchor: [1, -34],
    shadowSize: [41, 41]
});

var greyIcon = new L.Icon({
    iconUrl: '/storage/leaflet-color-markers/img/marker-icon-2x-grey.png',
    shadowUrl: '/storage/leaflet-color-markers/img/marker-shadow.png',
    iconSize: [25, 41],
    iconAnchor: [12, 41],
    popupAnchor: [1, -34],
    shadowSize: [41, 41]
});

var blackIcon = new L.Icon({
    iconUrl: '/storage/leaflet-color-markers/img/marker-icon-2x-black.png',
    shadowUrl: '/storage/leaflet-color-markers/img/marker-shadow.png',
    iconSize: [25, 41],
    iconAnchor: [12, 41],
    popupAnchor: [1, -34],
    shadowSize: [41, 41]
});