Code Monkey home page Code Monkey logo

geojs's Introduction

GeoJS

The GeoJS library is a collection of Geospatial types and utility functions designed to make the process of writing a spatial JavaScript app achievable on both the client and the server (via NodeJS). The project was started as a result of extracting the core types and bridging functions out of Tile5.

The Core Types

To be completed

Plugin Architecture

The core of GeoJS focuses just the core types required to get things working, and then provides a number of plugins designed to add different pieces of functionality. The plugins are designed to work on both the client and the server, and can be activated using the following command:

GeoJS.plugin('addressing', function(err, addressing) {
	// parse the address from finding nemo :)
	var parsedAddress = addressing.parse('42 Wallaby Way, Sydney, Australia');
});

For the plugin to work effectively on the client, then you must include the plugin JS file after you have included the main geojs.js file. In time we may use something like $LABjs to dynamically load the module

<script src="https://raw.github.com/DamonOehlman/geojs/master/lib/geojs.js"></script>
<script src="https://raw.github.com/DamonOehlman/geojs/master/lib/plugins/addressing.js"></script>

Plugin Directory

A plugin directory is available in the wiki

Writing a Plugin

To be completed

Tests

A Vows test suite is included in the repository. Simply run node test/main to execute the suite. (NOTE: Not all tests pass at the moment, and more tests need to be written).

Internationaliztion

At present, GeoJS does not support languages other than English. The general structure of the library has been built to support plugging in other languages, and it is definitely something that I hope to look at in time.

geojs's People

Contributors

damonoehlman avatar

Stargazers

 avatar

Watchers

 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.