Skip to content

when using a function to generate an angle for a point, it expects radians, not degrees #250

Open
@burritojustice

Description

@burritojustice

https://github.com/tangrams/tangram-docs/blob/gh-pages/pages/draw.md#angle

when returning a value for angle with a function, it looks like it expect radians, not degrees.

            draw:
                mapzen_icon_library: # _points:
                    sprite: airport
                    collide: false
                    # angle: 180
                    angle: |
                        function(){
                            return 3.14/2
                            // return 180
                            }

returning 180 does not point south, while pi/2 does...

Note that passing degrees without a function, e.g. angle: 180, works as expected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions