Skip to content

Commit

Permalink
settings - include default symbols (if using a previous version of co…
Browse files Browse the repository at this point in the history
…nfig's file)
  • Loading branch information
jcornet committed Feb 19, 2019
1 parent ede39f8 commit bdf0edf
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions setting/Setting.js
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,39 @@ define([
config.measurePolylineLabel = (this.measurePolylineLabelInput.value && this.measurePolylineLabelInput.value.trim() != "") ? this.measurePolylineLabelInput.value : false;
config.measurePolygonLabel = (this.measurePolygonLabelInput.value && this.measurePolygonLabelInput.value.trim() != "") ? this.measurePolygonLabelInput.value : false;

for(var name in this.config){
if(!config[name]){
config[name] = this.config[name];
}
}
if(!config.defaultSymbols){
config["defaultSymbols"] = {
"SimpleMarkerSymbol":{"color":[255,199,198,148],"size":15,"angle":0,"xoffset":0,"yoffset":0,"type":"esriSMS","style":"esriSMSCircle","outline":{"color":[207,101,99,255],"width":0.75,"type":"esriSLS","style":"esriSLSSolid"}},
"SimpleLineSymbol": {"color":[207,101,99,255],"width":1.5,"type":"esriSLS","style":"esriSLSSolid"},
"SimpleFillSymbol": {"color":[255,199,198,148],"outline":{"color":[207,101,99,255],"width":0.75,"type":"esriSLS","style":"esriSLSSolid"},"type":"esriSFS","style":"esriSFSSolid"},
"TextSymbol":false,
"MeasureSymbol":{
"color": [0, 0, 0, 255],
"type": "esriTS",
"verticalAlignment": "middle",
"horizontalAlignment": "center",
"angle": 0,
"xoffset": 0,
"yoffset": 0,
"text": "Measure",
"rotated": false,
"kerning": true,
"font": {
"size": 12,
"style": "italic",
"decoration": "none",
"weight": "bold",
"family": "Courier New"
}
}
}
}
console.log("eDraw -> new config : ", config);
return config;
},

Expand Down

0 comments on commit bdf0edf

Please sign in to comment.