Git Product home page Git Product logo

atlas's Introduction

Atlas

A simple map services engine developed for KATSANA™.

Installation

Coming soon!

Import

Once install, you should be able to easily import the library using the following:

const Atlas = require('./atlas.js');

window.Atlas = Atlas;

Configuration

Using Mapbox

L.mapbox.accessToken = 'xyz';

Atlas.config({
  mapbox: {
    accessToken: L.mapbox.accessToken,
    styles: {
      Street: 'mapbox.street'
    }
  }
})

Using Google

Coming soon!

Getting Driver

Atlas uses the concept of driver to make it easier for developer to swap between Google Map Developer API with Mapbox Developer API.

const google = (new Atlas()).driver('google');
const mapbox = (new Altas()).driver('mapbox');

Usages

Creating a Map

let canvas = mapbox.newCanvas('map', {});

Creating a Position

let position = mapbox.newPosition(3.161907, 101.617954)

Creating a Routing

let routing = mapbox.newRouting(canvas, {});
routing.start(position);

atlas's People

Contributors

crynobone avatar dependabot[bot] avatar

Stargazers

HG avatar iReka Soft avatar

Watchers

 avatar James Cloos avatar Fuqaha avatar Izuddin Helmi avatar  avatar

atlas's Issues

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.