Skip to content

Commit 16a13e3

Browse files
committed
Set fix ol-js version
1 parent ca10d71 commit 16a13e3

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

examples/standalone/layers/gpx_vector_layer.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22

33
data = "https://openlayers.org/en/latest/examples/data/gpx/fells_loop.gpx"
44

5-
gpx_layer = ol.VectorLayer(
5+
gpx_layer = ol.WebGLVectorLayer(
6+
fit_bounds=True,
67
source=ol.VectorSource(url=data, format=ol.formats.GPX()),
78
style=ol.FlatStyle(
89
circle_fill_color="red", stroke_color="green", stroke_width=3, circle_radius=5
@@ -11,4 +12,5 @@
1112

1213
m = ol.Map()
1314
m.add_layer(gpx_layer)
15+
m.add_tooltip()
1416
m.save("/tmp/ol-example.html")

srcjs/package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

srcjs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
},
2525
"dependencies": {
2626
"mustache": "^4.2.0",
27-
"ol": "latest",
27+
"ol": "^10.5.0",
2828
"ol-pmtiles": "^2.0.2"
2929
}
3030
}

0 commit comments

Comments
 (0)