Skip to content

freedraw #947

Jul 2, 2021 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

If you want all functions of FreeDraw (mergin, editing, ... ) it is not so easy to implement. but if you want only the free-drawing part you can do following:

    <script src="https://rawgit.com/Wildhoney/Leaflet.FreeDraw/master/dist/leaflet-freedraw.iife.js"></script>
    <style>
      .map.mode-create {
        cursor: crosshair;
      }

.leaflet-pm-toolbar .icon-freedraw{
        background: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/PjwhRE9DVFlQRSBzdmcgIFBVQkxJQyAnLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4nICAnaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkJz48c3ZnIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDEyOCAxMjgiIGhlaWdodD0iMTI4cHgiIGlkPSJMYXllcl8xIiB2ZXJzaW9uPSI…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@lmdc45
Comment options

Answer selected by lmdc45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants