Skip to content

Padding options are not passed to fitBounds call #649

@nicksellen

Description

@nicksellen

Description

padding options are not always used, e.g.

this.mapObject.fitBounds(this.bounds);

It should be:

this.mapObject.fitBounds(this.bounds, this.fitBoundsOptions);

Live Demo

http://jsfiddle.net/Lje19v7w/2/

Steps to Reproduce

  • provide padding-top-left option to l-map component.
  • observe map

Expected Results

A padding should be applied to the map view.

Actual Results

No padding is applied.

Browsers Affected

(must be all of them as it's missing the js code, but I only saw it on firefox)

  • Chrome
  • Firefox
  • Edge
  • Safari 9
  • Safari 8
  • IE 11

Versions

(the versions from the forked jsfiddle)

  • Leaflet: vX.X.X
  • Vue: v1.0.3
  • Vue2Leaflet: v1.0.1 (oh the jsfiddle uses quite an old version, but it's also happening in my projects version which is 2.6.0)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugconfirmedIssue is accepted as either a bug or a valid enhancementhelp wanted

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions