comparison client/src/components/Search.vue @ 2486:bca9a7a89f28 octree-diff

Merged default into octree-diff branch.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Fri, 01 Mar 2019 18:28:50 +0100
parents 219c5b57ef5b
children bc0f1771497a
comparison
equal deleted inserted replaced
2485:86173ac7f222 2486:bca9a7a89f28
56 icon="city" 56 icon="city"
57 v-if="entry.type === 'city'" 57 v-if="entry.type === 'city'"
58 class="mr-1" 58 class="mr-1"
59 fixed-width 59 fixed-width
60 /> 60 />
61 <font-awesome-icon
62 icon="ruler"
63 v-if="entry.type === 'gauge'"
64 class="mr-1"
65 fixed-width
66 />
61 {{ entry.name }} 67 {{ entry.name }}
62 </a> 68 </a>
63 </div> 69 </div>
64 </div> 70 </div>
65 </div> 71 </div>
267 if (resultEntry.geom.type == "Point") { 273 if (resultEntry.geom.type == "Point") {
268 let zoom = 11; 274 let zoom = 11;
269 if (resultEntry.type === "bottleneck") zoom = 17; 275 if (resultEntry.type === "bottleneck") zoom = 17;
270 if (resultEntry.type === "rhm") zoom = 15; 276 if (resultEntry.type === "rhm") zoom = 15;
271 if (resultEntry.type === "city") zoom = 13; 277 if (resultEntry.type === "city") zoom = 13;
278 if (resultEntry.type === "gauge") zoom = 15;
272 this.$store.commit("map/moveMap", { 279 this.$store.commit("map/moveMap", {
273 coordinates: resultEntry.geom.coordinates, 280 coordinates: resultEntry.geom.coordinates,
274 zoom, 281 zoom,
275 preventZoomOut: true 282 preventZoomOut: true
276 }); 283 });