if(!Destinia.maps){Destinia.maps={}}Destinia.maps.Marker=function(a){Destinia.maps.Coordinates.apply(this,arguments);this._providerMarker=null;this.icon=[];this.shadow=[];this.title=null;this.maxWidth=300;this.text=null;this.label;this.events=[];Destinia.extend(this,a);if(this.title){this.title=decodeURIComponent(this.title)}if(this.text){this.text=decodeURIComponent(this.text)}if(this.label){this.label=decodeURIComponent(this.label)}};Destinia.maps.Marker.prototype=new Destinia.maps.Coordinates();Destinia.maps.Marker.prototype.constructor=Destinia.maps.Marker;Destinia.maps.Marker.prototype.setLabel=function(a){this.label=a;return this};Destinia.maps.Marker.prototype.render=function(){this.adapter.createMarker(this);return this};Destinia.maps.Marker.prototype.on=function(b,a){if("undefined"!=typeof this.adapter&&this.adapter&&this._providerMarker){this.adapter.addEventListener(this._providerMarker,b,a)}else{this.events.push([b,a])}return this};Destinia.maps.Marker.prototype.getEvents=function(){return this.events};
