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

code cleanup

parent 1e45b6dd
No related branches found
No related tags found
No related merge requests found
......@@ -227,52 +227,7 @@ export default{
/* initMap()
{
let mapZoom = this.mapZoom;
let urlMap = CommonUtil.CONST_GPS_URL_NORWAY_MAP;
let latitude = this.poi.latitude;
let longitude = this.poi.longitude;
let image = this.myImage();
let vectorSource = this.myVectorGeoSource(JSON.parse(this.poi.geoJSON));
let vectorGeoLayer = this.myVectorGeoLayer(vectorSource,image)
let mapView = this.myView(longitude,latitude,mapZoom);
let coordinate = [longitude,latitude];
let mapInteractions = [];
let pointMarker = this.myOverLay (coordinate);
let pointMarkerCoord = this.myOverLayCoord(longitude,latitude);
//let mapInteractions = this.myInteractions(this.mapInteractions);
fetch(urlMap)
.then(function (response){
return response.text();
})
.then(function(text){
let parser = new WMTSCapabilities();
let result = parser.read(text);
let options = optionsFromCapabilities(result, {
layer : 'topo4',
matrixSet : 'EPSG:3857',
});
let myMap = new Map({
layers : [
new TileLayer ({
opacity : 1,
source : new WMTS(options),
}),
vectorGeoLayer
],
controls : [],
interactions: mapInteractions,
target : 'map-poi',
view : mapView,
overlays : [pointMarkerCoord],
renderer : 'canvas',
})
})
}, */
myImage()
{
var fill = new Fill({
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment