File tree Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -68,13 +68,16 @@ export default function GsMap(inputProps: InputProps) {
6868 element : element ,
6969 offset : [ - 5 , 0 ] ,
7070 positioning : 'bottom-center' ,
71- className : 'ol-tooltip-measure ol-tooltip . ol-tooltip-static'
71+ className : 'ol-tooltip-measure ol-tooltip ol-tooltip-static'
7272 } ) ;
7373 overlay . setPosition ( fromLonLat ( [ gsValue . longitude , gsValue . latitude ] ) ) ;
74- const myStyle = element ?. style ;
75- if ( ! ! myStyle ) {
76- myStyle . display = 'block' ;
77- }
74+ const myStyle1 = element ?. style ;
75+ if ( ! ! myStyle1 ) {
76+ myStyle1 . display = 'block' ;
77+ }
78+ if ( element ?. classList ) {
79+ element . classList . add ( myStyle [ 'gsTooltip' ] ) ;
80+ }
7881 //map.addOverlay(overlay);
7982 addPins ( gsValue , element , index ) ;
8083 return overlay ;
Original file line number Diff line number Diff line change 2222}
2323
2424
25- .ol-tooltip {
25+ .gsTooltip {
2626 position : relative;
2727 background : # ffcc33 ;
2828 border-radius : 4px ;
You can’t perform that action at this time.
0 commit comments