Code Monkey home page Code Monkey logo

Comments (2)

ismyrnow avatar ismyrnow commented on August 23, 2024

The control button looks to be 26x26 for me. I'm using Chrome 47 on Windows 8.

from leaflet-measure.

brandoncopeland avatar brandoncopeland commented on August 23, 2024

@DrYSG Do you have an example of a plugin sized 26 x 26?

It looks like maybe Mapbox.js controls are 26 x 26 - https://github.com/mapbox/mapbox.js/blob/v2.2.2/theme/style.css#L418.
But I think the 36 x 36 size matches the current Leaflet style - https://github.com/Leaflet/Leaflet/blob/v0.7.7/dist/leaflet.css#L283.

I would like to match the Leaflet source where possible. Mapbox.js is popular enough that I think also adding a Mapbox specific theme to this project would be cool. This would include resizing control toggles to the smaller 26 x 26 size. Otherwise, users can always include their own stylesheet in projects using leaflet-measure to size any way they like.

from leaflet-measure.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.