Git Product home page Git Product logo

shareloc's Introduction

Shareloc

The free and open map API to create and share web maps based on OpenLayers.

license: 3-Clause BSD

Watch the online demo at https://apps.meggsimum.de/shareloc/

ScreenShot

At the moment there are a few free map layers based on open data included in the online demo. But it is easily possible to include your own layers (e. g. WMS) in your Shareloc instance (see section Build and deploy your own Shareloc instance).

Create maps without coding via web application

With Shareloc it is possible to create your OpenLayers web map without any coding. With the Shareloc web application you can

  • configure your map view
  • add a marker to point at a special place and
  • optionally add a text in a bubble to your marker.

Afterwards you can share your map by a simple link or embed the map in your own website.

Use Shareloc JavaScript API

Shareloc offers an easy-to-use JavaScript API to create your own OpenLayers maps. Therefore you just have to include the Shareloc JavaScript lib into your HTML page. Now with a few lines of code it is possible to create a customized OpenLayers map.

var api = new Shareloc.MapApi();
var params = {
    // lon of map center
    X: 8.318049976895958,
    // lat of map center
    Y: 49.43451657605041,
    // initial map zoom level
    zoom: 14,
    // layer
    bgLayer: "osm.base"
};
// create and return your ol3 map instance
var olMap = api.map(params);

Check out the API docs to see all possibilities Shareloc offers.

Build and deploy your own Shareloc instance

  • Clone this repository
  • npm and grunt need to be installed on your system
  • npm install
  • grunt build
  • Copy the build folder to your webserver
  • Optonally you can edit the build/conf/layers.json file to add your own layers to Shareloc
  • That's it

Development

  • Fork and clone this repository
  • npm and grunt need to be installed on your system
  • Run npm install on command line
  • Run grunt on command line
  • Open http://localhost:7000/ or http://localhost:7000/share.html in your browser to see the development version of Shareloc
  • In case you changed the HTML templates under tpl/ please restart the server with the commands CTRL + C and grunt

Contributions welcome

Any kind of contribution is warmly welcome:

  • Documentation
  • Bug reporting
  • Bug fixes
  • Code enhancements

Credits

Thanks to all map providers, who grant free access to their maps, which are used in the online demo:

Who do I talk to?

You need more information or support? Please contact us at

info__(at)__meggsimum__(dot)__de

shareloc's People

Contributors

chrismayer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

shareloc's Issues

Images for README

This issue acts as container for images which can be embedded in the README.

shareloc-screenshot

add visible buffer for poi

when adding a location marker it would be nice to have a option for generating a circular buffer. Like a checkbox for enabling the buffer and a input field for adjusting the buffer radius (500m, 1km,...)

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.