Mercurial > gemma
diff client/src/store/map.js @ 2947:a6eea3002e6e
client: cleanup import paths
author | Fadi Abbud <fadi.abbud@intevation.de> |
---|---|
date | Fri, 05 Apr 2019 12:47:35 +0200 |
parents | 173ce013a021 |
children | 1ac58e024942 |
line wrap: on
line diff
--- a/client/src/store/map.js Fri Apr 05 11:27:21 2019 +0200 +++ b/client/src/store/map.js Fri Apr 05 12:47:35 2019 +0200 @@ -24,14 +24,14 @@ import VectorSource from "ol/source/Vector.js"; import Point from "ol/geom/Point.js"; import { bbox as bboxStrategy } from "ol/loadingstrategy"; -import { HTTP } from "../lib/http"; +import { HTTP } from "@/lib/http"; import { fromLonLat } from "ol/proj"; import { getLength, getArea } from "ol/sphere.js"; import { unByKey } from "ol/Observable"; import { getCenter } from "ol/extent"; import { transformExtent } from "ol/proj.js"; import bbox from "@turf/bbox"; -import app from "../main"; +import app from "@/main"; const LAYERS = { OPENSTREETMAP: "Open Streetmap", @@ -373,7 +373,7 @@ new Style({ geometry: new Point(bnCenter), image: new Icon({ - src: require("../assets/marker-bottleneck-critical.png"), + src: require("@/assets/marker-bottleneck-critical.png"), anchor: [0.5, 0.5], scale: isLegend ? 0.5 : 1 }) @@ -452,7 +452,7 @@ return [ new Style({ image: new Icon({ - src: require("../assets/marker-gauge.png"), + src: require("@/assets/marker-gauge.png"), anchor: [0.5, isLegend ? 0.5 : 1], scale: isLegend ? 0.5 : 1 }), @@ -511,7 +511,7 @@ geometry: new Point(end), image: new Icon({ // we need to make sure the image is loaded by Vue Loader - src: require("../assets/linestring_arrow.png"), + src: require("@/assets/linestring_arrow.png"), // fiddling with the anchor's y value does not help to // position the image more centered on the line ending, as the // default line style seems to be slightly uncentered in the @@ -559,7 +559,7 @@ geometry: new Point(end), image: new Icon({ // we need to make sure the image is loaded by Vue Loader - src: require("../assets/linestring_arrow_grey.png"), + src: require("@/assets/linestring_arrow_grey.png"), // fiddling with the anchor's y value does not help to // position the image more centered on the line ending, as the // default line style seems to be slightly uncentered in the