Skip to content

Commit

Permalink
example now use SDK UMD from node_modules
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanlurie committed Dec 22, 2023
1 parent 10ccc6e commit 5896b05
Show file tree
Hide file tree
Showing 11 changed files with 4,410 additions and 9,726 deletions.
8 changes: 4 additions & 4 deletions examples/01-basic.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Basic Elevation Control</title>

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


<!-- Import Elevation Control -->
<script src="../build/maptiler-elevation-profile-control.umd.js"></script>
Expand All @@ -25,7 +25,7 @@
<body>
<div id="map"></div>
<script>
maptilersdk.config.apiKey = 'YOUR_API_KEY';
maptilersdk.config.apiKey = 'PhsGJ2SdW2MhmzzsT8zU';

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="https://cdn.maptiler.com/maptiler-sdk-js/v1.2.0/maptiler-sdk.umd.min.js"></script>
<link href="https://cdn.maptiler.com/maptiler-sdk-js/v1.2.0/maptiler-sdk.css" rel="stylesheet" />
<script src="../node_modules/@maptiler/sdk/dist/maptiler-sdk.umd.js"></script>
<link href="../node_modules/@maptiler/sdk/dist/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="https://cdn.maptiler.com/maptiler-sdk-js/v1.2.0/maptiler-sdk.umd.min.js"></script>
<link href="https://cdn.maptiler.com/maptiler-sdk-js/v1.2.0/maptiler-sdk.css" rel="stylesheet" />
<script src="../node_modules/@maptiler/sdk/dist/maptiler-sdk.umd.js"></script>
<link href="../node_modules/@maptiler/sdk/dist/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="https://cdn.maptiler.com/maptiler-sdk-js/v1.2.0/maptiler-sdk.umd.min.js"></script>
<link href="https://cdn.maptiler.com/maptiler-sdk-js/v1.2.0/maptiler-sdk.css" rel="stylesheet" />
<script src="../node_modules/@maptiler/sdk/dist/maptiler-sdk.umd.js"></script>
<link href="../node_modules/@maptiler/sdk/dist/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="https://cdn.maptiler.com/maptiler-sdk-js/v1.2.0/maptiler-sdk.umd.min.js"></script>
<link href="https://cdn.maptiler.com/maptiler-sdk-js/v1.2.0/maptiler-sdk.css" rel="stylesheet" />
<script src="../node_modules/@maptiler/sdk/dist/maptiler-sdk.umd.js"></script>
<link href="../node_modules/@maptiler/sdk/dist/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 5896b05

Please sign in to comment.