forked from MTSR/mapserver
default sky layer
This commit is contained in:
parent
6130549fb5
commit
f8034311fc
@ -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{
|
||||
|
@ -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){
|
||||
|
Loading…
Reference in New Issue
Block a user