Created
March 22, 2013 04:14
-
-
Save dbouwman/5218897 to your computer and use it in GitHub Desktop.
Snippet showing the layer definition function
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
getFireLayerDefinition: function(){ | |
var defn = { | |
"geometryType": "esriGeometryPoint", | |
"objectIdField": "objectid", | |
"spatialReference":{"wkid":102100}, | |
"drawingInfo": { | |
"renderer": { | |
"type": "simple", | |
"symbol": { | |
"type": "esriPMS", | |
"url": "images/icon28-active.png", | |
"contentType": "image/png", | |
"width": 15, | |
"height": 15 | |
} | |
} | |
}, | |
"fields":[ | |
{"name":"objectid","type":"esriFieldTypeOID","alias":"objectid"}, | |
{"name":"fire_name","type":"esriFieldTypeString","alias":"fire_name","length":30}, | |
{"name":"active","type":"esriFieldTypeString","alias":"active","length":50}, | |
{"name":"start_date","type":"esriFieldTypeString","alias":"start_date","length":18}, | |
{"name":"start_hour","type":"esriFieldTypeString","alias":"start_hour","length":4}, | |
{"name":"location","type":"esriFieldTypeString","alias":"location","length":80}, | |
{"name":"inc_type","type":"esriFieldTypeString","alias":"inc_type","length":3}, | |
{"name":"cause","type":"esriFieldTypeString","alias":"cause","length":1}, | |
{"name":"area_","type":"esriFieldTypeDouble","alias":"area_"}, | |
{"name":"area_meas","type":"esriFieldTypeString","alias":"area_meas","length":10 | |
}] | |
}; | |
return defn; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment