remove unused variable and unreachable code, replace tab with space. Non functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10452 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -906,7 +906,6 @@ OpenLayers.Renderer.SVG = OpenLayers.Class(OpenLayers.Renderer.Elements, {
|
|||||||
var symbol = OpenLayers.Renderer.symbol[graphicName];
|
var symbol = OpenLayers.Renderer.symbol[graphicName];
|
||||||
if (!symbol) {
|
if (!symbol) {
|
||||||
throw new Error(graphicName + ' is not a valid symbol name');
|
throw new Error(graphicName + ' is not a valid symbol name');
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var symbolNode = this.nodeFactory(id, "symbol");
|
var symbolNode = this.nodeFactory(id, "symbol");
|
||||||
|
|||||||
@@ -214,12 +214,11 @@ OpenLayers.Renderer.VML = OpenLayers.Class(OpenLayers.Renderer.Elements, {
|
|||||||
setStyle: function(node, style, options, geometry) {
|
setStyle: function(node, style, options, geometry) {
|
||||||
style = style || node._style;
|
style = style || node._style;
|
||||||
options = options || node._options;
|
options = options || node._options;
|
||||||
var widthFactor = 1;
|
|
||||||
var fillColor = style.fillColor;
|
var fillColor = style.fillColor;
|
||||||
|
|
||||||
if (node._geometryClass === "OpenLayers.Geometry.Point") {
|
if (node._geometryClass === "OpenLayers.Geometry.Point") {
|
||||||
if (style.externalGraphic) {
|
if (style.externalGraphic) {
|
||||||
if (style.graphicTitle) {
|
if (style.graphicTitle) {
|
||||||
node.title=style.graphicTitle;
|
node.title=style.graphicTitle;
|
||||||
}
|
}
|
||||||
var width = style.graphicWidth || style.graphicHeight;
|
var width = style.graphicWidth || style.graphicHeight;
|
||||||
@@ -361,7 +360,6 @@ OpenLayers.Renderer.VML = OpenLayers.Class(OpenLayers.Renderer.Elements, {
|
|||||||
*/
|
*/
|
||||||
graphicRotate: function(node, xOffset, yOffset, style) {
|
graphicRotate: function(node, xOffset, yOffset, style) {
|
||||||
var style = style || node._style;
|
var style = style || node._style;
|
||||||
var options = node._options;
|
|
||||||
var rotation = style.rotation || 0;
|
var rotation = style.rotation || 0;
|
||||||
|
|
||||||
var aspectRatio, size;
|
var aspectRatio, size;
|
||||||
@@ -937,7 +935,6 @@ OpenLayers.Renderer.VML = OpenLayers.Class(OpenLayers.Renderer.Elements, {
|
|||||||
var symbol = OpenLayers.Renderer.symbol[graphicName];
|
var symbol = OpenLayers.Renderer.symbol[graphicName];
|
||||||
if (!symbol) {
|
if (!symbol) {
|
||||||
throw new Error(graphicName + ' is not a valid symbol name');
|
throw new Error(graphicName + ' is not a valid symbol name');
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var symbolExtent = new OpenLayers.Bounds(
|
var symbolExtent = new OpenLayers.Bounds(
|
||||||
|
|||||||
Reference in New Issue
Block a user