1function getMarkerIcon(path, icon) { 2 var iconPath = path + '/assets/images/'; 3 switch (icon) { 4 case "Blue": 5 return new L.Icon({ 6 iconUrl: iconPath + 'marker-icon-2x-blue.png', 7 shadowUrl: iconPath + 'marker-shadow.png', 8 iconSize: [25, 41], 9 iconAnchor: [12, 41], 10 popupAnchor: [1, -34], 11 shadowSize: [41, 41] 12 }); 13 break; 14 case "Red": 15 return new L.Icon({ 16 iconUrl: iconPath + 'marker-icon-2x-red.png', 17 shadowUrl: iconPath + 'marker-shadow.png', 18 iconSize: [25, 41], 19 iconAnchor: [12, 41], 20 popupAnchor: [1, -34], 21 shadowSize: [41, 41] 22 }); 23 break; 24 case "Green": 25 return new L.Icon({ 26 iconUrl: iconPath + 'marker-icon-2x-green.png', 27 shadowUrl: iconPath + 'marker-shadow.png', 28 iconSize: [25, 41], 29 iconAnchor: [12, 41], 30 popupAnchor: [1, -34], 31 shadowSize: [41, 41] 32 }); 33 break; 34 case "Orange": 35 return new L.Icon({ 36 iconUrl: iconPath + 'marker-icon-2x-orange.png', 37 shadowUrl: iconPath + 'marker-shadow.png', 38 iconSize: [25, 41], 39 iconAnchor: [12, 41], 40 popupAnchor: [1, -34], 41 shadowSize: [41, 41] 42 }); 43 break; 44 case "Yellow": 45 return new L.Icon({ 46 iconUrl: iconPath + 'marker-icon-2x-yellow.png', 47 shadowUrl: iconPath + 'marker-shadow.png', 48 iconSize: [25, 41], 49 iconAnchor: [12, 41], 50 popupAnchor: [1, -34], 51 shadowSize: [41, 41] 52 }); 53 break; 54 case "Violet": 55 return new L.Icon({ 56 iconUrl: iconPath + 'marker-icon-2x-violet.png', 57 shadowUrl: iconPath + 'marker-shadow.png', 58 iconSize: [25, 41], 59 iconAnchor: [12, 41], 60 popupAnchor: [1, -34], 61 shadowSize: [41, 41] 62 }); 63 break; 64 case "Grey": 65 return new L.Icon({ 66 iconUrl: iconPath + 'marker-icon-2x-grey.png', 67 shadowUrl: iconPath + 'marker-shadow.png', 68 iconSize: [25, 41], 69 iconAnchor: [12, 41], 70 popupAnchor: [1, -34], 71 shadowSize: [41, 41] 72 }); 73 break; 74 case "Black": 75 return new L.Icon({ 76 iconUrl: iconPath + 'marker-icon-2x-black.png', 77 shadowUrl: iconPath + 'marker-shadow.png', 78 iconSize: [25, 41], 79 iconAnchor: [12, 41], 80 popupAnchor: [1, -34], 81 shadowSize: [41, 41] 82 }); 83 break; 84 default: 85 return new L.Icon({ 86 iconUrl: iconPath + 'marker-icon-2x-black.png', 87 shadowUrl: iconPath + 'marker-shadow.png', 88 iconSize: [25, 41], 89 iconAnchor: [12, 41], 90 popupAnchor: [1, -34], 91 shadowSize: [41, 41] 92 }); 93 break; 94 } 95} 96 97function getLeafletProvider(provider) { 98 switch (provider) { 99 case "OpenStreetMap.Mapnik": 100 return L.tileLayer('//{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', { 101 maxZoom: 19, 102 attribution: '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors' 103 }); 104 break; 105 case "OpenStreetMap.DE": 106 return L.tileLayer('https://{s}.tile.openstreetmap.de/tiles/osmde/{z}/{x}/{y}.png', { 107 maxZoom: 18, 108 attribution: '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors' 109 }); 110 break; 111 case "OpenStreetMap.HOT": 112 return L.tileLayer('https://{s}.tile.openstreetmap.fr/hot/{z}/{x}/{y}.png', { 113 maxZoom: 19, 114 attribution: '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors, Tiles style by <a href="https://www.hotosm.org/" target="_blank">Humanitarian OpenStreetMap Team</a> hosted by <a href="https://openstreetmap.fr/" target="_blank">OpenStreetMap France</a>' 115 }); 116 break; 117 case "OpenTopoMap": 118 return L.tileLayer('https://{s}.tile.opentopomap.org/{z}/{x}/{y}.png', { 119 maxZoom: 17, 120 attribution: 'Map data: © <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors, <a href="http://viewfinderpanoramas.org">SRTM</a> | Map style: © <a href="https://opentopomap.org">OpenTopoMap</a> (<a href="https://creativecommons.org/licenses/by-sa/3.0/">CC-BY-SA</a>)' 121 }); 122 break; 123 case "Hydda.Full": 124 return L.tileLayer('https://{s}.tile.openstreetmap.se/hydda/full/{z}/{x}/{y}.png', { 125 maxZoom: 18, 126 attribution: 'Tiles courtesy of <a href="http://openstreetmap.se/" target="_blank">
126OpenStreetMap Sweden</a> — Map data © <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors' 127 }); 128 break; 129 case "Hydda.Base": 130 return L.tileLayer('https://{s}.tile.openstreetmap.se/hydda/base/{z}/{x}/{y}.png', { 131 maxZoom: 18, 132 attribution: 'Tiles courtesy of <a href="http://openstreetmap.se/" target="_blank">OpenStreetMap Sweden</a> — Map data © <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors' 133 }); 134 break; 135 case "Stamen.Toner": 136 return L.tileLayer('https://stamen-tiles-{s}.a.ssl.fastly.net/toner/{z}/{x}/{y}{r}.{ext}', { 137 attribution: 'Map tiles by <a href="http://stamen.com">Stamen Design</a>, <a href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a> — Map data © <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors', 138 subdomains: 'abcd', 139 minZoom: 0, 140 maxZoom: 20, 141 ext: 'png' 142 }); 143 break; 144 case "Stamen.TonerBackground": 145 return L.tileLayer('https://stamen-tiles-{s}.a.ssl.fastly.net/toner-background/{z}/{x}/{y}{r}.{ext}', { 146 attribution: 'Map tiles by <a href="http://stamen.com">Stamen Design</a>, <a href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a> — Map data © <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors', 147 subdomains: 'abcd', 148 minZoom: 0, 149 maxZoom: 20, 150 ext: 'png' 151 }); 152 break; 153 case "Stamen.TonerLite": 154 return L.tileLayer('https://stamen-tiles-{s}.a.ssl.fastly.net/toner-lite/{z}/{x}/{y}{r}.{ext}', { 155 attribution: 'Map tiles by <a href="http://stamen.com">Stamen Design</a>, <a href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a> — Map data © <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors', 156 subdomains: 'abcd', 157 minZoom: 0, 158 maxZoom: 20, 159 ext: 'png' 160 }); 161 break; 162 case "Stamen.Watercolor": 163 return L.tileLayer('https://stamen-tiles-{s}.a.ssl.fastly.net/watercolor/{z}/{x}/{y}.{ext}', { 164 attribution: 'Map tiles by <a href="http://stamen.com">Stamen Design</a>, <a href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a> — Map data © <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors', 165 subdomains: 'abcd', 166 minZoom: 1, 167 maxZoom: 16, 168 ext: 'jpg' 169 }); 170 break; 171 case "Stamen.Terrain": 172 return L.tileLayer('https://stamen-tiles-{s}.a.ssl.fastly.net/terrain/{z}/{x}/{y}{r}.{ext}', { 173 attribution: 'Map tiles by <a href="http://stamen.com">Stamen Design</a>, <a href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a> — Map data © <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors', 174 subdomains: 'abcd', 175 minZoom: 0, 176 maxZoom: 18, 177 ext: 'png' 178 }); 179 break; 180 case "Stamen.TerrainBackground": 181 return L.tileLayer('https://stamen-tiles-{s}.a.ssl.fastly.net/terrain-background/{z}/{x}/{y}{r}.{ext}', { 182 attribution: 'Map tiles by <a href="http://stamen.com">Stamen Design</a>, <a href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a> — Map data © <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors', 183 subdomains: 'abcd', 184 minZoom: 0, 185 maxZoom: 18, 186 ext: 'png' 187 }); 188 break; 189 case "Esri.WorldStreetMap": 190 return L.tileLayer('//server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer/tile/{z}/{y}/{x}', { 191 attribution: 'Tiles © Esri — Source: Esri, DeLorme, NAVTEQ, USGS, Intermap, iPC, NRCAN, Esri Japan, METI, Esri China (Hong Kong), Esri (Thailand), TomTom, 2012' 192 }); 193 break; 194 case "Esri.DeLorme": 195 return L.tileLayer('https://server.arcgisonline.com/ArcGIS/rest/services/Specialty/DeLorme_World_Base_Map/MapServer/tile/{z}/{y}/{x}', { 196 attribution: 'Tiles © Esri — Copyright: ©2012 DeLorme', 197 minZoom: 1, 198 maxZoom: 11 199 }); 200 break; 201 case "Esri.WorldTopoMap": 202 return L.tileLayer('https://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer/tile/{z}/{y}/{x}', { 203 attribution: 'Tiles © Esri — Esri, DeLorme, NAVTEQ, TomTom, Intermap, iPC, USGS, FAO, NPS, NRCAN, GeoBase, Kadaster NL, Ordnance Survey, Esri Japan, METI, Esri China (Hong Kong), and the GIS User Community' 204 }); 205 break; 206 case "Esri.NatGeoWorldMap": 207 return L.tileLayer('https://server.arcgisonline.com/ArcGIS/rest/services/NatGeo_World_Map/MapServer/tile/{z}/{y}/{x}', { 208 attribution: 'Tiles © Esri — National Geographic, Esri, DeLorme, NAVTEQ, UNEP-WCMC, USGS, NASA, ESA, METI, NRCAN, GEBCO, NOAA, iPC', 209 maxZoom: 16 210 }); 211 break; 212 case "MtbMap": 213 return L.tileLayer('http://tile.mtbmap.cz/mtbmap_tiles/{z}/{x}/{y}.png', { 214 attribution: '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors & USGS' 215 }); 216 break; 217 case "CartoDB.Positron": 218 return L.tileLayer('https://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}{r}.png', { 219 attribution: '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors © <a href="https://carto.com/attributions">CARTO</a>', 220 subdomains: 'abcd', 221 maxZoom: 19 222 }); 223 break; 224 case "CartoDB.PositronNoLabels": 225 return L.tileLayer('https://{s}.basemaps.cartocdn.com/light_nolabels/{z}/{x}/{y}{r}.png', { 226 attribution: '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors © <a href="https://carto.com/attributions">CARTO</a>', 227 subdomains: 'abcd', 228 maxZoom: 19 229 }); 230 break; 231 case "CartoDB.DarkMatter": 232 return L.tileLayer('https://{s}.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}{r}.png', { 233 attribution: '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors © <a href="https://carto.com/attributions">CARTO</a>', 234 subdomains: 'abcd', 235 maxZoom: 19 236 }); 237 break; 238 case "CartoDB.Voyager": 239 return L.tileLayer('//{s}.basemaps.cartocdn.com/rastertiles/voyager/{z}/{x}/{y}{r}.png', { 240 attribution: '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors © <a href="https://carto.com/attributions">CARTO</a>', 241 subdomains: 'abcd', 242 maxZoom: 19 243 }); 244 break; 245 case "HikeBike.HikeBike": 246 return L.tileLayer('https://tiles.wmflabs.org/hikebike/{z}/{x}/{y}.png', { 247 maxZoom: 19, 248 attribution: '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors' 249 }); 250 break; 251 case "Wikimedia": 252 return L.tileLayer('https://maps.wikimedia.org/osm-intl/{z}/{x}/{y}{r}.png', { 253 attribution: '<a href="https://wikimediafoundation.org/wiki/Maps_Terms_of_Use">Wikimedia</a>', 254 minZoom: 1, 255 maxZoom: 19 256 }); 257 break; 258 default: 259 console.log("Sorry, unknow Leaflet Map Provider:" + provider + "."); 260 } 261}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.