Coder Social home page Coder Social logo

devendroid / mapdrawingmanager Goto Github PK

View Code? Open in Web Editor NEW
56.0 6.0 10.0 9.88 MB

MDM is a library with the help of we can draw many different shapes like polygon, polyline and many more on the google map with editable mode.

License: Apache License 2.0

Kotlin 100.00%

mapdrawingmanager's Introduction

Map Drawing Manager

Android Arsenal

MDM is a library with the help of we can draw many different shapes like polygon, polyline and many more on the google map with editable mode.

Key Features:

  • Draw any shape by touch on map
  • Resize any shape by drag
  • Remove any individual or all shapes from map
  • Auto calculate the size of shapes drawn on map
  • Customize shapes properties like color, stroke etc
  • Easy callbacks for shapes draw, update and remove

Sample app using MDM:

MapDrawingManager

Dependency

  • Add it in your root build.gradle at the end of repositories
   allprojects {
       repositories {
    	...
    	maven { url 'https://jitpack.io' }
    	}
    }
  • Add the dependency
    dependencies {
         implementation 'com.github.devendroid:MapDrawingManager:1.0.0'
     }

Usage

// Simple Initialization
supportMapFragment.getMapAsync { googleMap ->
     val mapDrawingManager = MDMBuilder(baseContext).withMap(googleMap).build()
     mapDrawingManager?.removeListener = this //OnShapeRemoveListener
     mapDrawingManager?.drawListener = this //OnShapeDrawListener
     mapDrawingManager?.shapeType = ShapeType.POLYGON
 }

License

Copyright 2018 Deven Singh

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

mapdrawingmanager's People

Contributors

devsideal avatar

Stargazers

 avatar Pankaj Kumar Jain avatar  avatar Alfarobi avatar  avatar Ali Rahmat Ismail avatar Samir Alakbarov avatar  avatar Akash Das avatar  avatar  avatar  avatar Chayaphon Pansuwan avatar Hashim Tahir avatar changjiashuai avatar Mohsin Ahmed Khan avatar  avatar  avatar Abdullah Essam avatar Line'R avatar Janak Kumar avatar coder avatar 李小义 avatar hawskpy avatar Mohammad Barati avatar  avatar ScriptGO avatar Robert Gyerak avatar  avatar Thens Wong avatar Wangxinyu avatar Bad leadership avatar KongJing avatar  avatar Walter Juan avatar Reborn avatar 脉脉不得语 avatar xiawei avatar Mayur Sakhiya avatar nenka.lab avatar Joshi Tushar avatar Sajjad Yousefnia avatar Malek Hijazi avatar Bhargav Pandya avatar Simone Bellotti avatar Deni Rohimat avatar Nisarg avatar Igor Zubkov avatar  avatar Edvinas Sakatauskas avatar |))EV/EN avatar Enzo Lizama Paredes  avatar Pranav Lathigara avatar  avatar amin avatar Evert Moreno avatar

Watchers

James Cloos avatar coder avatar changjiashuai avatar |))EV/EN avatar  avatar  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.