Skip to content

Commit fd69f48

Browse files
committed
Move attribution to the class implementation
Signed-off-by: martinRenou <[email protected]>
1 parent ded853a commit fd69f48

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

examples/VectorTiles.ipynb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@
1919
"\n",
2020
"# This is a custom VectorTileLayer subclass, allowing to pass our api key to the url\n",
2121
"class CustomVectorTileLayer(VectorTileLayer):\n",
22-
" api_key = Unicode('gCZXZglvRQa6sB2z7JzL1w').tag(sync=True, o=True)\n",
23-
" attribution = Unicode('<a href=\"https://nextzen.com/\">&copy; NextZen</a>, <a href=\"http://www.openstreetmap.org/copyright\">&copy; OpenStreetMap</a> contributors').tag(sync=True, o=True)"
22+
" api_key = Unicode('gCZXZglvRQa6sB2z7JzL1w').tag(sync=True, o=True)"
2423
]
2524
},
2625
{

ipyleaflet/leaflet.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,8 @@ class VectorTileLayer(Layer):
393393
_model_name = Unicode('LeafletVectorTileLayerModel').tag(sync=True)
394394

395395
url = Unicode().tag(sync=True, o=True)
396+
attribution = Unicode().tag(sync=True, o=True)
397+
396398
vector_tile_layer_styles = Dict().tag(sync=True, o=True)
397399

398400
def __init__(self, **kwargs):

0 commit comments

Comments
 (0)