Browse Source

UI: Improvement map tooltip in show hover mode - tooltip moves behind the cursor

pull/6063/head
Vladyslav_Prykhodko 5 years ago
parent
commit
1077497a31
  1. 4
      ui-ngx/src/app/modules/home/components/widget/lib/maps/maps-utils.ts

4
ui-ngx/src/app/modules/home/components/widget/lib/maps/maps-utils.ts

@ -33,6 +33,10 @@ export function createTooltip(target: L.Layer,
target.on('mouseover', () => {
target.openPopup();
});
target.on('mousemove', (e) => {
// @ts-ignore
popup.setLatLng(e.latlng);
});
target.on('mouseout', () => {
target.closePopup();
});

Loading…
Cancel
Save