Giter Site home page Giter Site logo

angular-daum-map's Introduction

angular-daum-map

angular-daum-map is a directive for AngularJS to wrap Daum Map.

Dependencies

angular-daum-map requires AngularJS and Daum Map. Please include line below in index.html.

<script type="text/javascript" src="http://apis.daum.net/maps/maps3.js?apikey=your_api_key"></script>

Getting Started

Installation

To use Bower package manager:

bower install angular-daum-map

Using Grunt or Gulp, angular.map.js file will be automatically appended to index.html upon build. If you do not use package manager, clone this repository and manually add angular-daum-map.js file to index.html.

Usage

<daum-map center="map.center" draggable="map.draggable" level="map.level" map-type-id="map.mapTypeId" events="events">

where map is a scope variable:

$scope.map = {
  center: {
    latitude: your_latitude,
    longitude: your_longitude
  },
  draggable: true, // or false
  level: 7, // zoom lovel from 1 to 9
  mapTypeId: daum.maps.MapTypeId.ROADMAP // refer to Daum Map Documentation for further info
}

You also have to style the height of the following div:

<div class="angular-daum-map-container"></div>

Contribution

  1. Edit tag version in package.json and bower.json
  2. gulp build
  3. Create a pull request
  4. Release with a new version tag

angular-daum-map's People

Contributors

arfarf89 avatar essemfly avatar hyungsul avatar

Watchers

 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.