Skip to content

Commit 11d486d

Browse files
committed
修改例子
1 parent 3cdd491 commit 11d486d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

examples/openlayers/echartsBar.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<link href="http://cdn.bootcss.com/openlayers/4.0.1/ol.css" rel="stylesheet">
77
</head>
88
<body style=" margin: 0;overflow: hidden;background: #fff;width: 100%;height:100%">
9-
<div id="map" style="width: 100%;position:absolute;top: 0;border: 1px solid #dddddd"></div>
9+
<div id="map" style="width: 100%;height:100%;border: 1px solid #dddddd"></div>
1010
<div id="popup"></div>
1111
</body>
1212
<script type="text/javascript" src="http://cdn.bootcss.com/openlayers/4.0.1/ol-debug.js"></script>

examples/openlayers/echartsPie.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@
191191
} else {
192192
popup.setPosition(undefined);
193193
}
194+
map.getView().setCenter(e.mapBrowserEvent.coordinate);
194195
});
195196
});
196197
}

0 commit comments

Comments
 (0)