improve javascript
This commit is contained in:
parent
2e75997556
commit
7f2ce5dd55
1 changed files with 1 additions and 2 deletions
|
@ -240,13 +240,12 @@ editor = {
|
||||||
},
|
},
|
||||||
_get_mapitem_type_style: function (mapitem_type) {
|
_get_mapitem_type_style: function (mapitem_type) {
|
||||||
// get styles for a specific mapitem
|
// get styles for a specific mapitem
|
||||||
var result = {
|
return {
|
||||||
stroke: false,
|
stroke: false,
|
||||||
fillColor: editor.geometrystyles[mapitem_type],
|
fillColor: editor.geometrystyles[mapitem_type],
|
||||||
fillOpacity: 1,
|
fillOpacity: 1,
|
||||||
smoothFactor: 0
|
smoothFactor: 0
|
||||||
};
|
};
|
||||||
return result;
|
|
||||||
},
|
},
|
||||||
_register_geojson_feature: function (feature, layer) {
|
_register_geojson_feature: function (feature, layer) {
|
||||||
// onEachFeature callback for GeoJSON loader – register all needed events
|
// onEachFeature callback for GeoJSON loader – register all needed events
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue