Skip to content

UX: getting local (set default zoom, geolocate map, and add control scale) #14

Description

@kidwellj

We should set default zoom to something a bit closer to local area for a new load of the map (level 9 maybe?); add some code to geolocate the current user and centre the map on their location; and include display with a scale (see: http://leafletjs.com/reference-1.1.0.html#control-scale).

Activity

  1. kidwellj commented on Jul 10, 2017

    @kidwellj
    MemberAuthor

    Just added commit (master ce1cab5) to set zoom @ 9.

  2. kidwellj commented on Jul 10, 2017

    @kidwellj
    MemberAuthor

    Just added commit (c3d7746) to include scale (with imperial!).

  3. kidwellj commented on Jul 10, 2017

    @kidwellj
    MemberAuthor

    Looks like this is the ticket for user geolocation: https://github.com/domoritz/leaflet-locatecontrol. But I think we'll want to leave this code commented out for now as it will be annoying for testing until we get more data in England/Wales

  4. kidwellj commented on Aug 31, 2017

    @kidwellj
    MemberAuthor

    Re-opening so that we can remember to add scale to display (in "imperial"):
    i.e. L.control.scale().addTo(map);

  5. danhillcode commented on Sep 9, 2017

    @danhillcode
    Collaborator

    where did you see this going as at the moment it gets placed underneath the left sidebar by default

  6. kidwellj commented on Sep 10, 2017

    @kidwellj
    MemberAuthor

    Can we centre it? LH Sidebar covers it otherwise when it's up. Or add behaviour so that it slides to the right when LH Sidebar overlaps?

  7. danhillcode commented on Sep 16, 2017

    @danhillcode
    Collaborator

    I have entered it looks decent now.

  8. danhillcode commented on Sep 16, 2017

    @danhillcode
    Collaborator

    also increased zoom as requested 327-334 are the lines that control this in the index.html file

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

Metadata

Metadata

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