Skip to content

Commit 1a202d0

Browse files
committed
added notebooks
1 parent 9638197 commit 1a202d0

15 files changed

+37
-11
lines changed
+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"path": "../../../examples/FullScreenControl.ipynb"
3+
}

docs/source/examples/geojson.nblink

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"path": "../../../examples/GeojsonLayer.ipynb"
3+
}

docs/source/examples/geotiff.nblink

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"path": "../../../examples/GeoTIFFTileLayer.ipynb"
3+
}

docs/source/examples/heatmap.nblink

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"path": "../../../examples/HeatmapLayer.ipynb"
3+
}
+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"path": "../../../examples/ImageOverlay.ipynb"
3+
}

docs/source/examples/index.rst

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ The widgets have been embedded into the page for demonstrative purposes.
1111
one. This is a manual step to ensure only those examples that
1212
are suited for inclusion are used.
1313

14-
1514
.. toctree::
1615
:glob:
1716

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"path": "../../../examples/MousePositionControl.ipynb"
3+
}
+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"path": "../../../examples/PopupOverlay.ipynb"
3+
}
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
22
"path": "../../../examples/RasterLayer.ipynb"
3-
}
3+
}

docs/source/examples/scaleline.nblink

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"path": "../../../examples/ScaleLineControl.ipynb"
3+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"path": "../../../examples/VectorTileLayer.ipynb"
3+
}
+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"path": "../../../examples/VideoOverlay.ipynb"
3+
}
+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"path": "../../../examples/ZoomSliderControl.ipynb"
3+
}

docs/source/layers/geojson.rst

+1-7
Original file line numberDiff line numberDiff line change
@@ -184,13 +184,7 @@ Below is second example of how to use the `GeoJSON` class to add a Json file dat
184184

185185
# Add the GeoJSON layer with the defined style
186186
geo_json = GeoJSON(
187-
data=data,
188-
style_callback=lambda feature: point_to_circle_style(feature) if feature['geometry']['type'] == 'Point' else {}, # Style only for points
189-
hover_style={
190-
'color': 'orange',
191-
'fillColor': 'orange',
192-
'fillOpacity': 0.7 # Increase opacity on hover for better visibility
193-
}
187+
data=data
194188
)
195189

196190
# Add the GeoJSON layer to the map

docs/source/overlay/popup_overlay.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ Below is an example of how to use the `PopupOverlay` class to add a popup to you
2020
from ipyopenlayers import Map, TileLayer, PopupOverlay
2121

2222
# Create a map centered at coordinates [0.0, 0.0] with zoom level 2
23-
m = Map(center=[0.0, 0.0], zoom=2)
23+
m = Map(center=[-11.844178003179724, 37.31477334221525], zoom=0)
2424

2525
# Display the map
2626
display(m)
2727

2828
# Create a PopupOverlay and set its position and content
29-
popup = PopupOverlay(position=[48.8566, 2.3522], popup_content = 'France')
29+
popup = PopupOverlay(position=[-120.06694821433305, 40.70520249808547], popup_content = 'United States of America')
3030

3131
# Add the PopupOverlay to the map
3232
m.add_overlay(popup)

0 commit comments

Comments
 (0)