Skip to content

Commit

Permalink
Updated with MapTiler SDK v2
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanlurie committed May 30, 2024
1 parent de57932 commit 2a05d69
Show file tree
Hide file tree
Showing 8 changed files with 121 additions and 75 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@
### Bug Fixes
### Others

## 2.0.
### Others
- Updated with MapTiler SDK v2



## 1.0.1
### New Features
### Bug Fixes
Expand Down
6 changes: 3 additions & 3 deletions examples/01-basic.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Basic Elevation Control</title>

<script src="../node_modules/@maptiler/sdk/dist/maptiler-sdk.umd.js"></script>
<link href="../node_modules/@maptiler/sdk/dist/maptiler-sdk.css" rel="stylesheet" />
<script src="https://cdn.maptiler.com/maptiler-sdk-js/v2.0.3/maptiler-sdk.umd.min.js"></script>
<link href="https://cdn.maptiler.com/maptiler-sdk-js/v2.0.3/maptiler-sdk.css" rel="stylesheet" />


<!-- Import Elevation Control -->
Expand All @@ -25,7 +25,7 @@
<body>
<div id="map"></div>
<script>
maptilersdk.config.apiKey = 'PhsGJ2SdW2MhmzzsT8zU';
maptilersdk.config.apiKey = 'YOUR_API_KEY';

const map = new maptilersdk.Map({
container: 'map', // container's id or the HTML element to render the map
Expand Down
4 changes: 2 additions & 2 deletions examples/02-zoom-segment.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
<title>Basic Elevation Control</title>

<!-- Import MapTiler SDK -->
<script src="../node_modules/@maptiler/sdk/dist/maptiler-sdk.umd.js"></script>
<link href="../node_modules/@maptiler/sdk/dist/maptiler-sdk.css" rel="stylesheet" />
<script src="https://cdn.maptiler.com/maptiler-sdk-js/v2.0.3/maptiler-sdk.umd.min.js"></script>
<link href="https://cdn.maptiler.com/maptiler-sdk-js/v2.0.3/maptiler-sdk.css" rel="stylesheet" />

<!-- Import Elevation Control -->
<script src="../build/maptiler-elevation-profile-control.umd.js"></script>
Expand Down
4 changes: 2 additions & 2 deletions examples/03-custom-div.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
<title>Basic Elevation Control</title>

<!-- Import MapTiler SDK -->
<script src="../node_modules/@maptiler/sdk/dist/maptiler-sdk.umd.js"></script>
<link href="../node_modules/@maptiler/sdk/dist/maptiler-sdk.css" rel="stylesheet" />
<script src="https://cdn.maptiler.com/maptiler-sdk-js/v2.0.3/maptiler-sdk.umd.min.js"></script>
<link href="https://cdn.maptiler.com/maptiler-sdk-js/v2.0.3/maptiler-sdk.css" rel="stylesheet" />

<!-- Import Elevation Control -->
<script src="../build/maptiler-elevation-profile-control.umd.js"></script>
Expand Down
4 changes: 2 additions & 2 deletions examples/04-custom-style.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
<title>Basic Elevation Control</title>

<!-- Import MapTiler SDK -->
<script src="../node_modules/@maptiler/sdk/dist/maptiler-sdk.umd.js"></script>
<link href="../node_modules/@maptiler/sdk/dist/maptiler-sdk.css" rel="stylesheet" />
<script src="https://cdn.maptiler.com/maptiler-sdk-js/v2.0.3/maptiler-sdk.umd.min.js"></script>
<link href="https://cdn.maptiler.com/maptiler-sdk-js/v2.0.3/maptiler-sdk.css" rel="stylesheet" />

<!-- Import Elevation Control -->
<script src="../build/maptiler-elevation-profile-control.umd.js"></script>
Expand Down
4 changes: 2 additions & 2 deletions examples/05-custom-class.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
<title>Basic Elevation Control</title>

<!-- Import MapTiler SDK -->
<script src="../node_modules/@maptiler/sdk/dist/maptiler-sdk.umd.js"></script>
<link href="../node_modules/@maptiler/sdk/dist/maptiler-sdk.css" rel="stylesheet" />
<script src="https://cdn.maptiler.com/maptiler-sdk-js/v2.0.3/maptiler-sdk.umd.min.js"></script>
<link href="https://cdn.maptiler.com/maptiler-sdk-js/v2.0.3/maptiler-sdk.css" rel="stylesheet" />

<!-- Import Elevation Control -->
<script src="../build/maptiler-elevation-profile-control.umd.js"></script>
Expand Down
Loading

0 comments on commit 2a05d69

Please sign in to comment.