api de gestion de ticket, basé sur php-crud-api. Le but est de décorrélé les outils de gestion des données, afin
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

vanilla.html 1.0KB

123456789101112131415161718192021222324252627282930313233343536
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>Quick Start - Leaflet</title>
  5. <meta charset="utf-8" />
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <link rel="shortcut icon" type="image/x-icon" href="docs/images/favicon.ico" />
  8. <link rel="stylesheet" href="https://unpkg.com/leaflet@1.5.1/dist/leaflet.css"/>
  9. <script src="https://unpkg.com/leaflet@1.5.1/dist/leaflet.js"></script>
  10. <script src="geojson-layer.js"></script>
  11. <script src="geojson-tile-layer.js"></script>
  12. </head>
  13. <body>
  14. <div id="mapid" style="width: 600px; height: 400px;"></div>
  15. <script>
  16. var mymap = L.map('mapid').setView([20, 30], 3);
  17. //L.tileLayer('https://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer/tile/{z}/{y}/{x}', {
  18. // maxZoom: 18,
  19. //}).addTo(mymap);
  20. //L.geoJSONLayer('http://localhost:8000/api.php/geojson/countries/1,2?bbox={bbox}', {
  21. // maxZoom: 18,
  22. //}).addTo(mymap);
  23. L.geoJSONTileLayer('http://localhost:8000/api.php/geojson/countries/1,2?tile={z},{y},{x}', {
  24. maxZoom: 18,
  25. }).addTo(mymap);
  26. </script>
  27. </body>
  28. </html>