Skip to content

Commit

Permalink
Updated dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
tschaub committed Dec 3, 2024
1 parent 55f5314 commit aa868a7
Show file tree
Hide file tree
Showing 16 changed files with 963 additions and 819 deletions.
2 changes: 1 addition & 1 deletion src/en/examples/cog/true-color-parts.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const projection = 'EPSG:32721';
const extent = transformExtent(
[-59.19991, -35.32718, -57.98062, -34.32183],
'EPSG:4326',
projection
projection,
);
//! [extent]

Expand Down
2 changes: 1 addition & 1 deletion src/en/examples/cog/true-color.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const projection = 'EPSG:32721';
const extent = transformExtent(
[-59.19991, -35.32718, -57.98062, -34.32183],
'EPSG:4326',
projection
projection,
);

const source = new GeoTIFF({
Expand Down
8 changes: 4 additions & 4 deletions src/en/examples/mobile/compass.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ navigator.geolocation.watchPosition(
new Feature(
circular(coords, pos.coords.accuracy).transform(
'EPSG:4326',
map.getView().getProjection()
)
map.getView().getProjection(),
),
),
new Feature(new Point(fromLonLat(coords))),
]);
Expand All @@ -53,7 +53,7 @@ navigator.geolocation.watchPosition(
},
{
enableHighAccuracy: true,
}
},
);

const locate = document.createElement('div');
Expand All @@ -70,7 +70,7 @@ locate.addEventListener('click', function () {
map.addControl(
new Control({
element: locate,
})
}),
);
//! [style]
const style = new Style({
Expand Down
6 changes: 3 additions & 3 deletions src/en/examples/mobile/geolocation.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ navigator.geolocation.watchPosition(
source.clear(true);
source.addFeatures([
new Feature(
accuracy.transform('EPSG:4326', map.getView().getProjection())
accuracy.transform('EPSG:4326', map.getView().getProjection()),
),
new Feature(new Point(fromLonLat(coords))),
]);
Expand All @@ -54,7 +54,7 @@ navigator.geolocation.watchPosition(
},
{
enableHighAccuracy: true,
}
},
);
//! [geolocation]
//! [control]
Expand All @@ -72,6 +72,6 @@ locate.addEventListener('click', function () {
map.addControl(
new Control({
element: locate,
})
}),
);
//! [control]
8 changes: 4 additions & 4 deletions src/en/examples/vector/download.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,26 +27,26 @@ map.addInteraction(
new DragAndDrop({
source: source,
formatConstructors: [GeoJSON],
})
}),
);

map.addInteraction(
new Modify({
source: source,
})
}),
);

map.addInteraction(
new Draw({
source: source,
type: 'Polygon',
})
}),
);

map.addInteraction(
new Snap({
source: source,
})
}),
);

//! [clear]
Expand Down
2 changes: 1 addition & 1 deletion src/en/examples/vector/drag-n-drop.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ map.addInteraction(
new DragAndDrop({
source: source,
formatConstructors: [GeoJSON],
})
}),
);
//! [interaction]
6 changes: 3 additions & 3 deletions src/en/examples/vector/draw.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,20 +31,20 @@ map.addInteraction(
new DragAndDrop({
source: source,
formatConstructors: [GeoJSON],
})
}),
);

map.addInteraction(
new Modify({
source: source,
})
}),
);

//! [draw]
map.addInteraction(
new Draw({
type: 'Polygon',
source: source,
})
}),
);
//! [draw]
4 changes: 2 additions & 2 deletions src/en/examples/vector/modify.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ map.addInteraction(
new DragAndDrop({
source: source,
formatConstructors: [GeoJSON],
})
}),
);

//! [modify]
map.addInteraction(
new Modify({
source: source,
})
}),
);
//! [modify]
8 changes: 4 additions & 4 deletions src/en/examples/vector/snap.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,26 +32,26 @@ map.addInteraction(
new DragAndDrop({
source: source,
formatConstructors: [GeoJSON],
})
}),
);

map.addInteraction(
new Modify({
source: source,
})
}),
);

map.addInteraction(
new Draw({
source: source,
type: 'Polygon',
})
}),
);

//! [snap]
map.addInteraction(
new Snap({
source: source,
})
}),
);
//! [snap]
8 changes: 4 additions & 4 deletions src/en/examples/vector/style.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,26 +69,26 @@ map.addInteraction(
new DragAndDrop({
source: source,
formatConstructors: [GeoJSON],
})
}),
);

map.addInteraction(
new Modify({
source: source,
})
}),
);

map.addInteraction(
new Draw({
source: source,
type: 'Polygon',
})
}),
);

map.addInteraction(
new Snap({
source: source,
})
}),
);

const clear = document.getElementById('clear');
Expand Down
6 changes: 3 additions & 3 deletions src/en/examples/webgl/animated.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ parse('./data/meteorites.csv', {
mass: parseFloat(row.mass) || 0,
year: parseInt(row.year) || 0,
geometry: new Point(
fromLonLat([parseFloat(row.reclong), parseFloat(row.reclat)])
fromLonLat([parseFloat(row.reclong), parseFloat(row.reclat)]),
),
})
)
}),
),
);
},
});
Expand Down
6 changes: 3 additions & 3 deletions src/en/examples/webgl/circles.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ parse('./data/meteorites.csv', {
mass: parseFloat(row.mass) || 0,
year: parseInt(row.year) || 0,
geometry: new Point(
fromLonLat([parseFloat(row.reclong), parseFloat(row.reclat)])
fromLonLat([parseFloat(row.reclong), parseFloat(row.reclat)]),
),
})
)
}),
),
);
},
});
Expand Down
6 changes: 3 additions & 3 deletions src/en/examples/webgl/dynamic.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ parse('./data/meteorites.csv', {
mass: parseFloat(row.mass) || 0,
year: parseInt(row.year) || 0,
geometry: new Point(
fromLonLat([parseFloat(row.reclong), parseFloat(row.reclat)])
fromLonLat([parseFloat(row.reclong), parseFloat(row.reclat)]),
),
})
)
}),
),
);
},
});
Expand Down
6 changes: 3 additions & 3 deletions src/en/examples/webgl/meteorites.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ parse('./data/meteorites.csv', {
mass: parseFloat(row.mass) || 0,
year: parseInt(row.year) || 0,
geometry: new Point(
fromLonLat([parseFloat(row.reclong), parseFloat(row.reclat)])
fromLonLat([parseFloat(row.reclong), parseFloat(row.reclat)]),
),
})
)
}),
),
);
},
});
Expand Down
Loading

0 comments on commit aa868a7

Please sign in to comment.