@@ -144,7 +144,8 @@ <h5>Contrast stretch</h5>
144
144
145
145
< div class ="row-fluid ">
146
146
< h5 class ="source-heading "> main.js</ h5 >
147
- < pre > < code id ="example-js-source " class ="language-js "> import Map from 'ol/Map.js';
147
+ < pre > < code id ="example-js-source " class ="language-js "> import NumpyLoader from '@planet/ol-numpytiles';
148
+ import Map from 'ol/Map.js';
148
149
import View from 'ol/View.js';
149
150
import TileLayer from 'ol/layer/WebGLTile.js';
150
151
import {fromLonLat} from 'ol/proj.js';
@@ -281,7 +282,6 @@ <h5 class="source-heading">index.html</h5>
281
282
</ul>
282
283
</div>
283
284
284
- <script src="https://cdn.jsdelivr.net/npm/@planet/ol-numpytiles@3.0.1/umd/NumpyLoader.js"></script>
285
285
<script type="module" src="main.js"></script>
286
286
</body>
287
287
</html></ code > </ pre >
@@ -292,7 +292,8 @@ <h5 class="source-heading">package.json</h5>
292
292
< pre > < code id ="example-pkg-source " class ="language-json "> {
293
293
"name": "numpytile",
294
294
"dependencies": {
295
- "ol": "10.4.1-dev"
295
+ "ol": "10.4.1-dev",
296
+ "@planet/ol-numpytiles": "^3.0.1"
296
297
},
297
298
"devDependencies": {
298
299
"vite": "^3.2.3"
@@ -306,7 +307,6 @@ <h5 class="source-heading">package.json</h5>
306
307
</ div >
307
308
308
309
< script src ="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/js/bootstrap.bundle.min.js "> </ script >
309
- < script src ="https://cdn.jsdelivr.net/npm/@planet/ol-numpytiles@3.0.1/umd/NumpyLoader.js "> </ script >
310
310
< script src ="common.js "> </ script >
311
311
< script src ="numpytile.js "> </ script >
312
312
< script src ="https://cdnjs.cloudflare.com/ajax/libs/prism/1.28.0/components/prism-core.min.js "> </ script >
0 commit comments