{"size": 651, "ext": "js", "max_stars_repo_path": "src/model/mapcss/ShieldStyle.js", "max_stars_repo_name": "chentoz/OsmInEdit", "max_stars_repo_stars_event_min_datetime": "2019-09-22T20:19:09.000Z", "max_stars_repo_stars_event_max_datetime": "2021-08-28T20:52:24.000Z", "max_issues_repo_path": "src/model/mapcss/ShieldStyle.js", "max_issues_repo_name": "tahder/osminedit", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/model/mapcss/ShieldStyle.js", "max_forks_repo_name": "tahder/osminedit", "max_forks_repo_forks_event_min_datetime": "2020-01-11T16:10:15.000Z", "max_forks_repo_forks_event_max_datetime": "2022-02-01T21:12:43.000Z"}
{"max_stars_count": 20, "max_issues_count": null, "max_forks_count": 9, "avg_line_length": 22.4482758621, "max_line_length": 61, "alphanum_fraction": 0.7235023041}
import Style from "./Style";

/**
 * ShieldStyle
 * Based on Overpass Turbo implementation
 * @see https://github.com/tyrasd/overpass-turbo
 */
var MapCSSShieldStyle = function() {this.__init__()};

MapCSSShieldStyle.prototype = {
	has: function(k) {
		return this.properties.indexOf(k)>-1;
	},
	properties: ['shield_image','shield_width','shield_height'],
	shield_image: null,
	shield_width: NaN,
	shield_height: NaN,
	styleType: 'ShieldStyle',
};

//Inherit from Style
for(var p in Style.prototype) {
	if (MapCSSShieldStyle.prototype[p] === undefined) {
		MapCSSShieldStyle.prototype[p] = Style.prototype[p];
	}
}

export default MapCSSShieldStyle;
