File tree Expand file tree Collapse file tree 2 files changed +1
-44
lines changed Expand file tree Collapse file tree 2 files changed +1
-44
lines changed Original file line number Diff line number Diff line change @@ -476,7 +476,7 @@ export class GttClient {
476
476
const url = popup_contents . href . replace ( / \[ ( .+ ?) \] / g, feature . get ( 'id' ) )
477
477
content . push ( `<a href="${ url } ">Edit</a>` )
478
478
479
- popup . show ( getCenter ( feature . getGeometry ( ) . getExtent ( ) ) , content as any )
479
+ popup . show ( feature . getGeometry ( ) . getFirstCoordinate ( ) , content as any )
480
480
} )
481
481
482
482
select . getFeatures ( ) . on ( [ 'remove' ] , _ => {
Original file line number Diff line number Diff line change 24
24
background-color : rgba (40 , 40 , 40 , 1 );
25
25
}
26
26
27
- .ol-popup {
28
- position : absolute ;
29
- background-color : white ;
30
- -webkit-filter : drop-shadow (0 1px 4px rgba (0 ,0 ,0 ,0.2 ));
31
- filter : drop-shadow (0 1px 4px rgba (0 ,0 ,0 ,0.2 ));
32
- padding : 7px ;
33
- border-radius : 10px ;
34
- border : 1px solid #cccccc ;
35
- bottom : 12px ;
36
- left : -50px ;
37
- min-width : 120px ;
38
- }
39
- .ol-popup :after , .ol-popup :before {
40
- top : 100% ;
41
- border : solid transparent ;
42
- content : " " ;
43
- height : 0 ;
44
- width : 0 ;
45
- position : absolute ;
46
- pointer-events : none ;
47
- }
48
- .ol-popup :after {
49
- border-top-color : white ;
50
- border-width : 10px ;
51
- left : 48px ;
52
- margin-left : -10px ;
53
- }
54
- .ol-popup :before {
55
- border-top-color : #cccccc ;
56
- border-width : 11px ;
57
- left : 48px ;
58
- margin-left : -11px ;
59
- }
60
- .ol-popup-closer {
61
- text-decoration : none ;
62
- position : absolute ;
63
- top : 2px ;
64
- right : 8px ;
65
- }
66
- .ol-popup-closer :after {
67
- content : " ✖" ;
68
- }
69
-
70
27
#admin-menu a .gtt {
71
28
background-image : url (../images/map.png );
72
29
}
You can’t perform that action at this time.
0 commit comments