Skip to content

Commit

Permalink
Fix usage of attribute API in Python sample.
Browse files Browse the repository at this point in the history
  • Loading branch information
josephbirkner committed Dec 17, 2024
1 parent 73410c4 commit ae743ff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/python/datasource.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ def handle_tile_request(tile: mapget.TileFeatureLayer):
# Add an attribute layer
attr_layer: mapget.Object = feature.attribute_layers().new_layer("rules")
attr: mapget.Attribute = attr_layer.new_attribute("SPEED_LIMIT")
attr.set_direction(mapget.Direction.POSITIVE)
# TODO: Add Python bindings for validities.
# attr.set_direction(mapget.Direction.POSITIVE)
attr.add_field("speedLimit", 50)

# Add a child feature ID
Expand Down

0 comments on commit ae743ff

Please sign in to comment.