This commit is contained in:
xianfuxing 2018-09-03 20:15:12 +08:00
parent dd4da1e6f4
commit 5419a8f7d9
2 changed files with 2 additions and 7 deletions

View File

@ -11,6 +11,6 @@
<!-- <script src=<%= htmlWebpackPlugin.options.path %>/tinymce4.7.5/tinymce.min.js></script> -->
<div id="app"></div>
<!-- built files will be auto injected -->
<script type="text/javascript" src="https://webapi.amap.com/maps?v=1.4.8&key=49842c6fe4d24df80871faec2e272a00&plugin=AMap.Driving"></script>
<script type="text/javascript" src="https://webapi.amap.com/maps?v=1.4.8&key=49842c6fe4d24df80871faec2e272a00"></script>
</body>
</html>

View File

@ -163,12 +163,7 @@ export default {
if (this.coordinate === null) {
this.coordinate = [113.203460828994, 22.64902452257]
}
const map = new AMap.Map('map-container', {
// center: this.coordinate,
center: [113.203460828994, 22.64902452257],
resizeEnable: true,
zoom: 13
})
const map = new AMap.Map('map-container')
const drivingOptions = {
map: map,
// city: '',