fix poi overlay
This commit is contained in:
parent
438ca52211
commit
fc0e48a95c
@ -32,7 +32,7 @@ api.getConfig().then(function(cfg){
|
||||
overlays["Player"] = new PlayerOverlay(wsChannel, layerMgr);
|
||||
overlays["POI"] = new PoiOverlay(wsChannel, layerMgr);
|
||||
overlays["Travelnet"] = new TravelnetOverlay(wsChannel, layerMgr);
|
||||
overlays["Protector"] = new ProtectorOverlay(wsChannel, layerMgr);
|
||||
//overlays["Protector"] = new ProtectorOverlay(wsChannel, layerMgr);
|
||||
|
||||
map.addLayer(overlays["Player"]);
|
||||
|
||||
|
@ -1,8 +1,19 @@
|
||||
'use strict';
|
||||
|
||||
var PoiIcon = L.icon({
|
||||
iconUrl: 'css/images/marker-icon.png',
|
||||
shadowUrl: 'css/images/marker-shadow.png',
|
||||
iconSize: [25, 41],
|
||||
iconAnchor: [12, 41],
|
||||
popupAnchor: [1, -34],
|
||||
tooltipAnchor: [16, -28],
|
||||
shadowSize: [41, 41]
|
||||
});
|
||||
|
||||
|
||||
var PoiOverlay = AbstractIconOverlay.extend({
|
||||
initialize: function(wsChannel, layerMgr) {
|
||||
AbstractIconOverlay.prototype.initialize.call(this, wsChannel, layerMgr, "poi", L.Icon.Default);
|
||||
AbstractIconOverlay.prototype.initialize.call(this, wsChannel, layerMgr, "poi", PoiIcon);
|
||||
},
|
||||
|
||||
createPopup: function(poi){
|
||||
|
Loading…
x
Reference in New Issue
Block a user