Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
kobakazu0429 committed Jun 21, 2018
1 parent 50a5e3c commit b8d0f4d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions assets/css/map.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
html, body, #map {
margin: 0;
height: 100%;
height: 80%;
width: 100%;
}

Expand Down Expand Up @@ -74,4 +74,4 @@ html, body, #map {

.block {
display: block;
}
}
2 changes: 1 addition & 1 deletion assets/geojson/searchtest.geojson
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@
}
}
]
}
}
10 changes: 5 additions & 5 deletions assets/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand All @@ -18,7 +18,7 @@ var map = new ol.Map({
new ol.layer.Group({
title: 'Overlays',
layers: [aed, kml, geocycle, tile,
// vectorSource
// vectorSource
]
})
],
Expand All @@ -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 += "<table border=1>"
Expand All @@ -43,7 +43,7 @@ select.getFeatures().on(['add'], function(e) {
content += "</table>"
popup.show(feature.getGeometry().getCoordinates(), content);
})
select.getFeatures().on(['remove'], function(e) {
select.getFeatures().on(['remove'], function (e) {
popup.hide();
})

Expand Down Expand Up @@ -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);
});

0 comments on commit b8d0f4d

Please sign in to comment.