forked from MapComplete/MapComplete
Add new icons
This commit is contained in:
parent
dc0da41fb1
commit
7d25088981
6 changed files with 14 additions and 114 deletions
|
@ -36,7 +36,8 @@ export default class BikeParkings extends LayerDefinition {
|
|||
color: "#00bb00",
|
||||
icon: L.icon({
|
||||
iconUrl: self.icon,
|
||||
iconSize: [50, 50]
|
||||
iconSize: [50, 50],
|
||||
iconAnchor: [25,50]
|
||||
})
|
||||
};
|
||||
};
|
||||
|
|
|
@ -80,7 +80,9 @@ export default class BikeStations extends LayerDefinition {
|
|||
color: "#00bb00",
|
||||
icon: L.icon({
|
||||
iconUrl: iconUrl,
|
||||
iconSize: [50, 50]
|
||||
iconSize: [50, 50],
|
||||
iconAnchor: [25,50]
|
||||
|
||||
})
|
||||
};
|
||||
};
|
||||
|
|
|
@ -11,7 +11,7 @@ export class DrinkingWater extends LayerDefinition {
|
|||
constructor() {
|
||||
super();
|
||||
this.name = "drinking_water";
|
||||
this.icon = "./assets/bug.svg";
|
||||
this.icon = "./assets/bike/drinking_water.svg";
|
||||
|
||||
this.overpassFilter = new Or([
|
||||
new And([
|
||||
|
@ -52,7 +52,8 @@ export class DrinkingWater extends LayerDefinition {
|
|||
color: "#00bb00",
|
||||
icon: new L.icon({
|
||||
iconUrl: self.icon,
|
||||
iconSize: [40, 40]
|
||||
iconSize: [50, 50],
|
||||
iconAnchor: [25,50]
|
||||
})
|
||||
};
|
||||
};
|
||||
|
|
|
@ -2,7 +2,7 @@ import {Layout} from "../Layout";
|
|||
import BikeParkings from "../Layers/BikeParkings";
|
||||
import BikeServices from "../Layers/BikeStations";
|
||||
import {GhostBike} from "../Layers/GhostBike";
|
||||
import {DrinkingWater, DrinkingWaterLayer} from "../Layers/DrinkingWater";
|
||||
import {DrinkingWater} from "../Layers/DrinkingWater";
|
||||
|
||||
|
||||
export default class Cyclofix extends Layout {
|
||||
|
@ -10,7 +10,7 @@ export default class Cyclofix extends Layout {
|
|||
super(
|
||||
"pomp",
|
||||
"Cyclofix bicycle infrastructure",
|
||||
[new GhostBike(), new BikeServices(), new BikeParkings(), new DrinkingWater()],
|
||||
[ new BikeServices(), new BikeParkings(), new DrinkingWater()],
|
||||
16,
|
||||
50.8465573,
|
||||
4.3516970,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue