Ideas and Suggestions for Leaflet

Leaflet UserVoice is a place for you to show support for your favorite feature and improvement suggestions for Leaflet.

  • Please don’t add duplicates of existing ideas.
  • Please don’t report issues with map data — they have nothing to do with Leaflet and will be declined. It uses OpenStreetMap on the website examples.
  • If you need to report a bug, please use GitHub issues instead.

Leaflet will become even better if you add …

You've used all your votes and won't be able to post a new idea, but you can still search and comment on existing ideas.

There are two ways to get more votes:

  • When an admin closes an idea you've voted on, you'll get your votes back from that idea.
  • You can remove your votes from an open idea you support.
  • To see ideas you have already voted on, select the "My feedback" filter and select "My open ideas".
(thinking…)

Enter your idea and we'll search to see if someone has already suggested it.

If a similar idea already exists, you can support and comment on it.

If it doesn't exist, you can post your idea so others can support it.

Enter your idea and we'll search to see if someone has already suggested it.

  1. post example showing custom projection

    It would be cool if one of the examples show the use of a custom projection. This could show how one could use leaflet to pan/zoom around a layer representing a simple image; or a local tile set (e.g. one city). This would also show how to create a map that doesn't wrap around the east/west.

    58 votes
    Vote
    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service
      Signed in as (Sign out)
      You have left! (?) (thinking…)
      1 comment  ·  Admin →
    • Number the markers

      it sould be nice if we ware abble to number the markers, for a search around a point for exemple.

      84 votes
      Vote
      Sign in
      Check!
      (thinking…)
      Reset
      or sign in with
      • facebook
      • google
        Password icon
        I agree to the terms of service
        Signed in as (Sign out)
        You have left! (?) (thinking…)
      • Marker Visibility Control

        It would be nice to be able to control the visibility of a marker (hide/show) at either the marker or the layer level. I currently do this in both Google Map API and Openlayer Map API to allow the user to filter between different types of markers on the map.

        http://www.topix.com/map

        121 votes
        Vote
        Sign in
        Check!
        (thinking…)
        Reset
        or sign in with
        • facebook
        • google
          Password icon
          I agree to the terms of service
          Signed in as (Sign out)
          You have left! (?) (thinking…)

          Technically, doing removeLayer and addLayer for hiding/showing markers has the same performance as hiding them with display = ‘none’, as addLayer only initializes the marker once and only appends it to the DOM on subsequent calls. So I don’t see much need to add such methods for individual markers.

          However this would be a very useful feature for LayerGroup’s, where I could implement putting all layers from the same group into a div container to be able to hide them all at once for a considerable performance gain. This is definitely in the plans.

        • Make layer control docs/example clearer about which layer is shown initially

          When there is multiple base layers, one is only visible, but all are always loaded. Please optimise this this.

          9 votes
          Vote
          Sign in
          Check!
          (thinking…)
          Reset
          or sign in with
          • facebook
          • google
            Password icon
            I agree to the terms of service
            Signed in as (Sign out)
            You have left! (?) (thinking…)
          • Zoom and panTo animation time parameter

            It will be grate set animation time for setZoom and panTo map methods like in mapbox (http://mapbox.com/mapbox.js/api/v0.6.5/#ease.run and http://mapbox.com/mapbox.js/example/optimal-easing/).

            40 votes
            Vote
            Sign in
            Check!
            (thinking…)
            Reset
            or sign in with
            • facebook
            • google
              Password icon
              I agree to the terms of service
              Signed in as (Sign out)
              You have left! (?) (thinking…)
            • An API function to close a popup. At the moment I'm using `popup._close()`

              Perhaps there are better ways entirely around it but here's a hack I'm currently using:

              var popup;

              popup = L.popup();
              map.on('click', function(event) {
              popup
              .setLatLng(event.latlng)
              .setContent($('#wanna-edit').html())
              .openOn(map);
              $('#map').on('keypress', function(e) {
              e.which == 0 && popup._close();
              });
              });

              6 votes
              Vote
              Sign in
              Check!
              (thinking…)
              Reset
              or sign in with
              • facebook
              • google
                Password icon
                I agree to the terms of service
                Signed in as (Sign out)
                You have left! (?) (thinking…)
                1 comment  ·  Admin →
              • Marker Keyboard Accessibility

                Keyboard accessibility is almost perfect-- however you just cannot get focus to markers and activate them. However, you can close an aleady open marker's popup.

                1 vote
                Vote
                Sign in
                Check!
                (thinking…)
                Reset
                or sign in with
                • facebook
                • google
                  Password icon
                  I agree to the terms of service
                  Signed in as (Sign out)
                  You have left! (?) (thinking…)
                • Don't see your idea?

                Ideas and Suggestions for Leaflet

                Feedback and Knowledge Base