Skip to content

Instantly share code, notes, and snippets.

@elemoine
elemoine / README.md
Created October 8, 2014 12:08
OpenLayers 3 – clip layer with geometry

OpenLayers 3 – clip layer with geometry

This gist shows how to clip a layer with a geometry, i.e. a shape with geographical coordinates.

@elemoine
elemoine / README.md
Last active August 29, 2015 14:07
OpenLayers 3 – create a mask on shift-drag

This gist shows how to create a mask on the map using shift-drag. This is in response to a question on the ol3-dev mailing list.

@elemoine
elemoine / README.md
Last active January 5, 2018 06:52
OpenLayers 3 Google Maps API

Use OL3 and Google Maps together

This GIST provides an example of a Google Maps map with an OL3 map as control, to give users a Google base map with OL3 content on top.

Open the corresponding bl.ock to view the example in your browser.

Warning!

@elemoine
elemoine / index.html
Last active December 17, 2015 06:19
Example of an Angular directive for ol3.
<!DOCTYPE html>
<html ng-app='app'>
<head>
<meta charset=utf-8">
<link rel="stylesheet" href="http://ol3js.org/ol3/master/build/ol.css" type="text/css">
<style>
.map {
width: 600px;