Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
#!/usr/bin/env ruby | |
# This Rules file is an attempt at a near zero configuration for the common | |
# use cases when creating a simple site with nanoc. It's meant to have | |
# better defaults so new users don't have to configure it much if at all. | |
# For the most part, it copies all files from the content folder to the | |
# output folder with the same name. It has the following features: | |
# | |
# * Certain predefined page extensions such as html, haml, md, markdown and | |
# textile are routed to "clean" URI's (see below regarding Item identifiers). |
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
# Leaflet layer that retrieves tiles from an ArcGIS REST Map Service. | |
# | |
# The 'typical' way to use the ESRI/ArcGIS Server REST API is to request | |
# a single map image for the entire screen (as seen in the esri-leaflet.js | |
# DynamicMapLayer class https://github.com/Esri/esri-leaflet). | |
# That method is slow and the esri-leaflet implementation uses L.ImageOverlay, | |
# which doesn't mix well with Leaflet TileLayers. | |
# The implementation here instead is based on L.TileLayer and uses the | |
# ESRI REST API "export" method to get multiple images as tiles. | |
L.EsriRestTileLayer = L.TileLayer.extend( |
NewerOlder