components_webmap_react.html 1.0 KB

123456789101112131415161718192021222324252627282930313233
  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_componentsWebmap_React"></title>
  9. <script type="text/javascript" include="react" src="../js/include-web.js"></script>
  10. <script include="antd,iclient-mapboxgl-react,mapbox-gl-enhance" src="../../dist/mapboxgl/include-mapboxgl.js"></script>
  11. <style>
  12. html,
  13. body {
  14. height: 100%;
  15. margin: 0;
  16. padding: 0;
  17. }
  18. #main {
  19. height: 100%;
  20. }
  21. </style>
  22. </head>
  23. <body>
  24. <div id="main"></div>
  25. <script type="text/babel">
  26. var SmWebMap = SuperMap.Components.SmWebMap;
  27. ReactDOM.render(
  28. <SmWebMap mapId='801571284' serverUrl='https://iportal.supermap.io/iportal' />,
  29. document.getElementById('main')
  30. );
  31. </script>
  32. </body>
  33. </html>