Skip to content

Suggestion: Actually extend the original zoom control #2

@just-Addict

Description

@just-Addict

Instead of partly rebuilding the zoom control, why not actually extending the original so it includes the full zoom control functionality?

by using L.Control.ZoomBar = L.Control.Zoom.extend
instead of L.Control.ZoomBar = L.Control.extend you can drop:

onRemove, _zoomIn, _zoomOut, _createButton and _updateDisabled

since these do nothing more than the already existing methods of the original Zoom Control.

On top of that you'll be making use of the original's ability to be used with screen readers and it's support for the zoomDelta option

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions