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

#VOAPP-33 : GeoGSON extracted upon click on map

parent d69bd3ca
No related branches found
No related tags found
No related merge requests found
......@@ -214,8 +214,13 @@ export default {
This.myMap.addLayer(vectorLayer);
let geoGSON = new GeoJSON();
let resultGeoGSON = geoGSON.writeFeatures(vectorLayer.getSource().getFeatures(), {
dataProjection: 'EPSG:4326',
featureProjection: 'EPSG:3857'
});
This.myGeoInfo = JSON.parse(resultGeoGSON);
}
......@@ -357,7 +362,7 @@ export default {
var iconFeature = new Feature({
geometry: new Point(fromLonLat(transFormCord))
});
//vectorSource.clear();
vectorSource.addFeature(iconFeature);
var vectorLayer = new VectorLayer({
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment