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. 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…)
    • 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

      33 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?

        109 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…)
        • Convert a Collection of Polylines to Polygons

          I would like a function that will take a collection of polylines and convert it to one or more polygons.

          This would be fine a Leaflet plugin/extension.

          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…)
          • Server side clustering

            Would be nice to have a plugin which somehow helps with implementing server side clustering. The existing client side clustering solutions don't work if data set is very large, e.g. more than 100 000 K.
            Something like this: https://github.com/Leaflet/Leaflet.markercluster/issues/217, would be nice.

            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…)
            • virtual polyline thickness for mouseover

              If the polyline is very thin (1-3px), heavy to focus with the mouse over polylines. Also heavy to the touch. Comfortable thickness for projects is 6px and more, but not aesthetic appearance if very many lines .
              Is it possible to add a property for polylines (eg weight_mouseover, where weight_mouseover > = weight) virtual polyline thickness for mouseover?

              P.S. With the polygon and marker problems do not arise. Thank you.

              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…)
              • PT.ADYAWINSA

                192.168.015/devosa/

                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…)
                • Method to return the shortest path between A and B given an array of coords.

                  Given an array of coords and two Points, return the shortest path from point A to point B using a minimal spanning tree created from the array parameter.

                  The return value would be an array of coords, in order, that represent the vectors that must be taken to achieve the shortest path.

                  This method would be useful for graphing, routing on maps that do not use real world geography, or maps have no real road data.

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

                                          Ideas and Suggestions for Leaflet

                                          Feedback and Knowledge Base