Skip to content

Commit

Permalink
Merge pull request #505 from Harry-R/empty-basemap
Browse files Browse the repository at this point in the history
Add "Empty" base map layer
  • Loading branch information
Turbo87 authored Oct 25, 2016
2 parents 50516e8 + a7c625b commit 83dc750
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 0 deletions.
15 changes: 15 additions & 0 deletions ember/app/components/base-map.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ export default Ember.Component.extend({
this.addMWPLayers();
this.addBingLayers();
this.addMapboxLayer();
this.addEmptyLayer();

let query = parseQueryString(window.location.search);
this.set('baseLayer', query.baselayer);
Expand Down Expand Up @@ -265,4 +266,18 @@ export default Ember.Component.extend({
map.addLayer(road);
map.addLayer(hybrid);
},

addEmptyLayer() {
let empty_layer = new ol.layer.Tile({
});
empty_layer.setProperties({
'name': 'Empty',
'id': 'Empty',
'base_layer': true,
'display_in_layer_switcher': true,
});

this.get('map').addLayer(empty_layer);
},

});
4 changes: 4 additions & 0 deletions ember/app/styles/_map.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
.ol-viewport {
background-color: white
}

.ol-viewport .plane_marker {
position: absolute;
min-height: 1em;
Expand Down
Binary file modified ember/public/images/layers/Empty.bw.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ember/public/images/layers/Empty.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 83dc750

Please sign in to comment.