SLD format rewrite. Adds a versioned parser with read and write support. This does not come with full support for ogc:expression parsing, but makes for easy future enhancements. r=ahocevar (closes #1458)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6645 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -14,12 +14,30 @@
|
||||
*/
|
||||
OpenLayers.Rule = OpenLayers.Class({
|
||||
|
||||
/**
|
||||
* Property: id
|
||||
* {String} A unique id for this session.
|
||||
*/
|
||||
id: null,
|
||||
|
||||
/**
|
||||
* APIProperty: name
|
||||
* {String} name of this rule
|
||||
*/
|
||||
name: 'default',
|
||||
|
||||
/**
|
||||
* Property: title
|
||||
* {String} Title of this rule (set if included in SLD)
|
||||
*/
|
||||
title: null,
|
||||
|
||||
/**
|
||||
* Property: description
|
||||
* {String} Description of this rule (set if abstract is included in SLD)
|
||||
*/
|
||||
description: null,
|
||||
|
||||
/**
|
||||
* Property: context
|
||||
* {Object} An optional object with properties that the rule should be
|
||||
@@ -73,6 +91,7 @@ OpenLayers.Rule = OpenLayers.Class({
|
||||
* {<OpenLayers.Rule>}
|
||||
*/
|
||||
initialize: function(options) {
|
||||
this.id = OpenLayers.Util.createUniqueID(this.CLASS_NAME + "_");
|
||||
this.symbolizer = {};
|
||||
|
||||
OpenLayers.Util.extend(this, options);
|
||||
|
||||
Reference in New Issue
Block a user