Git Product home page Git Product logo

aerogear-cordova-geo's Introduction

AeroGear Geo Plugin

Project Info
License: Apache License, Version 2.0
Build: Cordova Plugin
Documentation: https://aerogear.org/docs/specs/aerogear-cordova/
Issue tracker: https://issues.jboss.org/browse/AGCORDOVA
Mailing lists: aerogear-users (subscribe)
aerogear-dev (subscribe)

This plugin is a collection of tools to make you live easier when using geo posistioning. It provides options to easly create maps that are based openlayers and adds some helpers to do some typical things when developing mobile applications.

For instance:

  var options = {
  	element: 'map', // id of the div element to render the map in, default is map 
    accuracy: true, // create a circle that indicates the accuracy of the posistion
    compass: true   // use compass to indicate the dirction the device is facing
  };
  var map = new AeroGear.Map(options);
  map.watchPosition(); // start watching the posistion of the device

Or you want the user to define how big the geo fence must be when he comes near his found restaurant:

  var map = new AeroGear.Map();

  // the location of the restaurant
  var restaurant = new OpenLayers.LonLat(5.43, 52.132).transform(
      new OpenLayers.Projection("EPSG:4326"),
      map.getProjectionObject()
  );

  // draw a marker where on the location of the restaurant
  map.drawMarker(restaurant);

  // editable geo fence with an initial radius of 1000 meters
  map.drawGeoFence(restaurant, 1000);

Documentation

For more details about the current release, please consult our documentation.

Development

If you would like to help develop AeroGear you can join our developer's mailing list, join #aerogear on Freenode, or shout at us on Twitter @aerogears.

Also takes some time and skim the contributor guide

Questions?

Join our user mailing list for any questions or help! We really hope you enjoy app development with AeroGear!

Found a bug?

If you found a bug please create a ticket for us on Jira with some steps to reproduce it.

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.