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. Add method to determine if a point is contained by a polygon

    It would be useful to be able to determine if a point is contained within a polygon.

    Right now one can do a contains check against a layer's bounds, but this results incorrect results if the layer is a polygon which is not a perfect rectangle following the N/S E/W axis.

    12 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…)
    • Map wide time support

      There should be time support synchronized for all layers displayed on the map. This would also enable time based animations of layers.

      For example display WMS weather forecast. There could be an animation showing a layer for cloud cover and another one for precipitation for the next 48 hours.

      12 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…)
      • Add a setTitle() method to Marker

        I can find no way to dynamically update the title for a marker after it's been created. Changing options.title followed by a call to update() doesn't seem to work. Thank you!

        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…)
          1 comment  ·  Admin →
        • Moving Marker to Border would scroll the map

          When I move with Mouse a Marker towards a border, the map wuld scroll in background upwards or downards, depending where i go with the marker up or down. Google map has this feature whtin Route function. Doing so, the zoom ration can be larger

          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…)
          • 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…)
            • zoom & pan animation

              I love the pan animation method, but I'd like it to also zoom to a particular zoom level during the same animation.

              I've use Leaflet in a app where the map loads on a global level, and then as soon as the browser finds the user's location, it centers on his location at a tighter zoom. Would love to see this process animate.

              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…)
              • 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…)
                • lineToLayer Method for L.GeoJson

                  I am using Leaflet.draw to place various Objects on a GeoJSON Layer. When a new object is added I extract the GeoJSON by using the toGeoJSON Method. After that I add some properties to the JSON, for example the radius of a circle, so I am later able to load the GeoJSON back into leaflet and create a circle instead of a marker. This happens with a callback function as the pointToLayer option on the L.GeoJSON class.

                  But I'm having a hard time doing the same thing for Rectangles, because there is no way to decide which Layer to create…

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

                    Display geotagged Identica/Twitter feeds.

                    Identica works well in Google maps but Twitter locations are not specific when displayed (appear as polygons)?

                    8 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…)
                    • WebGL 3D Canvas

                      3D maps with support for terrain and building models.

                      8 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…)
                      • CRS mixup

                        Hi,

                        what really confused me yesterday was the mix of different CRS in the GeoJSON example. First, you have the background map, which uses EPSG:3857, then the GeoJSON, which needs to be in EPSG:4326. For me it was obvious, since the background map beeing in Web Mercator, the GeoJSON data need to be in Web Mercator too. I really had some struggle to make my points appear on the map.

                        Maybe there should be some more obvious hints in the documentation what kind of CRS is expected by default from each layer type.

                        Nevertheless, great product :-)

                        Frank

                        8 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…)
                        • Use with svg image

                          Instead of map, I would like to use my own svg image as map canvas. Is it possible?

                          8 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…)
                          • ability to override tile loading procedure

                            Right now it seems that all tiles are loaded from an address/file.
                            It would be nice if one could override a file loading function (like in polymaps). This way one could generate tiles procedurally (like in this example: http://polymaps.org/ex/mandelbrot.html#1.00/0/0). Another use case would be if tiles are loaded out of some archive (like mbtiles) on the javascript side.

                            I have a use case where most of my tiles are of a single color. I don't want to store any of them (on device) because they use 8KB per file, even if the file is only 103 bytes. If one…

                            8 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…)
                            • Support Multipoint and other type of Multies gonna be awsome

                              If you supports Multipoint and other Type of Multies It's became very good.

                              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…)
                              • Layers control click events

                                Maybe it exists and I've missed it, but I'd like to see layers control clicks. This is to help me synchronize a rather rich sidebar, and hide/show elements there based on the user's layer selection.

                                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…)
                                • Marker transition effect on update of latlng

                                  When working with markers and updating the latlng and calling .update() on it it would be nice to see the marker move smoothly and not pop from one place to the other

                                  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…)
                                  • 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…)
                                    • 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 →
                                      • An event on marker "drag halted"

                                        Currently there are "dragend" which is fired when the user releases the mouse, and "drag" which is fired for every minimal change of a marker position. It would be useful to have an event fired when a user has stopped moving the marker, but has not released the mouse yet.

                                        Usecase: I am building a map ( http://getpeers.com ) where users can find routes. When a user moves around a point on the route, the route should automatically update reflecting the new destination.

                                        Why "drag" won't work: would send too many requests all at once.
                                        Why "dragend" won't work: when…

                                        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…)
                                        • linejoin and linecap

                                          Give the ability to set the stroke-linejoin and stroke-linecap in the L.Path options for more customization (keeping the "round" as default).

                                          5 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…)
                                          • Don't see your idea?

                                          Ideas and Suggestions for Leaflet

                                          Feedback and Knowledge Base