1

I'm using ipyleaflet and I try to add attribution to a GeoJSON layer. I was thinking that GeoJSON objects were TileLayer so I tried the following:

map = ipyleaflet.Map()

data = json.loads(self.gdf.to_json())
ipygeojson = GeoJSON(data=data, style=AOI_STYLE, name='aoi', attribution='SEPA(c)')

map.add_layer(ipygeojson)

But no attributions are set on the map.

lokking at: help(ipyleaflet.GeoJSON) I realize that atttribution is not a defined or inheritted attribute.

Is there a way to create attribution in ipyleaflet for GeoJSON objects?

2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.