Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3D shapes with extrusion values > 2047 are not rendered #35

Open
deeplook opened this issue Apr 1, 2022 · 0 comments
Open

3D shapes with extrusion values > 2047 are not rendered #35

deeplook opened this issue Apr 1, 2022 · 0 comments
Assignees

Comments

@deeplook
Copy link
Contributor

deeplook commented Apr 1, 2022

I want to display really big geometric shapes on the surface of a map, think boxes of arbitrary height using the extrusion parameter of a Rectangle, say. But in code like below, similar to this the rectangle is rendered only for values up to a maximum of 2047 (meters?). Above this number no rectangle is rendered.

The official documentation mentions map.Polygon.MAX_EXTRUDE_HEIGHT, but it seems not to be supported in Python. Can it be set higher than 2047 and can it be exposed in Python?

import os
from here_map_widget import Bbox, Map, Rectangle

api_key = os.environ["LS_API_KEY"]
lon, lat = [50, 13]
m = Map(api_key=api_key, center=[lon, lat], zoom=8)
style = {"strokeColor": "#829", "lineWidth": 4}
bbox = Bbox(top=lon + 0.5, left=lat - 0.5, bottom=lon - 0.5, right=lat + 0.5)
rectangle = Rectangle(bbox=bbox, style=style, elevation=0, extrusion=2047)
m.add_object(rectangle)
m

screenshot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants