Commit 29d11660 authored by duminil's avatar duminil
Browse files

RegionChooser: OSM tiles for offline use and presentations

parent 208b4866
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
...@@ -10,10 +10,17 @@ proj4.defs("EPSG:31467", "+proj=tmerc +lat_0=0 +lon_0=9 +k=1 +x_0=3500000 +y_0=0 ...@@ -10,10 +10,17 @@ proj4.defs("EPSG:31467", "+proj=tmerc +lat_0=0 +lon_0=9 +k=1 +x_0=3500000 +y_0=0
var wgs84Sphere = new ol.Sphere(6378137); var wgs84Sphere = new ol.Sphere(6378137);
var offline_osm_layer = new ol.layer.Tile({
source: new ol.source.OSM({
url : 'data/tiles/{z}/{x}/{y}.png'
})
});
var osm_layer = new ol.layer.Tile({ var osm_layer = new ol.layer.Tile({
source : new ol.source.OSM() source: new ol.source.OSM()
}); });
var kml_source = new ol.source.KML({ var kml_source = new ol.source.KML({
projection : ol.proj.get('EPSG:3857'), projection : ol.proj.get('EPSG:3857'),
url : 'data/citygml_hulls.kml', url : 'data/citygml_hulls.kml',
...@@ -77,7 +84,7 @@ var novafactory_layer = new ol.layer.Vector({ ...@@ -77,7 +84,7 @@ var novafactory_layer = new ol.layer.Vector({
var map = new ol.Map({ var map = new ol.Map({
target : 'map', target : 'map',
layers : [ osm_layer, kml_layer, novafactory_layer, intersections_layer ], layers : [ offline_osm_layer, osm_layer, kml_layer, novafactory_layer, intersections_layer ],
interactions : ol.interaction.defaults({ interactions : ol.interaction.defaults({
keyboard : true keyboard : true
}) })
...@@ -299,7 +306,7 @@ novafactory_layer.updateStatus = function(status) { ...@@ -299,7 +306,7 @@ novafactory_layer.updateStatus = function(status) {
}; };
novafactory_layer.selectSaveFile = function(zipFilename) { novafactory_layer.selectSaveFile = function(zipFilename) {
fxapp.doSomethingWithThisZIP(zipFilename); fxapp.extractZIPtoGML(zipFilename);
}; };
function downloadRegionFromNovaFACTORY(i) { function downloadRegionFromNovaFACTORY(i) {
......
Supports Markdown
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