打印获取地图相关信息
<template> <vue2ol-map style="height: 400px"> <vue2ol-view :zoom="zoom" :center="center" :options="viewOptions"> </vue2ol-view> <vue2ol-layer-tile :zIndex="2"> <vue2ol-source-baidu layer="normal_map"></vue2ol-source-baidu> </vue2ol-layer-tile> <vue2ol-debug-mapinfo></vue2ol-debug-mapinfo> </vue2ol-map> </template> <script> export default { data() { return { zoom: 10, //级别 center: [120, 28], //中心点 viewOptions: { projection: "EPSG:4326" //坐标系 } }; }, methods: { onReady(mapObject) {} } }; </script>
← Vue2olTyphoonMain