components_identify_vue.html 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <!--********************************************************************
  2. * Copyright© 2000 - 2021 SuperMap Software Co.Ltd. All rights reserved.
  3. *********************************************************************-->
  4. <!DOCTYPE html>
  5. <html>
  6. <head>
  7. <meta charset="UTF-8" />
  8. <title data-i18n="resources.title_componentsIdentify_Vue"></title>
  9. <script type="text/javascript" include="vue" src="../js/include-web.js"></script>
  10. <script
  11. include="iclient-mapboxgl-vue,mapbox-gl-enhance"
  12. src="../../dist/mapboxgl/include-mapboxgl.js"
  13. ></script>
  14. <style>
  15. #main {
  16. margin: 0 auto;
  17. width: 100%;
  18. height: 100%;
  19. }
  20. </style>
  21. </head>
  22. <body style=" margin: 0;overflow: hidden;background: #fff;width: 100%;height:100%;position: absolute;top: 0;">
  23. <div id="main">
  24. <sm-web-map server-url="https://iportal.supermap.io/iportal" map-id="801571284">
  25. <!-- 点选查询组件: sm-identify -->
  26. <sm-identify :layers="['民航数据']"></sm-identify>
  27. </sm-web-map>
  28. </div>
  29. <script>
  30. new Vue({
  31. el: '#main',
  32. mounted() {
  33. this.$message.info(resources.msg_clickLayerToPopup);
  34. }
  35. });
  36. </script>
  37. </body>
  38. </html>