Commit d7eb180d authored by Jan Martin Persch's avatar Jan Martin Persch
Browse files

Fixed icon marker issues

parent aa199cd2
......@@ -124,12 +124,13 @@
iconUrl: 'https://www.weckdenherkulesindir.de/documents/20142/32730/marker-icon.png/f9a304c8-716b-9684-b7d4-a31318ba5e50?t=1544108384492',
shadowUrl: 'https://www.weckdenherkulesindir.de/documents/20142/32730/marker-shadow.png/20ac54bb-8339-1fea-659a-e473c5a18bb5?t=1544108384613',
iconSize: [25, 41], // size of the icon
iconAnchor: [12, 41], // point of the icon which will correspond to marker's location
popupAnchor: [25, 12], // point from which the popup should open relative to the iconAnchor
iconSize: [25, 41], // size of the icon
iconAnchor: [12, 41], // point of the icon which will correspond to marker's location
popupAnchor: [0, -34], // point from which the popup should open relative to the iconAnchor
tooltipAnchor: [16, -20],
shadowSize: [41, 41], // size of the shadow
shadowAnchor: [20, 41] // the same for the shadow
shadowSize: [41, 41], // size of the shadow
shadowAnchor: [14, 41] // the same for the shadow
});
var wmsUrl = 'https://geoportal.stadt-kassel.de/arcgis/services/Raster/Geoportal_WebMaps_WGS84/MapServer/WMSServer?';
......
......@@ -129,16 +129,17 @@
mymap.panInsideBounds(bounds, { animate: false });
});
var redIcon = L.icon({
iconUrl: 'https://www.weckdenherkulesindir.de/documents/20142/32730/marker-icon.png/f9a304c8-716b-9684-b7d4-a31318ba5e50?t=1544108384492',
shadowUrl: 'https://www.weckdenherkulesindir.de/documents/20142/32730/marker-shadow.png/20ac54bb-8339-1fea-659a-e473c5a18bb5?t=1544108384613',
iconUrl: 'https://www.weckdenherkulesindir.de/documents/20142/32730/marker-icon.png/f9a304c8-716b-9684-b7d4-a31318ba5e50?t=1544108384492',
shadowUrl: 'https://www.weckdenherkulesindir.de/documents/20142/32730/marker-shadow.png/20ac54bb-8339-1fea-659a-e473c5a18bb5?t=1544108384613',
iconSize: [25, 41], // size of the icon
iconAnchor: [12, 41], // point of the icon which will correspond to marker's location
popupAnchor: [25, 12], // point from which the popup should open relative to the iconAnchor
shadowSize: [41, 41], // size of the shadow
shadowAnchor: [20, 41] // the same for the shadow
});
iconSize: [25, 41], // size of the icon
iconAnchor: [12, 41], // point of the icon which will correspond to marker's location
popupAnchor: [0, -34], // point from which the popup should open relative to the iconAnchor
tooltipAnchor: [16, -20],
shadowSize: [41, 41], // size of the shadow
shadowAnchor: [14, 41] // the same for the shadow
});
var wmsUrl = 'https://geoportal.stadt-kassel.de/arcgis/services/Raster/Geoportal_WebMaps_WGS84/MapServer/WMSServer?';
L.tileLayer.wms(wmsUrl,{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment