rodolpheg

Untitled

Feb 15th, 2021
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.96 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>Le titre de ma page</title>
  5. <meta charset="UTF-8">
  6. <style>
  7.  
  8. /* Ici sont définis les style CSS */
  9.  
  10. </style>
  11. </head>
  12.  
  13. <body>
  14.  
  15. <!-- Ici, c'est le domaine du code HTML-->
  16.  
  17. <script>
  18.  
  19. // Entre les balises <script>, c'est le domaine de Javascript !
  20.  
  21. bdSpatiale = {
  22. "type": "FeatureCollection",
  23. "features": [
  24. {
  25. "type": "Feature",
  26. "properties": {
  27. "var1": 100,
  28. "var2": 200
  29. },
  30. "geometry": {
  31. "type": "Point",
  32. "coordinates": [
  33. -71.3671875,
  34. 51.39920565355378
  35. ]
  36. }
  37. },
  38. {
  39. "type": "Feature",
  40. "properties": {
  41. "var1": 234,
  42. "var2": 543,
  43. "var3": 12
  44. },
  45. "geometry": {
  46. "type": "LineString",
  47. "coordinates": [
  48. [
  49. -144.84375,
  50. 6.664607562172585
  51. ],
  52. [
  53. -45,
  54. 14.604847155053898
  55. ],
  56. [
  57. -52.03125,
  58. 66.51326044311185
  59. ],
  60. [
  61. -3.1640625,
  62. 33.137551192346145
  63. ],
  64. [
  65. 42.890625,
  66. 71.30079291637452
  67. ]
  68. ]
  69. }
  70. },
  71. {
  72. "type": "Feature",
  73. "properties": {
  74. "var1": 34
  75. },
  76. "geometry": {
  77. "type": "Polygon",
  78. "coordinates": [
  79. [
  80. [
  81. 24.960937499999996,
  82. 43.83452678223682
  83. ],
  84. [
  85. 42.1875,
  86. 33.137551192346145
  87. ],
  88. [
  89. 56.953125,
  90. 44.33956524809713
  91. ],
  92. [
  93. 47.8125,
  94. 55.57834467218206
  95. ],
  96. [
  97. 24.960937499999996,
  98. 43.83452678223682
  99. ]
  100. ]
  101. ]
  102. }
  103. }
  104. ]
  105. }
  106.  
  107. console.log(bdSpatiale)
  108.  
  109. </script>
  110.  
  111. <!-- Ici, c'est à nouveau le domaine du code HTML-->
  112.  
  113. </body>
  114.  
  115. </html>
Advertisement
Add Comment
Please, Sign In to add comment