/**
* CHZERO.Layer.ZeroMapVector<br/>
* ie8 이하 그리는 부분 개선
* @class ZeroMapVector
* @extends OpenLayers.Layer.Vector
* @constructor
* @namespace CHZERO.Layer
* @param {String} name
* @param {Object} options 레이어 옵션 hashtable
*/
CHZERO.Layer.ZeroMapVector = OpenLayers.Class(OpenLayers.Layer.Vector, {
/**
* @method drawFeature
* @param {OpenLayers.Feature.Vector} feature
* @param {String | Object} style
*/
drawFeature: function(feature, style) {
if (!this.drawn) {
return;
}
if (typeof style != "object") {
if (!style && feature.state === OpenLayers.State.DELETE) {
style = "delete";
}
var renderIntent = style || feature.renderIntent;
style = feature.style || this.style;
if (!style) {
style = this.styleMap.createSymbolizer(feature, renderIntent);
}
}
var drawn = this.renderer.drawFeature(feature, style);
if (drawn === false || drawn === null
|| (feature.geometry instanceof OpenLayers.Geometry.LineString ||
feature.geometry instanceof OpenLayers.Geometry.MultiLineString || feature.geometry instanceof OpenLayers.Geometry.Point)) {
this.unrenderedFeatures[feature.id] = feature;
} else {
delete this.unrenderedFeatures[feature.id];
}
}
});