Skip to content

Changing the default zoom of map #345

Description

@ragavendra

hi,

Like asked in stack overflow here

I would like to change the default zoom setting of the map.

The default leaflet zoom setting for leaflet is as below.

var center_ = [0, 0];
var map = L.map('map', {
  center: center_,
  zoom: 16
});

L.Control.geocoder().addTo(map);

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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