angular-heremaps
Version:
Angular directive for working with Nokia Here Maps
24 lines (17 loc) • 586 B
JavaScript
module.exports = HereMapsDefaultMarker;
HereMapsDefaultMarker.$inject = ['HereMapsMarkerInterface'];
function HereMapsDefaultMarker(HereMapsMarkerInterface){
function DefaultMarker(place){
this.place = place;
this.setCoords();
}
var proto = DefaultMarker.prototype = new HereMapsMarkerInterface();
proto.constructor = DefaultMarker;
proto.create = create;
return DefaultMarker;
function create(){
var marker = new H.map.Marker(this.coords);
this.addInfoBubble(marker);
return marker;
}
}