Skip to content

Commit 271eeea

Browse files
committed
PMTiles samples update
1 parent af1dfbd commit 271eeea

10 files changed

Lines changed: 57 additions & 30 deletions

File tree

‎Build/SampleBuilder/SampleBuilder.csproj‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
</PropertyGroup>
1111

1212
<ItemGroup>
13-
<PackageReference Include="HtmlAgilityPack" Version="1.11.65" />
14-
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="8.0.0" />
13+
<PackageReference Include="HtmlAgilityPack" Version="1.11.68" />
14+
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="8.0.1" />
1515
<PackageReference Include="X.Web.Sitemap" Version="2.10.3" />
1616
</ItemGroup>
1717

‎Samples/PMTiles/Overture Building Theme/Buildings.html‎

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,23 @@
11
<!DOCTYPE html>
22
<html lang="en">
3-
<head>
3+
<head>
4+
<title>PMTiles Buildings - Azure Maps Web SDK Samples</title>
5+
46
<meta charset="utf-8" />
5-
<meta name="viewport" content="width=device-width, user-scalable=no" />
6-
<title>PMTiles - Buildings</title>
7-
<meta name="description" content="This sample shows how to leverage PMTiles as custom protocol to create data layers using Overture building 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 building dataset." />
811
<meta name="keywords" content="Microsoft maps, map, gis, API, SDK, pmtiles, pmtile, Overture, building, polygon extrustions, 3d buildings" />
912
<meta name="author" content="Microsoft Azure Maps" />
13+
<meta name="version" content="1.0" />
1014
<meta name="screenshot" content="screenshot.jpg" />
15+
16+
<!-- Add references to the Azure Maps Map control JavaScript and CSS files. -->
1117
<link href="https://atlas.microsoft.com/sdk/javascript/mapcontrol/3/atlas.min.css" rel="stylesheet" />
1218
<script src="https://atlas.microsoft.com/sdk/javascript/mapcontrol/3/atlas.min.js"></script>
19+
20+
<!-- Add references to the PMTiles lib. -->
1321
<script src="https://unpkg.com/pmtiles@3.0.5/dist/pmtiles.js"></script>
1422

1523
<style>
@@ -71,7 +79,7 @@
7179
</div>
7280
<fieldset id="info">
7381
<legend>PMTiles - Buildings</legend>
74-
This sample showcases the use of <a href="https://protomaps.com/">Protomaps</a> to display <a href="https://overturemaps.org/" target="_blank">Overture</a> buildings data on a map.
82+
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> buildings data on a map.
7583
The data is stored in a PMTiles file that contains a vector tileset of buildings data. The data is filtered by the building subtype and displayed as polygons on the map.
7684
Click on a polygon to view more information about the building.
7785
</fieldset>
@@ -228,4 +236,4 @@
228236
}
229237
</script>
230238
</body>
231-
</html>
239+
</html>
-2.22 MB
Loading

‎Samples/PMTiles/Overture Place Theme/Places.html‎

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,23 @@
11
<!DOCTYPE html>
22
<html lang="en">
3-
<head>
3+
<head>
4+
<title>PMTiles Places - Azure Maps Web SDK Samples</title>
5+
46
<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." />
811
<meta name="keywords" content="Microsoft maps, map, gis, API, SDK, pmtiles, pmtile, Overture, place" />
912
<meta name="author" content="Microsoft Azure Maps" />
13+
<meta name="version" content="1.0" />
1014
<meta name="screenshot" content="screenshot.jpg" />
15+
16+
<!-- Add references to the Azure Maps Map control JavaScript and CSS files. -->
1117
<link href="https://atlas.microsoft.com/sdk/javascript/mapcontrol/3/atlas.min.css" rel="stylesheet" />
1218
<script src="https://atlas.microsoft.com/sdk/javascript/mapcontrol/3/atlas.min.js"></script>
19+
20+
<!-- Add references to the PMTiles lib. -->
1321
<script src="https://unpkg.com/pmtiles@3.0.5/dist/pmtiles.js"></script>
1422

1523
<style>
@@ -44,18 +52,18 @@
4452
<body>
4553
<div id="map"></div>
4654
<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 />
5462
</div>
5563

5664
<fieldset id="info">
5765
<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.
5967
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.
6068
Click on a symbol to view more information about the place.
6169
</fieldset>
-1.58 MB
Loading

‎Samples/PMTiles/Overture Transportation Theme/Transportation.html‎

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,23 @@
11
<!DOCTYPE html>
22
<html lang="en">
3-
<head>
3+
<head>
4+
<title>PMTiles Transportation - Azure Maps Web SDK Samples</title>
5+
46
<meta charset="utf-8" />
5-
<meta name="viewport" content="width=device-width, user-scalable=no" />
6-
<title>PMTiles - Transportation</title>
7-
<meta name="description" content="This sample shows how to leverage PMTiles as custom protocol to create data layers using Overture transportation dataset" />
8-
<meta name="keywords" content="Microsoft maps, map, gis, API, SDK, pmtiles, pmtile, Overture, transportation" />
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 Transportation dataset." />
11+
<meta name="keywords" content="Microsoft maps, map, gis, API, SDK, pmtiles, pmtile, Overture, Transportation" />
912
<meta name="author" content="Microsoft Azure Maps" />
13+
<meta name="version" content="1.0" />
1014
<meta name="screenshot" content="screenshot.jpg" />
1115

16+
<!-- Add references to the Azure Maps Map control JavaScript and CSS files. -->
1217
<link href="https://atlas.microsoft.com/sdk/javascript/mapcontrol/3/atlas.min.css" rel="stylesheet" />
1318
<script src="https://atlas.microsoft.com/sdk/javascript/mapcontrol/3/atlas.min.js"></script>
19+
20+
<!-- Add references to the PMTiles lib. -->
1421
<script src="https://unpkg.com/pmtiles@3.0.5/dist/pmtiles.js"></script>
1522

1623
<style>
@@ -58,9 +65,9 @@
5865
<div id="legend">Metro Lines<br /></div>
5966
<fieldset id="info">
6067
<legend>PMTiles - Transportation</legend>
61-
This sample showcases the use of <a href="https://protomaps.com/">Protomaps</a> to display <a href="https://overturemaps.org/" target="_blank">Overture</a> transportation data on a map.
68+
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> transportation data on a map.
6269
The data is stored in a PMTiles file that contains a vector tileset of transportation data.
63-
The data is filtered by the rail subtype and name to show Taipei’s metro lines on a line layer.
70+
The data is filtered by the rail subtype and name to show Taipei's metro lines on a line layer.
6471
Stations are displayed on a symbol layer using a pre-generated GeoJSON file. Click on a line or station for more details.
6572
</fieldset>
6673

-1.57 MB
Loading

‎Samples/PMTiles/category.json‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"Title": "PMTiles Layer",
3+
"Description": "PMTiles is an open specification for single-file tile pyramids built on compressed Hilbert ordering and queryable via HTTP Range Requests."
4+
}

‎Samples/Spatial Analysis/Calculate nearest locations/Calculate nearest locations.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
var tokenServiceUrl = 'https://samples.azuremaps.com/api/GetAzureMapsToken';
3131

3232
// URL for making async calls to the route matrix service.
33-
var routeMatrixAsyncUrl = 'https://{azMapsDomain}/route/matrix/json?api-version=1.0';
33+
var routeMatrixAsyncUrl = 'https://{azMapsDomain}/route/matrix/json?api-version=1.0&waitForResults=true';
3434

3535
// Function to retrieve an Azure Maps access token.
3636
function getToken(resolve, reject, map) {

‎Services/SampleFunctions/SampleFunctions.csproj‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
</PropertyGroup>
99
<ItemGroup>
1010
<FrameworkReference Include="Microsoft.AspNetCore.App" />
11-
<PackageReference Include="Azure.Identity" Version="1.12.0" />
11+
<PackageReference Include="Azure.Identity" Version="1.13.0" />
1212
<PackageReference Include="Microsoft.Azure.Functions.Worker" Version="1.23.0" />
1313
<PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.Http" Version="3.2.0" />
1414
<PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.Http.AspNetCore" Version="1.3.2" />
15-
<PackageReference Include="Microsoft.Azure.Functions.Worker.Sdk" Version="1.17.4" />
15+
<PackageReference Include="Microsoft.Azure.Functions.Worker.Sdk" Version="1.18.1" />
1616
<PackageReference Include="Microsoft.ApplicationInsights.WorkerService" Version="2.22.0" />
1717
<PackageReference Include="Microsoft.Azure.Functions.Worker.ApplicationInsights" Version="1.4.0" />
1818
</ItemGroup>

0 commit comments

Comments
 (0)