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

Code after conflict

parent 01a99d46
Branches
No related tags found
No related merge requests found
......@@ -146,8 +146,13 @@ export default {
});
//mapView.centerOn(myGeoInfo.features[0].geometry.coordinates, thisMap.getSize() , [411, 675]);
//console.log(thisMap.getSize());
//thisMap.getView().setCenter([latitude,longitude],'EPSG:4326','EPSG:3857');
This.myMap.on(['singleclick'],function(event){
//thisMap.getView().setCenter([latitude,longitude]);
//thisMap.getView().setCenter([latitude,longitude],'EPSG:4326','EPSG:3857');
let mapNewCord = toStringXY(transform(event.coordinate,'EPSG:3857','EPSG:4326'),4);
console.log (mapNewCord);
......@@ -202,6 +207,10 @@ export default {
*/
});
//var precisionInput = document.getElementById('precision');
})
......@@ -386,20 +395,21 @@ export default {
this.myGeoInfo = JSON.parse(myPOI.geoJSON);
let coordinate = this.myGeoInfo.features[0].geometry.coordinates;
this.latitude = coordinate[1];
this.longitude = coordinate[0];
this.myMap.getView().setCenter(fromLonLat(coordinate));
this.latitude = coordinate[0];
this.longitude = coordinate[1];
this.myMap.getView().setCenter(fromLonLat(coordinate));
//this.$nextTick(function () {
//var myMap2 = this.initMap(this.latitude, this.longitude);
//myMap2.getView().setCenter([this.latitude,this.longitude],'EPSG:4326','EPSG:3857');
console.log('----');
//console.log(myMap2);
//});
}
},
mapClick(event)
{
console.log('mouse clicked');
console.log(event);
}
},
mounted() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment