Giter Site home page Giter Site logo

leafelt-geoman-styleeditor's Introduction

leafelt-geoman-styleeditor

集成以下三个leaflet插件

  1. https://github.com/geoman-io/leaflet-geoman
  2. https://github.com/dwilhelm89/Leaflet.StyleEditor
  3. https://github.com/makinacorpus/Leaflet.TextPath

感谢原作者创造如此美好的插件!

  1. 在Leaflet.StyleEditor中增加了监听geoman创建新图形的接口,使得创建完图形即可设置样式,
  2. 在leaflet-geoman中修改了默认marker图标,使得与Leaflet.StyleEditor默认图标一致,
  3. 在leaflet-geoman中添加一种单线段,可在上面显示距离,距离计算使用的leaflet默认方法的distanceTo,长距离计算是否按大地线,请自行研究
  4. 因为引入Leaflet.TextPath,所有polyline类型的图形即可继承Leaflet.TextPath方法样式设置沿线文字
  5. 继承以上三个事件中所有events,请自行查看源文档
  6. demo中的index.html简单示例

Image text

demo

leafelt-geoman-styleeditor's People

Contributors

weizhixiang avatar

Stargazers

Pablo Alexis Valdivia Muñoz avatar

Watchers

James Cloos avatar

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.