Skip to content
Snippets Groups Projects
Commit 2130d6b2 authored by Bhabesh Bhabani Mukhopadhyay's avatar Bhabesh Bhabani Mukhopadhyay
Browse files

Map url in CommonUtil

parent 9db3b7cb
No related branches found
No related tags found
No related merge requests found
......@@ -34,6 +34,8 @@ export default {
CONST_URL_USER_OBSERVATION_LIST : '/rest/observation/list/user',
CONST_GPS_URL_NORWAY_MAP : 'https://opencache.statkart.no/gatekeeper/gk/gk.open_wmts?Version=1.0.0&service=wmts&request=getcapabilities',
CONST_GPS_DEFAULT_LATITUDE_NORWAY : 16,
CONST_GPS_DEFAULT_LONGITUDE_NORWAY : 63,
......
......@@ -63,6 +63,8 @@ export default {
methods : {
initMap(){
let urlMap = CommonUtil.CONST_GPS_URL_NORWAY_MAP;
let latitude = this.latitude;
let longitude = this.longitude;
let mapZoom = this.mapZoom;
......@@ -79,7 +81,7 @@ export default {
//vectorSource.addFeature(new Feature(new Circle([5e6, 7e6], 1e6)));
let vectorGeoLayer = this.myVectorGeoLayer(vectorSource);
fetch('https://opencache.statkart.no/gatekeeper/gk/gk.open_wmts?Version=1.0.0&service=wmts&request=getcapabilities')
fetch(urlMap)
.then(function (response){
return response.text();
})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment