|
1 | 1 | <!DOCTYPE html> |
2 | 2 | <html lang="en"> |
3 | | - <head> |
| 3 | +<head> |
| 4 | + <title>PMTiles Places - Azure Maps Web SDK Samples</title> |
| 5 | + |
4 | 6 | <meta charset="utf-8" /> |
5 | | - <meta name="viewport" content="width=device-width, user-scalable=no" /> |
6 | | - <title>PMTiles - Places</title> |
7 | | - <meta name="description" content="This sample shows how to leverage PMTiles as custom protocol to create data layers using Overture place dataset" /> |
| 7 | + <link rel="shortcut icon" href="/favicon.ico"/> |
| 8 | + |
| 9 | + <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" /> |
| 10 | + <meta name="description" content="This sample shows how to leverage PMTiles as custom protocol to create data layers using Overture Places dataset." /> |
8 | 11 | <meta name="keywords" content="Microsoft maps, map, gis, API, SDK, pmtiles, pmtile, Overture, place" /> |
9 | 12 | <meta name="author" content="Microsoft Azure Maps" /> |
| 13 | + <meta name="version" content="1.0" /> |
10 | 14 | <meta name="screenshot" content="screenshot.jpg" /> |
| 15 | + |
| 16 | + <!-- Add references to the Azure Maps Map control JavaScript and CSS files. --> |
11 | 17 | <link href="https://atlas.microsoft.com/sdk/javascript/mapcontrol/3/atlas.min.css" rel="stylesheet" /> |
12 | 18 | <script src="https://atlas.microsoft.com/sdk/javascript/mapcontrol/3/atlas.min.js"></script> |
| 19 | + |
| 20 | + <!-- Add references to the PMTiles lib. --> |
13 | 21 | <script src="https://unpkg.com/pmtiles@3.0.5/dist/pmtiles.js"></script> |
14 | 22 |
|
15 | 23 | <style> |
|
44 | 52 | <body> |
45 | 53 | <div id="map"></div> |
46 | 54 | <div id="panel"> |
47 | | - <input type="checkbox" checked="checked" onclick="filterSymbols(this, 'coffee_shop')" id="coffee" ><label for="coffee">Coffee</label></input><br /> |
48 | | - <input type="checkbox" checked="checked" onclick="filterSymbols(this, 'gym')" id="gym" ><label for="gym">Gym</label></input><br /> |
49 | | - <input type="checkbox" checked="checked" onclick="filterSymbols(this, 'library')" id="library" ><label for="library">Library</label></input><br /> |
50 | | - <input type="checkbox" checked="checked" onclick="filterSymbols(this, 'museum')" id="museum" ><label for="museum">Museum</label></input><br /> |
51 | | - <input type="checkbox" checked="checked" onclick="filterSymbols(this, 'park')" id="park" ><label for="park">Park</label></input><br /> |
52 | | - <input type="checkbox" checked="checked" onclick="filterSymbols(this, 'parking')" id="parking" ><label for="parking">Parking</label></input><br /> |
53 | | - <input type="checkbox" checked="checked" onclick="filterSymbols(this, 'shopping')" id="shopping" ><label for="shopping">Shopping</label></input><br /> |
| 55 | + <input type="checkbox" checked="checked" onclick="filterSymbols(this, 'coffee_shop')" id="coffee" ><label for="coffee">Coffee</label><br /> |
| 56 | + <input type="checkbox" checked="checked" onclick="filterSymbols(this, 'gym')" id="gym" ><label for="gym">Gym</label><br /> |
| 57 | + <input type="checkbox" checked="checked" onclick="filterSymbols(this, 'library')" id="library" ><label for="library">Library</label><br /> |
| 58 | + <input type="checkbox" checked="checked" onclick="filterSymbols(this, 'museum')" id="museum" ><label for="museum">Museum</label><br /> |
| 59 | + <input type="checkbox" checked="checked" onclick="filterSymbols(this, 'park')" id="park" ><label for="park">Park</label><br /> |
| 60 | + <input type="checkbox" checked="checked" onclick="filterSymbols(this, 'parking')" id="parking" ><label for="parking">Parking</label><br /> |
| 61 | + <input type="checkbox" checked="checked" onclick="filterSymbols(this, 'shopping')" id="shopping" ><label for="shopping">Shopping</label><br /> |
54 | 62 | </div> |
55 | 63 |
|
56 | 64 | <fieldset id="info"> |
57 | 65 | <legend>PMTiles - Places</legend> |
58 | | - This sample showcases the use of <a href="https://protomaps.com/">Protomaps</a> to display <a href="https://overturemaps.org/" target="_blank">Overture</a> places data on a map. |
| 66 | + This sample showcases the use of <a href="https://protomaps.com/" target="_blank">Protomaps</a> to display <a href="https://overturemaps.org/" target="_blank">Overture</a> places data on a map. |
59 | 67 | The data is stored in a PMTiles file that contains a vector tileset of places data. The data is filtered by category and displayed as symbols on the map. |
60 | 68 | Click on a symbol to view more information about the place. |
61 | 69 | </fieldset> |
|
0 commit comments