Commit fb247028 authored by Samuel Schepp's avatar Samuel Schepp

refactored map functions to meet lint requierments

parent 254b4d6c
Pipeline #17858 passed with stages
in 7 minutes and 34 seconds
......@@ -51,15 +51,10 @@ export const minZoomSelected = 19;
* @type {number}
*/
export const startZoomSelected = 20;
/**
* The red POI icon for poi marker.
* @returns {Icon}
*/
export const redIcon: () => Icon = () => {
const icon = (url: string, retinaURL: string) => {
return L.icon({
iconUrl: 'assets/red-marker-icon.png',
iconRetinaUrl: 'assets/red-marker-icon-2x.png',
iconUrl: url,
iconRetinaUrl: retinaURL,
shadowUrl: 'images/marker-shadow.png',
iconSize: [25, 41],
iconAnchor: [12, 41],
......@@ -69,17 +64,16 @@ export const redIcon: () => Icon = () => {
});
};
export const tagIcon: () => Icon = () => {
return L.icon({
iconUrl: 'assets/wifi.png',
iconRetinaUrl: 'assets/wifi-2x.png',
shadowUrl: 'images/marker-shadow.png',
iconSize: [25, 41],
iconAnchor: [12, 41],
popupAnchor: [1, -34],
tooltipAnchor: [16, -28],
shadowSize: [41, 41],
});
/**
* The red POI icon for poi marker.
* @returns {Icon}
*/
export const redIcon = () => {
return icon('assets/red-marker-icon.png', 'assets/red-marker-icon-2x.png');
};
export const tagIcon = () => {
return icon('assets/wifi.png', 'assets/wifi-2x.png');
};
/**
......
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