Commit bf298271 authored by Kevin Linne's avatar Kevin Linne

Merge branch '106-replace-nfc-icon-with-a-nicer-one' into 'develop'

Resolve "Replace NFC icon with a nicer one"

Closes #106

See merge request !84
parents a65d2442 fb247028
Pipeline #18428 canceled with stages
......@@ -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,14 +64,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 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');
};
/**
......
src/assets/wifi-2x.png

1023 Bytes | W: | H:

src/assets/wifi-2x.png

4.48 KB | W: | H:

src/assets/wifi-2x.png
src/assets/wifi-2x.png
src/assets/wifi-2x.png
src/assets/wifi-2x.png
  • 2-up
  • Swipe
  • Onion skin
src/assets/wifi.png

524 Bytes | W: | H:

src/assets/wifi.png

2.74 KB | W: | H:

src/assets/wifi.png
src/assets/wifi.png
src/assets/wifi.png
src/assets/wifi.png
  • 2-up
  • Swipe
  • Onion skin
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