mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-03-01 05:06:39 +00:00
17 lines
461 B
JavaScript
17 lines
461 B
JavaScript
// TODO Migrate this file to Typescript
|
|
|
|
import L from 'leaflet';
|
|
import marker2x from 'leaflet/dist/images/marker-icon-2x.png';
|
|
import marker from 'leaflet/dist/images/marker-icon.png';
|
|
import markerShadow from 'leaflet/dist/images/marker-shadow.png';
|
|
|
|
export const fixLeafletIcons = () => {
|
|
delete L.Icon.Default.prototype._getIconUrl;
|
|
|
|
L.Icon.Default.mergeOptions({
|
|
iconRetinaUrl: marker2x,
|
|
iconUrl: marker,
|
|
shadowUrl: markerShadow,
|
|
});
|
|
};
|