Loading public/javascript/redmic/modules/map/Map.js +4 −0 Original line number Diff line number Diff line Loading @@ -69,6 +69,7 @@ define([ CENTER_SET: "centerSet", ZOOM_SET: "zoomSet", BBOX_CHANGED: "bBoxChanged", POPUP_OPENED: 'popupOpened', POPUP_CLOSED: "popupClosed", MAP_CLICKED: "mapClicked", CLOSE_POPUP: "closePopup", Loading Loading @@ -210,6 +211,9 @@ define([ event: 'BBOX_CHANGE', channel: this.getChannel("BBOX_CHANGED"), callback: "_pubBBoxChanged" },{ event: 'POPUP_OPEN', channel: this.getChannel('POPUP_OPENED') },{ event: 'POPUP_CLOSE', channel: this.getChannel("POPUP_CLOSED") Loading public/javascript/redmic/modules/map/layer/MapLayer.js +6 −1 Original line number Diff line number Diff line Loading @@ -37,7 +37,8 @@ define([ SET_CENTER: "setCenter", LAYER_LOADING: "layerLoading", LAYER_LOADED: "layerLoaded", LAYER_LEGEND: "layerLegend" LAYER_LEGEND: "layerLegend", POPUP_LOADED: 'popupLoaded' }, actions: { CLEAR: "clear", Loading @@ -46,6 +47,7 @@ define([ REMOVE_LAYER: "removeLayer", ADD_DATA: "addData", POPUP_CLOSED: "popupClosed", POPUP_LOADED: 'popupLoaded', MAP_CLICKED: "mapClicked", LAYER_LOADING: "layerLoading", LAYER_LOADED: "layerLoaded", Loading Loading @@ -146,6 +148,9 @@ define([ },{ event: 'FIT_BOUNDS', channel: this._buildChannel(this.mapChannel, this.actions.FIT_BOUNDS) },{ event: 'POPUP_LOADED', channel: this.getChannel('POPUP_LOADED') }); }, Loading public/javascript/redmic/modules/map/layer/PruneClusterLayerImpl.js +3 −0 Original line number Diff line number Diff line Loading @@ -354,12 +354,15 @@ define([ var popupContent = this.getPopupContent(data); if (popupContent.then) { popupContent.then(lang.hitch(this, function(data, value) { this._markerById[data.feature[this.idProperty]].data.popup = value; popup.setContent(value); this._emitEvt('POPUP_LOADED', popup); }, data)); } else { this._markerById[data.feature[this.idProperty]].data.popup = popupContent; popup.setContent(popupContent); this._emitEvt('POPUP_LOADED', popup); } } }, Loading Loading
public/javascript/redmic/modules/map/Map.js +4 −0 Original line number Diff line number Diff line Loading @@ -69,6 +69,7 @@ define([ CENTER_SET: "centerSet", ZOOM_SET: "zoomSet", BBOX_CHANGED: "bBoxChanged", POPUP_OPENED: 'popupOpened', POPUP_CLOSED: "popupClosed", MAP_CLICKED: "mapClicked", CLOSE_POPUP: "closePopup", Loading Loading @@ -210,6 +211,9 @@ define([ event: 'BBOX_CHANGE', channel: this.getChannel("BBOX_CHANGED"), callback: "_pubBBoxChanged" },{ event: 'POPUP_OPEN', channel: this.getChannel('POPUP_OPENED') },{ event: 'POPUP_CLOSE', channel: this.getChannel("POPUP_CLOSED") Loading
public/javascript/redmic/modules/map/layer/MapLayer.js +6 −1 Original line number Diff line number Diff line Loading @@ -37,7 +37,8 @@ define([ SET_CENTER: "setCenter", LAYER_LOADING: "layerLoading", LAYER_LOADED: "layerLoaded", LAYER_LEGEND: "layerLegend" LAYER_LEGEND: "layerLegend", POPUP_LOADED: 'popupLoaded' }, actions: { CLEAR: "clear", Loading @@ -46,6 +47,7 @@ define([ REMOVE_LAYER: "removeLayer", ADD_DATA: "addData", POPUP_CLOSED: "popupClosed", POPUP_LOADED: 'popupLoaded', MAP_CLICKED: "mapClicked", LAYER_LOADING: "layerLoading", LAYER_LOADED: "layerLoaded", Loading Loading @@ -146,6 +148,9 @@ define([ },{ event: 'FIT_BOUNDS', channel: this._buildChannel(this.mapChannel, this.actions.FIT_BOUNDS) },{ event: 'POPUP_LOADED', channel: this.getChannel('POPUP_LOADED') }); }, Loading
public/javascript/redmic/modules/map/layer/PruneClusterLayerImpl.js +3 −0 Original line number Diff line number Diff line Loading @@ -354,12 +354,15 @@ define([ var popupContent = this.getPopupContent(data); if (popupContent.then) { popupContent.then(lang.hitch(this, function(data, value) { this._markerById[data.feature[this.idProperty]].data.popup = value; popup.setContent(value); this._emitEvt('POPUP_LOADED', popup); }, data)); } else { this._markerById[data.feature[this.idProperty]].data.popup = popupContent; popup.setContent(popupContent); this._emitEvt('POPUP_LOADED', popup); } } }, Loading