Merge branch 'master' into zoom
This commit is contained in:
+8
-4
@@ -51,10 +51,14 @@ def build(config_file = None, output_file = None, options = None):
|
|||||||
outputFilename = output_file
|
outputFilename = output_file
|
||||||
|
|
||||||
print "Merging libraries."
|
print "Merging libraries."
|
||||||
if use_compressor == "closure":
|
try:
|
||||||
sourceFiles = mergejs.getNames(sourceDirectory, configFilename)
|
if use_compressor == "closure":
|
||||||
else:
|
sourceFiles = mergejs.getNames(sourceDirectory, configFilename)
|
||||||
merged = mergejs.run(sourceDirectory, None, configFilename)
|
else:
|
||||||
|
merged = mergejs.run(sourceDirectory, None, configFilename)
|
||||||
|
except mergejs.MissingImport, E:
|
||||||
|
print "\nAbnormal termination."
|
||||||
|
sys.exit("ERROR: %s" % E)
|
||||||
|
|
||||||
print "Compressing using %s" % use_compressor
|
print "Compressing using %s" % use_compressor
|
||||||
if use_compressor == "jsmin":
|
if use_compressor == "jsmin":
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ var streets = new OpenLayers.Layer.XYZ(
|
|||||||
|
|
||||||
var map = new OpenLayers.Map({
|
var map = new OpenLayers.Map({
|
||||||
div: "map",
|
div: "map",
|
||||||
projeciton: "EPSG:900913",
|
|
||||||
layers: [streets],
|
layers: [streets],
|
||||||
controls: [
|
controls: [
|
||||||
new OpenLayers.Control.Attribution(),
|
new OpenLayers.Control.Attribution(),
|
||||||
|
|||||||
@@ -685,7 +685,9 @@ OpenLayers.Popup = OpenLayers.Class({
|
|||||||
// 'img' properties in the context.
|
// 'img' properties in the context.
|
||||||
//
|
//
|
||||||
var onImgLoad = function() {
|
var onImgLoad = function() {
|
||||||
|
if (this.popup.id === null) { // this.popup has been destroyed!
|
||||||
|
return;
|
||||||
|
}
|
||||||
this.popup.updateSize();
|
this.popup.updateSize();
|
||||||
|
|
||||||
if ( this.popup.visible() && this.popup.panMapIfOutOfView ) {
|
if ( this.popup.visible() && this.popup.panMapIfOutOfView ) {
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ As an example, using bash (with the release files in ~/openlayers):
|
|||||||
The [examples directory](http://openlayers.org/dev/examples/) is full of useful examples.
|
The [examples directory](http://openlayers.org/dev/examples/) is full of useful examples.
|
||||||
|
|
||||||
Documentation is available at http://trac.osgeo.org/openlayers/wiki/Documentation.
|
Documentation is available at http://trac.osgeo.org/openlayers/wiki/Documentation.
|
||||||
You can generate the API documentation with http://www.naturaldocs.org/:
|
You can generate the API documentation with http://www.naturaldocs.org/
|
||||||
As an example, using bash (with the release files in ~/openlayers):
|
As an example, using bash (with the release files in ~/openlayers):
|
||||||
|
|
||||||
$ cd ~/openlayers/
|
$ cd ~/openlayers/
|
||||||
|
|||||||
@@ -141,7 +141,7 @@ Test.AnotherWay.quicksearch = function(){
|
|||||||
Test.AnotherWay.filterTestList = function(str){
|
Test.AnotherWay.filterTestList = function(str){
|
||||||
Test.AnotherWay.unfilterTestList();
|
Test.AnotherWay.unfilterTestList();
|
||||||
var re = new RegExp(str, 'i');
|
var re = new RegExp(str, 'i');
|
||||||
var candidates = document.querySelectorAll('#testtable tr td:nth-child(2) a');
|
var candidates = document.querySelectorAll('#testtable tr a');
|
||||||
for (var idx = 0, len = candidates.length; idx<len; idx++) {
|
for (var idx = 0, len = candidates.length; idx<len; idx++) {
|
||||||
var tr = candidates[idx].parentNode.parentNode;
|
var tr = candidates[idx].parentNode.parentNode;
|
||||||
var html = candidates[idx].innerHTML;
|
var html = candidates[idx].innerHTML;
|
||||||
@@ -164,10 +164,10 @@ Test.AnotherWay.unfilterTestList = function() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// bind our quicksearch init method to body onload.
|
// bind our quicksearch init method to body onload.
|
||||||
(function(win){
|
(function(win) {
|
||||||
if (win.addEventListener) {
|
if (win.addEventListener) {
|
||||||
win.addEventListener('load', Test.AnotherWay.bindQuicksearchListener);
|
win.addEventListener('load', Test.AnotherWay.bindQuicksearchListener);
|
||||||
} else if (input.attachEvent) {
|
} else if (win.attachEvent) {
|
||||||
win.attachEvent('onload', Test.AnotherWay.bindQuicksearchListener);
|
win.attachEvent('onload', Test.AnotherWay.bindQuicksearchListener);
|
||||||
} else {
|
} else {
|
||||||
win.onload = function(){
|
win.onload = function(){
|
||||||
|
|||||||
Reference in New Issue
Block a user