|
10 | 10 | <title data-i18n="resources.title_graphicLayerTaxi"></title>
|
11 | 11 | <script type="text/javascript" include="papaparse,widgets" src="../js/include-web.js"></script>
|
12 | 12 | <script type="text/javascript" src="../../dist/ol/include-ol.js"></script>
|
13 |
| - <style> |
14 |
| - .ol-popup { |
15 |
| - position: absolute; |
16 |
| - background-color: white; |
17 |
| - -webkit-filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.2)); |
18 |
| - filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.2)); |
19 |
| - padding: 15px; |
20 |
| - border-radius: 10px; |
21 |
| - border: 1px solid #cccccc; |
22 |
| - bottom: 12px; |
23 |
| - left: -50px; |
24 |
| - min-width: 50px; |
25 |
| - } |
26 |
| - |
27 |
| - .ol-popup:after, .ol-popup:before { |
28 |
| - top: 100%; |
29 |
| - border: solid transparent; |
30 |
| - content: " "; |
31 |
| - height: 0; |
32 |
| - width: 0; |
33 |
| - position: absolute; |
34 |
| - pointer-events: none; |
35 |
| - } |
36 |
| - |
37 |
| - .ol-popup:after { |
38 |
| - border-top-color: white; |
39 |
| - border-width: 10px; |
40 |
| - left: 48px; |
41 |
| - margin-left: -10px; |
42 |
| - } |
43 |
| - |
44 |
| - .ol-popup:before { |
45 |
| - border-top-color: #cccccc; |
46 |
| - border-width: 11px; |
47 |
| - left: 48px; |
48 |
| - margin-left: -11px; |
49 |
| - } |
50 |
| - </style> |
51 | 13 | </head>
|
52 | 14 | <body style=" margin: 0;overflow: hidden;background: #fff;width: 100%;height:100%; position: absolute;top: 0;">
|
53 | 15 | <div id="map" style="width: 100%;height:100%"></div>
|
54 |
| -<div id="popup" class="ol-popup"> |
55 |
| - <div id="popup-content"></div> |
56 |
| -</div> |
57 | 16 | <script type="text/javascript">
|
58 | 17 | var url = (window.isLocal ? window.server : "https://iserver.supermap.io") + "/iserver/services/map-china400/rest/maps/ChinaDark",
|
59 |
| - container = document.getElementById('popup'), |
60 |
| - content = document.getElementById('popup-content'), |
61 |
| - overlay = new ol.Overlay(({ |
62 |
| - element: container, |
63 |
| - autoPan: true, |
64 |
| - autoPanAnimation: { |
65 |
| - duration: 250 |
66 |
| - } |
67 |
| - })), |
68 | 18 | map = new ol.Map({
|
69 | 19 | target: 'map',
|
70 | 20 | controls: ol.control.defaults({attributionOptions: {collapsed: false}})
|
|
74 | 24 | zoom: 12,
|
75 | 25 | projection: 'EPSG:3857',
|
76 | 26 | multiWorld: true
|
77 |
| - }), |
78 |
| - overlays: [overlay] |
| 27 | + }) |
79 | 28 | });
|
80 | 29 |
|
81 | 30 | loadData();
|
|
0 commit comments