Skip to content

Capability: Toggle whether default controls are displayed #16

@prushforth

Description

@prushforth

This issue is for discussion of the map viewer capability "Toggle whether default controls are displayed".


Using the <video> element as an example, the browser renderer is capable of rendering video content on demand of the author using something as simple as

<video controls width="250">

    <source src="/media/examples/flower.webm"
            type="video/webm">

    <source src="/media/examples/flower.mp4"
            type="video/mp4">

    Sorry, your browser doesn't support embedded videos.
</video>

The video player rendered by that has default controls, styled according to the particular browser implementation. Yet, and I am not an expert, but I believe you can shut the controls off (by omitting the controls attribute) and provide your own controls (if you wish) which respond to events (handled by script).

Maps should follow a similar approach: if you don't want default controls, don't ask for them. Then, use events emitted by the map 'player' to bind your own self-created controls to the map, with script.

Metadata

Metadata

Assignees

No one assigned

    Labels

    discussion: capabilitya specific capability or feature: should it be included? what details? should it be a requirement?section: map viewerCapabilities & use cases for declarative map viewer widgetsstatus: placeholderthere's a matching section heading / some text in the report, but it's far from complete

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions