map_search.vue 783 B

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