Points2.html 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8"/>
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
  6. <title>三维-海量点标记</title>
  7. <link rel="stylesheet" href="../../dist/index.css"/>
  8. <script src="../../dist/index.js"></script>
  9. <link href="../../cesium/Source/Widgets/widgets.css" rel="stylesheet">
  10. <script src="../../cesium/Build/Cesium/Cesium.js"></script>
  11. </head>
  12. <body style="margin: 0; padding: 0;">
  13. <div id="map" style="height: 100vh; width: 100vw;"></div>
  14. <div class="input-card">
  15. <div class="input-item">
  16. <button class="btn" id="lightPoint">根据id高亮点</button>
  17. </div>
  18. <div class="input-item">
  19. <button class="btn" id="origin" onclick="origin()">还原</button>
  20. </div>
  21. <div class="input-item">
  22. <button class="btn" id="remove">移除</button>
  23. </div>
  24. <div class="input-item">
  25. <button class="btn" id="restore" onclick="restore()">还原状态</button>
  26. </div>
  27. </div>
  28. </body>
  29. <script>
  30. function origin() {
  31. points.repeatSize();
  32. }
  33. function lightPoint() {
  34. points.locationById({id: "12332"});
  35. }
  36. function remove() {
  37. points.remove();
  38. }
  39. function restore() {
  40. points.restore();
  41. }
  42. let map = new CTMapOl.cesiumComponent.ThrdimeInitMap({
  43. domId: 'map',
  44. center: [116.367223000, 39.913864000],
  45. zoom: 3
  46. })
  47. let viewer = map._viewer;
  48. var points;
  49. function initData() {
  50. let options = {
  51. viewer,
  52. clickBig: false,
  53. clickOption: [
  54. {
  55. "big": false,
  56. "icon": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAAAXNSR0IArs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x/g9woizE/XAA0gAAAABJRU5ErkJggg=="
  57. }
  58. ],
  59. height: 50,
  60. layerId: "DataSourceLayer",
  61. points:
  62. [
  63. [
  64. "116.361901000,39.888600000",
  65. "10110101000102",
  66. "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAAAXNSR0IArs4c6QAADVhJREFUaEPNWwl0VEUWvdVbku501s5G4LAoIKCAgrLIFnAIRCKyOjAijqMyxxEFARlQkUVxZBlQPAwo4wHGAdkVMmERiEAkARIVlEAMmKAsIftK0t2/+82p3/07v7P2T5rlnZOT5P/6VXXrLfXeq1cMt4nSrpPerMYAIvQCQ2eQ+BMJBiMRjHxYYihXEcqJIZcYMlWETMaQ7mNDcu9W7NbtmBrzZqff5VK4zY7JBIwF0IcBOgIgDSL9zX9z4s/l72UPLAw4RYTdahW2PB7J8rw1T68APnadBhFhDoARYNCIKDggBhA5fosclYGs/4E7LOf3AoADjGH54FbseEuBtwjw4asUowYWEzCgvonU5mAdDtdeEOfi8EVqoL9kEN6JacO+bS7wZgE+nkNRVjVWApgkH7g2R28UCzh/1YKcPCuul9hws0RAlYXEH05+Oib+RARp0CpIjXbhWnRrrUNUsMYhALUXQFpBYKvWhlmD2rEbSoErBnzkdxpJwFYAgbUnxDu7km/F8YtVSMmqRmG5Tel8xPahRjX6dvTFoC5+aGvSuvqoJTGljGHSsDZsv5JBFAE+lEOzwLAMgKr2IJdzrdjyXRkyrlmUjN9k267ROkx+PAD3RdYAl31kB+HN4e0YlzaPyCPAiVnkw3RYryJMdbOqgCim21LLkZpV7dGAzW3EOT6xrxGRQS6b6OqKGDaRBdPiOjJzU/03CTgxi8KYBl8D6CfvzEbAtpNlOHS2EoK9qWG8816jAob3MOCZ/gFQ1515CgkYHdeR5Tc2WqOAOWehRhI5wUo6VFFtx5qDxbhw1bvi6+mydGmtw/TYYPj7qlxbN/+WASmwIaYxTjcKOOFX2gjCVPlErhUJWJVYhPyy5hkkT0E11S4sQI2Z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Kq1FpVpZEkMYx+KjRNtQXHcL9EGLQypNw8kshpcQwafWY21ggLk1oxi6KIoaVcBawNaS/5dUCbpZaUFRpFZ2WimpB3NIE516uUTPwrcXfVwPuPITotYgI0sHo41Z2JM9JObwowlbGMGv1uDtwBUAO7tUdNISpsAR2xyWP2nceai9Eg3cYnIpVn8TIbQYYksmOdz6ZcIcvedQGMn07DSaG2SD3azy1LybVuSNR61ZL7Xs+TqeH5zoO2IEV/5roqLVqCSkyWk0N9PoWihC0mESEsQzoQwSdvPzY03tMjGAhhlOMYbdNjS3rxt5jF7XqW4iX95FeU4kBxNALdnQWr+MxRMIOI1TOq3h2lDMVyomQC34NT4VMRkgXDEj+NP72XMX7P64FbDScbobFAAAAAElFTkSuQmCC",
  67. "0.5, 1"
  68. ]
  69. ],
  70. width: 50,
  71. }
  72. points = new CTMapOl.cesiumComponent.Points(options);
  73. points.addTo({viewer: viewer})
  74. points.on('click', e => {
  75. console.log(e)
  76. })
  77. points.on('mousemove', e => {
  78. console.log(e)
  79. })
  80. document.getElementById('remove').onclick = () => {
  81. points.remove();
  82. }
  83. document.getElementById('lightPoint').onclick = () => {
  84. points.locationById({id: "10110101000102"});
  85. }
  86. }
  87. initData();
  88. function initData2() {
  89. let options = {
  90. viewer,
  91. layerId: 'DataSourceLayer',
  92. points: [
  93. ['120.12,31.21', '12332', '../assets/image/rect.jpg', '15,15', 2],
  94. ['120.12,31.21', 'bb23424b', '../assets/image/rect.jpg', '0,0', 2]
  95. ],
  96. // clickOption: [
  97. // {big: false, icon: '../assets/image/rect2.jpg'},
  98. // {big: false}
  99. // ],
  100. width: 30,
  101. height: 30,
  102. clickIcon: '../assets/image/rect2.jpg',
  103. clickBig: false,
  104. // zoom: 2, // 超过2级就显示
  105. // maxZoom: 5,
  106. remark: {
  107. fontSize: 24,
  108. color: 'green',
  109. offset: [0, 0],
  110. },
  111. zIndex: 2
  112. }
  113. points = new CTMapOl.cesiumComponent.Points(options);
  114. points.addTo({viewer: viewer})
  115. }
  116. // initData2()
  117. </script>
  118. <style>
  119. /*地图*/
  120. .mapDIV {
  121. height: 100vh;
  122. width: 100vw;
  123. z-index: 1;
  124. }
  125. .add-switch {
  126. position: absolute;
  127. right: 30px;
  128. height: 68px;
  129. width: 30px;
  130. bottom: 112px;
  131. background: #FFFFFF 100%;
  132. color: #172537;
  133. border-radius: 4px;
  134. display: flex;
  135. flex-direction: column;
  136. align-items: center;
  137. z-index: 2;
  138. }
  139. .add-s-block {
  140. height: 20px;
  141. display: flex;
  142. align-items: center;
  143. justify-content: center;
  144. width: 100%;
  145. line-height: 20px;
  146. font-size: 12px;
  147. margin-bottom: 2px;
  148. color: #172537;
  149. }
  150. .add-zoom {
  151. width: 20px;
  152. height: 20px;
  153. background-image: url('../../dist/assets/image/ar/switch/add-zoom.svg');
  154. background-size: 100% 100%;
  155. cursor: pointer;
  156. }
  157. .sub-zoom {
  158. width: 20px;
  159. height: 20px;
  160. background-image: url('../../dist/assets/image/ar/switch/sub-zoom.svg');
  161. background-size: 100% 100%;
  162. cursor: pointer;
  163. }
  164. .add-zoom-out {
  165. width: 20px;
  166. height: 20px;
  167. background-image: url('../../dist/assets/image/ar/switch/add-zoom-out.svg');
  168. background-size: 100% 100%;
  169. }
  170. .sub-zoom-out {
  171. width: 20px;
  172. height: 20px;
  173. background-image: url('../../dist/assets/image/ar/switch/sub-zoom-out.svg');
  174. background-size: 100% 100%;
  175. }
  176. .add-s-block.btn-click {
  177. cursor: pointer;
  178. }
  179. .input-card {
  180. position: absolute;
  181. right: 15px;
  182. bottom: 15px;
  183. z-index: 999;
  184. }
  185. </style>
  186. </html>