This gist shows how to clip a layer with a geometry, i.e. a shape with geographical coordinates.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# https://gist.github.com/elemoine/27748e205d36a9006190 | |
# Install packages. | |
sudo apt-get install kvm cloud-utils | |
# Download an Ubuntu cloud image. | |
wget http://cloud-images.ubuntu.com/releases/14.04/release/ubuntu-14.04-server-cloudimg-amd64-disk1.img -O disk.img.dist | |
# Create user-data file for devstack. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"attributes": { | |
"map": { | |
"dpi": 72, | |
"center": [ | |
681185, | |
6412222 | |
], | |
"projection": "EPSG:3857", | |
"scale": 10000, |
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.
NewerOlder