From b8d0f4df24fd34ca6d33c3440e91ccb8727a925e Mon Sep 17 00:00:00 2001 From: kobakakzu0429 Date: Thu, 21 Jun 2018 15:34:22 +0900 Subject: [PATCH] prettier --- assets/css/map.css | 4 ++-- assets/geojson/searchtest.geojson | 2 +- assets/js/main.js | 10 +++++----- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/assets/css/map.css b/assets/css/map.css index 0c0b45c..8975029 100644 --- a/assets/css/map.css +++ b/assets/css/map.css @@ -1,6 +1,6 @@ html, body, #map { margin: 0; - height: 100%; + height: 80%; width: 100%; } @@ -74,4 +74,4 @@ html, body, #map { .block { display: block; -} \ No newline at end of file +} diff --git a/assets/geojson/searchtest.geojson b/assets/geojson/searchtest.geojson index 280cc21..42ec783 100644 --- a/assets/geojson/searchtest.geojson +++ b/assets/geojson/searchtest.geojson @@ -45,4 +45,4 @@ } } ] -} \ No newline at end of file +} diff --git a/assets/js/main.js b/assets/js/main.js index 3da5f91..8635f02 100644 --- a/assets/js/main.js +++ b/assets/js/main.js @@ -4,7 +4,7 @@ var map = new ol.Map({ new ol.interaction.DragRotateAndZoom() ]), controls: ol.control.defaults().extend([ - new ol.control.FullScreen({source: 'fullscreen'}),new ol.control.ZoomSlider() + new ol.control.FullScreen({ source: 'fullscreen' }), new ol.control.ZoomSlider() ]), layers: [ new ol.layer.Group({ @@ -18,7 +18,7 @@ var map = new ol.Map({ new ol.layer.Group({ title: 'Overlays', layers: [aed, kml, geocycle, tile, - // vectorSource + // vectorSource ] }) ], @@ -30,7 +30,7 @@ var select = new ol.interaction.Select({}); map.addInteraction(select); // On selected => show/hide popup -select.getFeatures().on(['add'], function(e) { +select.getFeatures().on(['add'], function (e) { var feature = e.element; var content = ""; content += "" @@ -43,7 +43,7 @@ select.getFeatures().on(['add'], function(e) { content += "
" popup.show(feature.getGeometry().getCoordinates(), content); }) -select.getFeatures().on(['remove'], function(e) { +select.getFeatures().on(['remove'], function (e) { popup.hide(); }) @@ -87,6 +87,6 @@ search.on('select', function (e) { ol.hash(map); // 北ボタン -$('#north_button').on('click', function() { +$('#north_button').on('click', function () { map.getView().setRotation(0); });