map.vue 723 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <template>
  2. <view>
  3. <view class="page-body">
  4. <view class="page-section page-section-gap">
  5. <map style="width: 100%; height: 100vh;" :latitude="latitude" :longitude="longitude" :markers="covers">
  6. </map>
  7. </view>
  8. </view>
  9. </view>
  10. </template>
  11. <script>
  12. export default {
  13. data() {
  14. return {
  15. id:0, // 使用 marker点击事件 需要填写id
  16. title: 'map',
  17. latitude: 39.909,
  18. longitude: 116.39742,
  19. covers: [{
  20. latitude: 39.909,
  21. longitude: 116.39742,
  22. // iconPath: '../../../static/location.png'
  23. }, {
  24. latitude: 39.90,
  25. longitude: 116.39,
  26. // iconPath: '../../../static/location.png'
  27. }]
  28. }
  29. },
  30. methods: {
  31. }
  32. }
  33. </script>
  34. <style lang="scss">
  35. </style>