1
0
forked from MTSR/mapserver

default sky layer

This commit is contained in:
NatureFreshMilk 2019-02-25 13:01:15 +01:00
parent 6130549fb5
commit f8034311fc
2 changed files with 13 additions and 2 deletions

View File

@ -91,10 +91,16 @@ func ParseConfig(filename string) (*Config, error) {
layers := []*layer.Layer{
&layer.Layer{
Id: 0,
Name: "Base",
Name: "Ground",
From: -16,
To: 160,
},
&layer.Layer{
Id: 1,
Name: "Sky",
From: 160,
To: 320,
},
}
mapobjs := MapObjectConfig{

View File

@ -20,6 +20,10 @@ var AbstractGeoJsonOverlay = L.LayerGroup.extend({
this.reDraw();
},
createStyle: function(feature){
//TODO: default style
},
createGeoJson: function(objects){
var self = this;
@ -28,7 +32,8 @@ var AbstractGeoJsonOverlay = L.LayerGroup.extend({
if (feature.properties && feature.properties.popupContent) {
layer.bindPopup(feature.properties.popupContent);
}
}
},
style: self.createStyle.bind(self)
});
objects.forEach(function(obj){