This file contains hidden or 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
/** | |
* Layer with a style that provides symbolizers for | |
* the "selected" render intent defined elsewhere. | |
*/ | |
function highlight(feature) { | |
feature.setRenderIntent('selected'); | |
} |
This file contains hidden or 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
var path = require('path'); | |
var url = require('url'); | |
var log = require('npmlog'); | |
var closure = require('closure-util'); | |
log.info('serve', 'Parsing dependencies ...'); | |
var root = '.'; // assumes you're running this from ol3 repo |
This file contains hidden or 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
CWD=`pwd` | |
SELF=$0 | |
cd `dirname $SELF` | |
SELF=`basename $SELF` | |
# Iterate down a (possible) chain of symlinks | |
while [ -L "$SELF" ] | |
do |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
goog.require('ol.Feature'); | |
goog.require('ol.Map'); | |
goog.require('ol.RendererHint'); | |
goog.require('ol.View2D'); | |
goog.require('ol.geom.Point'); | |
goog.require('ol.layer.TileLayer'); | |
goog.require('ol.layer.Vector'); | |
goog.require('ol.parser.GeoJSON'); | |
goog.require('ol.projection'); | |
goog.require('ol.source.MapQuestOpenAerial'); |
This file contains hidden or 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
function mapFunc() { | |
var i, ii, key, doc, service; | |
for (i = 0, ii = this.resources.length; i < ii; ++i) { | |
key = this.resources[i]; | |
doc = { | |
services: {} | |
}; | |
service = this.service || ''; | |
doc.services[service] = 1; | |
emit(key, doc); |
This file contains hidden or 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
/** | |
Time series generator. This generates a series of times (as seconds since | |
the epoch) between any two start and end time values (also seconds since | |
the epoch). The $1 value can be 'second', 'minute', 'hour', 'day', 'week', or | |
'month'. The $2 and $3 values are start and end time respectively (in seconds | |
since the epoch. | |
*/ | |
select date_part('epoch', date_trunc($1, to_timestamp($2)) + concat(tmp.index, $1)::interval) as time from generate_series( | |
0, | |
case |
This file contains hidden or 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
var layer = new ol.layer.TileLayer({ | |
source: new ol.source.MapQuestOpenAerial() | |
}); | |
var map = new ol.Map({ | |
center: new ol.Coordinate(0, 0), | |
layers: new ol.Collection([layer]), | |
renderer: ol.RendererHint.DOM, | |
target: 'map', | |
zoom: 2 |
This file contains hidden or 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
http -a <your-username> POST https://api.github.com/repos/<remote-user>/<repo-name>/pulls issue=<issue-number> head=<your-username>:<your-branch> base=master |
This file contains hidden or 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
/** | |
* Demonstrates how a JavaScript iterator can be created with Rhino. This | |
* simple Range class can be defined as a JavaScript constructor. | |
* | |
* Example use: | |
* | |
* >> // set up Range constructor and prototype | |
* >> defineClass(Packages.com.example.Range) | |
* | |
* >> var range = new Range(3, 5) |