Skip to content

Commit 49d953e

Browse files
committed
fixes #52 remove custom ol-ext css
Signed-off-by: Taro Matsuzawa <[email protected]>
1 parent 079aeb8 commit 49d953e

File tree

2 files changed

+1
-44
lines changed

2 files changed

+1
-44
lines changed

src/components/gtt-client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ export class GttClient {
476476
const url = popup_contents.href.replace(/\[(.+?)\]/g, feature.get('id'))
477477
content.push(`<a href="${url}">Edit</a>`)
478478

479-
popup.show(getCenter(feature.getGeometry().getExtent()), content as any)
479+
popup.show(feature.getGeometry().getFirstCoordinate(), content as any)
480480
})
481481

482482
select.getFeatures().on(['remove'], _ => {

src/stylesheets/app.scss

Lines changed: 0 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -24,49 +24,6 @@
2424
background-color: rgba(40, 40, 40, 1);
2525
}
2626

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-
7027
#admin-menu a.gtt {
7128
background-image: url(../images/map.png);
7229
}

0 commit comments

Comments
 (0)