2019-11-29 16:33:08 +00:00
|
|
|
<template>
|
|
|
|
<div style="position:relative">
|
|
|
|
<!-- <div id="inset">
|
|
|
|
</div>-->
|
|
|
|
<div id="map"></div>
|
|
|
|
<!-- <div id="delete">Delete Features</div> -->
|
|
|
|
<div class="pure-g">
|
|
|
|
<div class="pure-u-1 pure-u-md-1-2 pure-div">
|
|
|
|
<label for="xmin">xmin:</label>
|
|
|
|
<input
|
2019-12-20 10:44:40 +00:00
|
|
|
name="coverage[x_min]"
|
2019-11-29 16:33:08 +00:00
|
|
|
type="text"
|
|
|
|
class="pure-u-23-24"
|
2019-12-20 10:44:40 +00:00
|
|
|
v-model="geolocation.x_min"
|
2019-11-29 16:33:08 +00:00
|
|
|
data-vv-scope="step-2"
|
|
|
|
id="xmin"
|
|
|
|
v-validate="'decimal'"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="pure-u-1 pure-u-md-1-2 pure-div">
|
|
|
|
<label for="ymin">ymin:</label>
|
|
|
|
<input
|
2019-12-20 10:44:40 +00:00
|
|
|
name="coverage[y_min]"
|
2019-11-29 16:33:08 +00:00
|
|
|
type="text"
|
|
|
|
class="pure-u-23-24"
|
2019-12-20 10:44:40 +00:00
|
|
|
v-model="geolocation.y_min"
|
2019-11-29 16:33:08 +00:00
|
|
|
data-vv-scope="step-2"
|
|
|
|
id="ymin"
|
|
|
|
v-validate="'decimal'"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="pure-u-1 pure-u-md-1-2 pure-div">
|
|
|
|
<label for="xmax">xmax:</label>
|
|
|
|
<input
|
2019-12-20 10:44:40 +00:00
|
|
|
name="coverage[x_max]"
|
2019-11-29 16:33:08 +00:00
|
|
|
type="text"
|
|
|
|
class="pure-u-23-24"
|
2019-12-20 10:44:40 +00:00
|
|
|
v-model="geolocation.x_max"
|
2019-11-29 16:33:08 +00:00
|
|
|
data-vv-scope="step-2"
|
|
|
|
id="xmax"
|
|
|
|
v-validate="'decimal'"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="pure-u-1 pure-u-md-1-2 pure-div">
|
|
|
|
<label for="ymax">ymax:</label>
|
|
|
|
<input
|
2019-12-20 10:44:40 +00:00
|
|
|
name="coverage[y_max]"
|
2019-11-29 16:33:08 +00:00
|
|
|
type="text"
|
|
|
|
class="pure-u-23-24"
|
2019-12-20 10:44:40 +00:00
|
|
|
v-model="geolocation.y_max"
|
2019-11-29 16:33:08 +00:00
|
|
|
data-vv-scope="step-2"
|
|
|
|
id="ymax"
|
|
|
|
v-validate="'decimal'"
|
|
|
|
/>
|
|
|
|
</div>
|
2019-12-04 13:37:12 +00:00
|
|
|
<input type="button" v-if="validBoundingBox" v-on:click="zoomTo" value="validate coordinates" />
|
2019-11-29 16:33:08 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
|
|
import LocationsMap from "./LocationsMap";
|
|
|
|
export default LocationsMap;
|
|
|
|
</script>
|
|
|
|
|
|
|
|
// https://github.com/vuejs-templates/webpack/issues/121
|
|
|
|
// npm install node-sass sass-loader --save-dev
|
|
|
|
<style lang="scss">
|
|
|
|
/* Import CSS from Leaflet and plugins.*/
|
|
|
|
@import "~leaflet/dist/leaflet.css";
|
|
|
|
@import "~leaflet-draw/dist/leaflet.draw.css";
|
|
|
|
|
|
|
|
#map {
|
|
|
|
width: 100%;
|
|
|
|
height: 400px;
|
|
|
|
font-weight: bold;
|
|
|
|
font-size: 13px;
|
|
|
|
text-shadow: 0 0 2px #fff;
|
|
|
|
}
|
|
|
|
#delete,
|
|
|
|
#export {
|
|
|
|
position: absolute;
|
|
|
|
top: 50px;
|
|
|
|
right: 10px;
|
|
|
|
z-index: 100;
|
|
|
|
background: white;
|
|
|
|
color: black;
|
|
|
|
padding: 6px;
|
|
|
|
border-radius: 4px;
|
|
|
|
font-family: "Helvetica Neue";
|
|
|
|
cursor: pointer;
|
|
|
|
font-size: 12px;
|
|
|
|
text-decoration: none;
|
|
|
|
z-index: 999;
|
|
|
|
}
|
|
|
|
#inset {
|
|
|
|
position: absolute;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
border: none;
|
|
|
|
width: 120px;
|
|
|
|
z-index: 999;
|
|
|
|
/*height: 120px;*/
|
|
|
|
}
|
|
|
|
</style>
|