Code Monkey home page Code Monkey logo

silverstripe-openlayers3's Introduction

OpenLayers 3

Introduction

This module is a wrapper for the OpenLayers 3 javascript library to be used in the Silverstripe framework. You can create maps in the CMS, add layers and style features. You get a OL3Map DataObject e.g. to be used in your custom page types.

Requirements

  • SilverStripe 3.1

Installation

Installation can be done either by composer or by manually downloading the release from Github.

After installation, make sure you rebuild your database through dev/build.

Links

Features

This module is a work in progress and only supports a subset of the many feature of the js lib, but it is built in a way that it can be extended to implement missing features.

Supported Features

  • Open Street Map layers
  • Tile layers
  • Vector layers
  • WFS sources in XML or GeoJSON format for vector layers

Extending the module

The basic idea is that the Openlayers3 structure is tightly wrapped in PHP. E.g. you will find that a lot of the class names and properties of the Openlayers3 JS lib can be found in the PHP code. All the data entered in the CMS to configure the view, layers and styles are collected in the OL3Map class and pushed to the browser throught its methods OL3Map::JsonView(), OL3Map::JsonLayers() and OL3Map::JsonStyles(). The extendable javascript that reads this information uses generic factories to create the Openlayers3 objects that make up your map.

silverstripe-openlayers3's People

Contributors

andreaspiening 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.