clean up unused code in Format.WMC.v1, correct minor spelling mistake, non functional change, see ticket:2251 for details
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9736 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -365,19 +365,6 @@ OpenLayers.Format.WMC.v1 = OpenLayers.Class(OpenLayers.Format.XML, {
|
||||
}
|
||||
},
|
||||
|
||||
//FIXME: LatLonBoundingBox is not in spec
|
||||
/**
|
||||
* Method: read_wmc_LatLonBoundingBox
|
||||
*/
|
||||
//read_wmc_LatLonBoundingBox: function(layer, node) {
|
||||
//layer.llbbox = [
|
||||
//parseFloat(node.getAttribute("minx")),
|
||||
//parseFloat(node.getAttribute("miny")),
|
||||
//parseFloat(node.getAttribute("maxx")),
|
||||
//parseFloat(node.getAttribute("maxy"))
|
||||
//];
|
||||
//},
|
||||
|
||||
/**
|
||||
* Method: read_wmc_LegendURL
|
||||
*/
|
||||
@@ -769,7 +756,7 @@ OpenLayers.Format.WMC.v1 = OpenLayers.Class(OpenLayers.Format.XML, {
|
||||
sld.appendChild(link);
|
||||
// Name is required.
|
||||
sld.appendChild(this.createElementDefaultNS("Name", s.name));
|
||||
// Title is optionnal.
|
||||
// Title is optional.
|
||||
if (s.title) {
|
||||
sld.appendChild(this.createElementDefaultNS("Title", s.title));
|
||||
}
|
||||
@@ -786,7 +773,7 @@ OpenLayers.Format.WMC.v1 = OpenLayers.Class(OpenLayers.Format.XML, {
|
||||
sld.appendChild(imported);
|
||||
// Name is required.
|
||||
sld.appendChild(this.createElementDefaultNS("Name", s.name));
|
||||
// Title is optionnal.
|
||||
// Title is optional.
|
||||
if (s.title) {
|
||||
sld.appendChild(this.createElementDefaultNS("Title", s.title));
|
||||
}
|
||||
@@ -795,7 +782,7 @@ OpenLayers.Format.WMC.v1 = OpenLayers.Class(OpenLayers.Format.XML, {
|
||||
// both Name and Title are required.
|
||||
style.appendChild(this.createElementDefaultNS("Name", s.name));
|
||||
style.appendChild(this.createElementDefaultNS("Title", s.title));
|
||||
// Abstract is optionnal
|
||||
// Abstract is optional
|
||||
if (s['abstract']) { // abstract is a js keyword
|
||||
style.appendChild(this.createElementDefaultNS(
|
||||
"Abstract", s['abstract']
|
||||
|
||||
Reference in New Issue
Block a user