Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions dist/samples/deckgl-kml-updated/app/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,8 @@
*/

// Import necessary loader
import { registerLoaders } from '@loaders.gl/core';
import { KMLLoader } from '@loaders.gl/kml';

// Register the KML loader
registerLoaders(KMLLoader);

// Declare global namespace for Deck.gl to satisfy TypeScript compiler
declare namespace deck {
class GeoJsonLayer {
Expand Down Expand Up @@ -95,6 +91,7 @@ async function initMap(): Promise<void> {
geojsonLayer = new deck.GeoJsonLayer({
id: 'geojson-layer',
data: `https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/1.0_week_age.kml?t=${Date.now()}`, // Append timestamp to prevent caching
loaders: [KMLLoader],
pickable: true,
stroked: true, // Set to true to add a border
getLineColor: [0, 0, 0, 255], // Set border color to black
Expand Down
8 changes: 8 additions & 0 deletions dist/samples/deckgl-kml-updated/dist/assets/index-BTnu1N-d.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/samples/deckgl-kml-updated/dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@



<script type="module" crossorigin src="./assets/index-GqTguRga.js"></script>
<script type="module" crossorigin src="./assets/index-BTnu1N-d.js"></script>
<link rel="stylesheet" crossorigin href="./assets/index-BQbxznls.css">
</head>
<body>
Expand Down
4 changes: 1 addition & 3 deletions dist/samples/deckgl-kml-updated/docs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@
* SPDX-License-Identifier: Apache-2.0
*/
// Import necessary loader
import { registerLoaders } from '@loaders.gl/core';
import { KMLLoader } from '@loaders.gl/kml';
// Register the KML loader
registerLoaders(KMLLoader);
// Initialize and add the map
let map;
let geojsonLayer;
Expand Down Expand Up @@ -50,6 +47,7 @@ async function initMap() {
geojsonLayer = new deck.GeoJsonLayer({
id: 'geojson-layer',
data: `https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/1.0_week_age.kml?t=${Date.now()}`, // Append timestamp to prevent caching
loaders: [KMLLoader],
pickable: true,
stroked: true, // Set to true to add a border
getLineColor: [0, 0, 0, 255], // Set border color to black
Expand Down
5 changes: 1 addition & 4 deletions dist/samples/deckgl-kml-updated/docs/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,8 @@
*/

// Import necessary loader
import { registerLoaders } from '@loaders.gl/core';
import { KMLLoader } from '@loaders.gl/kml';

// Register the KML loader
registerLoaders(KMLLoader);

// Declare global namespace for Deck.gl to satisfy TypeScript compiler
declare namespace deck {
class GeoJsonLayer {
Expand Down Expand Up @@ -95,6 +91,7 @@ async function initMap(): Promise<void> {
geojsonLayer = new deck.GeoJsonLayer({
id: 'geojson-layer',
data: `https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/1.0_week_age.kml?t=${Date.now()}`, // Append timestamp to prevent caching
loaders: [KMLLoader],
pickable: true,
stroked: true, // Set to true to add a border
getLineColor: [0, 0, 0, 255], // Set border color to black
Expand Down
4 changes: 1 addition & 3 deletions dist/samples/deckgl-kml-updated/jsfiddle/demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@
* SPDX-License-Identifier: Apache-2.0
*/
// Import necessary loader
import { registerLoaders } from '@loaders.gl/core';
import { KMLLoader } from '@loaders.gl/kml';
// Register the KML loader
registerLoaders(KMLLoader);
// Initialize and add the map
let map;
let geojsonLayer;
Expand Down Expand Up @@ -50,6 +47,7 @@ async function initMap() {
geojsonLayer = new deck.GeoJsonLayer({
id: 'geojson-layer',
data: `https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/1.0_week_age.kml?t=${Date.now()}`, // Append timestamp to prevent caching
loaders: [KMLLoader],
pickable: true,
stroked: true, // Set to true to add a border
getLineColor: [0, 0, 0, 255], // Set border color to black
Expand Down
5 changes: 1 addition & 4 deletions dist/samples/deckgl-kml/app/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,8 @@
*/

// Import necessary loader
import { registerLoaders } from '@loaders.gl/core';
import { KMLLoader } from '@loaders.gl/kml';

// Register the KML loader
registerLoaders(KMLLoader);

// Declare global namespace for Deck.gl to satisfy TypeScript compiler
declare namespace deck {
class GeoJsonLayer {
Expand Down Expand Up @@ -93,6 +89,7 @@ async function initMap(): Promise<void> {
geojsonLayer = new deck.GeoJsonLayer({
id: 'geojson-layer',
data: 'https://googlearchive.github.io/js-v2-samples/ggeoxml/cta.kml',
loaders: [KMLLoader],
pickable: true,
stroked: true, // Set to true to render lines
filled: false, // Set to false for lines
Expand Down
8 changes: 8 additions & 0 deletions dist/samples/deckgl-kml/dist/assets/index-DEpFlh_w.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/samples/deckgl-kml/dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@



<script type="module" crossorigin src="./assets/index-BNP4ZKdI.js"></script>
<script type="module" crossorigin src="./assets/index-DEpFlh_w.js"></script>
<link rel="stylesheet" crossorigin href="./assets/index-C1_76PH0.css">
</head>
<body>
Expand Down
4 changes: 1 addition & 3 deletions dist/samples/deckgl-kml/docs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@
* SPDX-License-Identifier: Apache-2.0
*/
// Import necessary loader
import { registerLoaders } from '@loaders.gl/core';
import { KMLLoader } from '@loaders.gl/kml';
// Register the KML loader
registerLoaders(KMLLoader);
// Initialize and add the map
let map;
let geojsonLayer;
Expand Down Expand Up @@ -49,6 +46,7 @@ async function initMap() {
geojsonLayer = new deck.GeoJsonLayer({
id: 'geojson-layer',
data: 'https://googlearchive.github.io/js-v2-samples/ggeoxml/cta.kml',
loaders: [KMLLoader],
pickable: true,
stroked: true, // Set to true to render lines
filled: false, // Set to false for lines
Expand Down
5 changes: 1 addition & 4 deletions dist/samples/deckgl-kml/docs/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,8 @@
*/

// Import necessary loader
import { registerLoaders } from '@loaders.gl/core';
import { KMLLoader } from '@loaders.gl/kml';

// Register the KML loader
registerLoaders(KMLLoader);

// Declare global namespace for Deck.gl to satisfy TypeScript compiler
declare namespace deck {
class GeoJsonLayer {
Expand Down Expand Up @@ -93,6 +89,7 @@ async function initMap(): Promise<void> {
geojsonLayer = new deck.GeoJsonLayer({
id: 'geojson-layer',
data: 'https://googlearchive.github.io/js-v2-samples/ggeoxml/cta.kml',
loaders: [KMLLoader],
pickable: true,
stroked: true, // Set to true to render lines
filled: false, // Set to false for lines
Expand Down
4 changes: 1 addition & 3 deletions dist/samples/deckgl-kml/jsfiddle/demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@
* SPDX-License-Identifier: Apache-2.0
*/
// Import necessary loader
import { registerLoaders } from '@loaders.gl/core';
import { KMLLoader } from '@loaders.gl/kml';
// Register the KML loader
registerLoaders(KMLLoader);
// Initialize and add the map
let map;
let geojsonLayer;
Expand Down Expand Up @@ -49,6 +46,7 @@ async function initMap() {
geojsonLayer = new deck.GeoJsonLayer({
id: 'geojson-layer',
data: 'https://googlearchive.github.io/js-v2-samples/ggeoxml/cta.kml',
loaders: [KMLLoader],
pickable: true,
stroked: true, // Set to true to render lines
filled: false, // Set to false for lines
Expand Down