File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -4,12 +4,7 @@ import Map from 'ol/Map';
44import Feature from 'ol/Feature' ;
55import { bbox as bboxStrategy } from 'ol/loadingstrategy' ;
66import { LayerWFS as GeoportalLayerWFS , LayerMapBox as GeoportalLayerTMS } from "geopf-extensions-openlayers/src" ;
7- import { Pixel } from 'ol/pixel' ;
8- import { toStringHDMS } from 'ol/coordinate.js' ;
9- import { toLonLat } from 'ol/proj.js' ;
107import Overlay from 'ol/Overlay' ;
11- import VectorLayer from 'ol/layer/Vector' ;
12- import Layer from 'ol/layer/Layer' ;
138
149@Component ( {
1510 selector : 'app-carte' ,
@@ -62,6 +57,12 @@ export class CarteComponent implements OnInit {
6257
6358 this . map . on ( 'pointermove' , function ( evt ) {
6459 var feature = evt . map . forEachFeatureAtPixel ( evt . pixel , function ( feature , layer ) {
60+ if ( evt . dragging ) {
61+ //@ts -ignore
62+ document . getElementById ( "tooltip-feature" ) . style . visibility = 'hidden' ;
63+ evt . map . getTargetElement ( ) . style . cursor = '' ;
64+ return null ;
65+ }
6566 //@ts -ignore
6667 if ( layer . name === "services_publics_test_20250616:carto_sp_interne" ) {
6768 return feature ;
You can’t perform that action at this time.
0 commit comments