| <!DOCTYPE html>
|
| <html>
|
| <head>
|
| <title>MapKit Renderer</title>
|
| <meta charset="utf-8" />
|
| <meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
| <link rel="stylesheet" href="https://unpkg.com/leaflet/dist/leaflet.css"/>
|
| <style>
|
| #map { height: 100vh; }
|
| </style>
|
| </head>
|
| <body>
|
| <div id="map"></div>
|
|
|
|
|
| <script src="https://unpkg.com/leaflet/dist/leaflet.js"></script>
|
| <script>
|
|
|
| var map = L.map('map').setView([22.3193, 114.1694], 12);
|
|
|
|
|
| L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
|
| attribution: '© OpenStreetMap contributors'
|
| }).addTo(map);
|
|
|
|
|
| fetch('hongkong_mapkit.geojson')
|
| .then(response => response.json())
|
| .then(data => {
|
| L.geoJSON(data).addTo(map);
|
| });
|
| </script>
|
| </body>
|
| </html> |