GithubHelp home page GithubHelp logo

vonwenm / angular-openlayers-directive Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tombatossals/angular-openlayers-directive

0.0 2.0 0.0 15.9 MB

AngularJS directive to embed an interact with maps managed by the OpenLayers library

Home Page: http://tombatossals.github.io/angular-openlayers-directive/

License: MIT License

JavaScript 99.06% CSS 0.94%

angular-openlayers-directive's Introduction

angular-openlayers-directive

Build Status semantic-release npm version

Work in progress.

AngularJS directive for the OpenLayers (version 3) Javascript Library. This software allows you to embed maps managed by openlayers on your AnguarJS or OpenLayers project. It's a good starting point to learn the Openlayers API too.

Let's start with some basic examples. Look at the source code of the example to see all the code you need to embed a similar interactive map on our page.

You can take a look at the current documentation go get a more detailed explanation of how it works and what you can accomplish with this directive:

Install

Build the files yourself, download from bower

$ bower install angular-openlayers-directive --save

or from npm

$ npm install angular-openlayers-directive --save

Quick start: How to use it

First of all, load AngularJS and Openlayers(V3) in your HTML.

After that, you must include the openlayers-directive dependency on your angular module:

var app = angular.module("demoapp", ["openlayers-directive"]);

The default behaviour will show an OpenstreetMap layer and the zoom and attributions controls, but you can customize those default vaules to fit your needs. Furthermore, you can set a bi-directional update of values between the map and the variables of your controler. This way you can interact easily with the map. Example:

angular.extend($scope, {
    center: {
        lat: 51.505,
        lon: -0.09,
        zoom: 8
    }
});

Finally, you must include the markup directive on your HTML page, like this:

<openlayers ol-center="center" height="480px" width="640px"></openlayers>

Contributing

Contributions are more than welcome. Please refer to the contributions guidelines for more details on code style, development life-cycle etc.

angular-openlayers-directive's People

Contributors

aitor1995 avatar amine-chraibi avatar andreas-gasser avatar benverhees avatar blootsvoets avatar christianbeilschmidt avatar claustres avatar davinkevin avatar diazg avatar dmishne avatar dpappalardo-cirb avatar geripgeri avatar haiiro-shimeji avatar humaknight avatar jenslohmann avatar juristr avatar kilimangaro avatar kratosmat avatar lewisjared avatar mfdev1 avatar milafrerichs avatar nbiton avatar nblu avatar nblumire avatar ndufrane avatar pedrazl avatar samtux avatar supersonicclay avatar tombatossals avatar whitelynx 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.