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
Ext.namespace("GeoExt.ux"); | |
GeoExt.ux.PrintPreview = Ext.extend(Ext.Container, { | |
paperSizeText: "Format:", | |
resolutionText: "Resolution:", | |
printText: "Print", | |
emptyTitleText: "Enter map title here.", | |
emptyCommentText: "Enter comments here.", | |
emptyFooterText: "Enter map footer here.", | |
creatingPdfText: "Creating PDF...", | |
includeLegendText: "Include legend?", |
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
/** | |
* Copyright (c) 2008-2009 The Open Source Geospatial Foundation | |
* | |
* Published under the BSD license. | |
* See http://svn.geoext.org/core/trunk/geoext/license.txt for the full text | |
* of the license. | |
*/ | |
/** | |
* @requires GeoExt/plugins/PrintExtent.js | |
*/ |
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
sudo apt-get install python-software-properties | |
sudo add-apt-repository ppa:chris-lea/node.js | |
sudo apt-get update | |
sudo apt-get install make gcc+ git unzip openjdk-6-jre openjdk-6-jdk g++ nodejs python-virtualenv | |
sudo npm install -g phantomjs |
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 | |
sudo apt-get install axel unzip -y | |
mkdir -p geoserver/plugins | |
cd ~/geoserver | |
axel http://ares.boundlessgeo.com/geoserver/2.5.x/geoserver-2.5.x-latest-war.zip | |
unzip geoserver-2.5.x-latest-war.zip | |
sudo cp geoserver.war /var/lib/tomcat7/webapps | |
sudo service tomcat7 restart | |
cd plugins | |
axel http://ares.boundlessgeo.com/geoserver/2.5.x/geoserver-2.5-SNAPSHOT-app-schema-plugin.zip |
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
(function($){ | |
$.widget("ui.mywidget", { | |
options: { | |
autoOpen: true | |
}, | |
_create: function(){ | |
// by default, consider this thing closed. |
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
cd ~ | |
mkdir -p src | |
# First install PostgreSQL 9.3, plus contributed packages and any missing prerequisites | |
# === | |
# the following is necessary on 13.04 (and possibly 12.10?) | |
sudo apt-get install postgresql-common --target-release raring | |
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
var replaceNthMatch = function (original, pattern, n, replace) { | |
var parts, tempParts; | |
if (pattern.constructor === RegExp) { | |
// If there's no match, bail | |
if (original.search(pattern) === -1) { | |
return original; | |
} |
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
goog.provide('ol.widget.LayersSwitcher'); | |
goog.require('goog.dom'); | |
goog.require('goog.dom.TagName'); | |
goog.require('goog.events'); | |
goog.require('goog.events.EventType'); | |
goog.require('ol.dom.Input'); | |
goog.require('ol.widget.Widget'); | |
ol.widget.LayersSwitcherProperty = { | |
HEADER: 'Layers', |
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
goog.addDependency('https://gist.githubusercontent.com/gpprojekt/27cbd8fc7614284185fa/raw/cb8c4185bb02bdb2916f1d690239b022f76d7d5a/widget.js', ['ol.widget.Class', 'ol.widget.Widget'], ['goog.array', 'goog.dom', 'goog.dom.classes', 'goog.events', 'goog.style', 'ol.MapEventType', 'ol.Object', 'ol.css']); | |
goog.addDependency('https://gist.githubusercontent.com/gpprojekt/27cbd8fc7614284185fa/raw/fafb3df1ce9dcf52be6993e70d8a8175831ecb75/layerswidget.js', ['ol.widget.LayersSwitcher'], ['goog.dom', 'goog.dom.TagName', 'goog.events', 'goog.events.EventType', 'ol.dom.Input', 'ol.widget.Widget']); |
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 |
OlderNewer