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. a gestureHandling option to L.Map

    Google Maps JS has a gestureHandling option which can be set to 'none', 'greedy', 'cooperative' or 'auto'.

    Currently, Leaflet only has a 'greedy' mode where moving with one finger pans the map.
    But when Leaflet is used as part of a scrolling page, this one finger panning interferes with page scrolling.

    Google Maps' solution is to require two fingers to move the map when gestureHandling is 'cooperative'.

    This would make Leaflet a no-brainer to embed in scrolling pages. I couldnt find plugins that enable this behaviour.

    More: https://developers.google.com/maps/documentation/javascript/interaction

    3 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…)
    • Adding origin to events

      I need to refresh some markers when the map has moved or zoomed but only if it’s coming from user interaction, not if I did it programmatically (calling map.setView, map.setZoom and so on).

      What do you think about adding an attribute in triggered event to tell if it’s coming from user interaction or by an API call (like origin: user|api) ?

      It doesn’t seems feasible in a plugin and would need changes in leaflet core. Would a pull request adding that event origin be integrated ?

      34 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…)
      • advance editing

        In farming case, we need to make some complex operation on polygon like editing, spliting or snaping with guide.

        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…)
        • Drawing Doughnut shaped objects

          A plugin which makes it possible to draw doughnut shapes. Currently its possible to draw a polygon inside another polygon but those polygons can only be of finite number of sides as one has to specify all the points those polygons can pass through. One could overlap a bigger circle with white polygon, but that would hide the background in case the polygon is slightly transparent.

          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…)
          • A position/display snapshot

            Ability to leave the map page for another page within the same website, and reload ("back" button) restoring previous map position, zoom level and visibility of layers.

            2 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…)
            • Resolution and scale predefined for zoom level

              OpenLayers has functionality that allows configure zoom levels by resolution or predefined scales. It is planned similar functionality in Leaflet?

              104 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…)
              • Improve docs: explain mapbox relationship

                I'm new to leaflet and looking at the lay controls example (http://leafletjs.com/examples/layers-control.html). It remains entirely unclear what/how the grayscale layer effect if produced. is this a mapbox feature? A leaflet feature? Does it need a plugin? Looking at the example source doesn't help either.

                It would be great if there was better introduction to the leaflet architecture to clarify these questions.

                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…)
                • Polyline needs removeLatLng( <LatLng> latlng ) method

                  Polyline needs removeLatLng( <LatLng> latlng ) method; should return this; Removes a given point from the polyline.

                  I realize this could be accomplished by getting the array of LatLngs and then removing the LatLng you want to remove and then setting the LatLngs array for the Polyline, but the same could be said of the addLatLng method as well. I think this is useful and important for usability--in case users click where they don't mean to. It makes it easy for me to implement undo/remove for them.

                  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…)
                  • 2 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…)
                    • Changing icon size

                      Changing the icon size dependent on zoom level or being able to change the size of marker without creating a new marker

                      7 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…)
                      • NOTHING! Keep it smple!!!

                        The reason I used Leaflet was for it's simplicity and very small size. This must always be maintained. I want my websites to be as quick as possible which means keeping code to a minimum.

                        If you really need to add features, add them as plugins but ALWAYS keep a very simple, basic, LIGHTWEIGHT version!

                        4 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…)
                        • 3 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 →
                          • I can work from Palmetto to Venice Fl.

                            I am helpful and friendly and get along with everyone.

                            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…)
                              1 comment  ·  Admin →
                            • Layer Control panel with nested groups of layers (tree)

                              I have been using the plugins grouped layer control and styled layer control, but I often want to be able to have sub-categories of overlay layers - much like the way a program like ArcGIS allows --- for example, if my main layer categories are Basemaps, Adminstrative Boundaries, Demographics, Transportation, I would like to be able to have a Race/Ethnicity subgroup, with "Percent non-hispanic white", "Percent non-hispanic black", etc, and also an "Income subgroup" with multiple layers. The key is that they would be all be branches under the "Demographic" tree, and could be easily minimized so as to not…

                              10 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…)
                              • scrollwheelZoomOffset just, like keyboardZoomOffset

                                I am trying out the new leaflet version with fractional zoom. I can now set the zoom level to for example 12.5. That is perfect. And when enabling the keyboard (+ and - keys) for zooming, I can also set the keyboardZoomOffset. When I set it to 0.5 and press the + key, the new zoom level will be 13.0.
                                Unfortunately, this option is not available for scrolling with the mouse wheel. The delta used (calculated) there is always a whole number (1 in my case). This step is too big for our application. I would like to have the…

                                4 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 →
                                • Enable compression for the CDN resource

                                  This is from PageSpeed Insights. Turning on gzip would be great. Thanks!

                                  Compressing resources with gzip or deflate can reduce the number of bytes sent over the network.
                                  Enable compression for the following resources to reduce their transfer size by 89.7KiB (73% reduction).
                                  Compressing http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.js could save 89.7KiB (73% reduction).

                                  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…)
                                  • windows 10 touch usability

                                    Touch usability for windows 10 / edge

                                    3 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…)
                                    • Co-operation between maxBounds and the plugin ControlledBounds

                                      When a great part of the map is occluded by Leaflet Controls (both native and custom) the ControlledBounds plugin is vital in keeping the map useable. However, when the function setMaxBounds is used for restricting the user from harmful map panning, the map bounce ignores the effect of the ControlledBounds plugin. This renders the panning restriction almost useless especially on mobile devices.

                                      Also, a couple of other things would make maxBounds functionality better:

                                      It would be beneficial if the LatLngBounds padding could also be set added as a geographical distance.

                                      The map could prevent the map view center (not the…

                                      3 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…)
                                      • Leafletbee

                                        You may visit our website and also get idea. We are leaflet distribution company on Gloucester city in UK. We design eye catching and actionable leaflets which have an instant impact as soon as they go through the door.
                                        http://leafletbee.co.uk/

                                        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…)
                                        • EDY NOR INTERPRISE

                                          PUSAT PERUBATAN
                                          TRADITIONAL

                                          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…)
                                            1 comment  ·  Admin →
                                          ← Previous 1 3 4 5 8 9
                                          • Don't see your idea?

                                          Ideas and Suggestions for Leaflet

                                          Feedback and Knowledge Base