Commit 064ff782 authored by Kevin Linne's avatar Kevin Linne

New tag icon

parent 6dde5b26
Pipeline #17541 passed with stages
in 8 minutes and 8 seconds
......@@ -69,6 +69,16 @@ export const redIcon: () => Icon = () => {
});
};
export const tagIcon: () => Icon = () => {
return L.icon({
iconUrl: 'assets/wifi.png',
iconRetinaUrl: 'assets/wifi-2x.png',
iconSize: [32, 32],
iconAnchor: [16, 32],
tooltipAnchor: [16, -26],
});
};
/**
* The tooltip options for the room tags.
* @returns {TooltipOptions}
......
......@@ -10,6 +10,7 @@ import {
startLocationView,
startZoomSelected,
startZoomView,
tagIcon,
toolTipOptionsMarker,
toolTipOptionsRoom,
} from '../../data/map-renderer.data';
......@@ -238,7 +239,7 @@ export class MapRendererService {
marker = L.marker([tag.coordinates.lat, tag.coordinates.lng],
{
title: tag.name,
icon: redIcon(),
icon: tagIcon(),
});
marker.on('click', () => {
if (this.authService.isLoggedIn()) {
......
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