Commit 83bcdc05 authored by Eric Duminil's avatar Eric Duminil
Browse files

const

parent 014a877f
var regionChooser = (function(){ var regionChooser = (function(){
//TODO: Somehow split in classes. This file is getting too big and mixed //TODO: Somehow split in classes. This file is getting too big and mixed
var publicScope = {}; var publicScope = {};
var fromJavaFX = navigator.userAgent.indexOf('JavaFX') !== -1; const fromJavaFX = navigator.userAgent.indexOf('JavaFX') !== -1;
var dataPanel = $('#dataPanel'); const dataPanel = $('#dataPanel');
var wgs84Sphere = new ol.Sphere(6378137); const wgs84Sphere = new ol.Sphere(6378137);
var features_by_project; var features_by_project;
var gmlId; var gmlId;
...@@ -60,8 +60,8 @@ var regionChooser = (function(){ ...@@ -60,8 +60,8 @@ var regionChooser = (function(){
}) })
}); });
var geoJsonFormat = new ol.format.GeoJSON(); const geoJsonFormat = new ol.format.GeoJSON();
var kmlFormat = new ol.format.KML({extractStyles: false}); const kmlFormat = new ol.format.KML({extractStyles: false});
kml_source.addEventListener("addfeature", function() { kml_source.addEventListener("addfeature", function() {
map.getView().fitExtent(kml_source.getExtent(), (map.getSize())); map.getView().fitExtent(kml_source.getExtent(), (map.getSize()));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment