File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/plugins/maps_legacy/public/map Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 2020import { EventEmitter } from 'events' ;
2121import { createZoomWarningMsg } from './map_messages' ;
2222import L from 'leaflet' ;
23+ import { ResponsivePopup } from 'leaflet-responsive-popup' ;
2324import $ from 'jquery' ;
2425import _ from 'lodash' ;
2526import { zoomToPrecision } from './zoom_to_precision' ;
@@ -228,10 +229,10 @@ export class KibanaMap extends EventEmitter {
228229 }
229230
230231 if ( ! this . _popup ) {
231- this . _popup = L . responsivePopup ( { autoPan : false } ) ;
232+ this . _popup = new ResponsivePopup ( { autoPan : false } ) ;
232233 this . _popup . setLatLng ( event . position ) ;
233234 this . _popup . setContent ( event . content ) ;
234- this . _popup . openOn ( this . _leafletMap ) ;
235+ this . _leafletMap . openPopup ( this . _popup ) ;
235236 } else {
236237 if ( ! this . _popup . getLatLng ( ) . equals ( event . position ) ) {
237238 this . _popup . setLatLng ( event . position ) ;
You can’t perform that action at this time.
0 commit comments