From 81fd4adb4fe7c0ae0a8423d6f460aa1d457f5e5d Mon Sep 17 00:00:00 2001 From: rda Date: Sun, 23 Oct 2011 14:24:30 +0700 Subject: [PATCH] Fix unterminated statements --- examples/KMLParser.html | 4 +- examples/WMSDescribeLayerParser.html | 2 +- examples/animator.js | 40 +++++----- examples/buffer.html | 2 +- examples/donut.js | 2 +- examples/editing-methods.js | 14 ++-- examples/example-list.html | 6 +- examples/filter-strategy.js | 2 +- examples/getfeatureinfo-control.html | 2 +- examples/gutter.html | 2 +- examples/layerLoadMonitoring.html | 2 +- examples/mapguide.html | 4 +- examples/mobile-layers.js | 2 +- examples/mvs.html | 2 +- examples/ordering.html | 2 +- examples/osm-layer.html | 6 +- examples/overviewmap.html | 2 +- examples/point-grid.js | 8 +- examples/popupMatrix.html | 112 +++++++++++++-------------- examples/protocol-gears.html | 4 +- examples/restricted-extent.html | 4 +- examples/snap-grid.js | 6 +- examples/snapping.html | 2 +- examples/styles-unique.html | 4 +- examples/wmts-capabilities.js | 2 +- examples/xyz-esri.html | 2 +- lib/Firebug/firebug.js | 2 +- lib/OpenLayers/Format/Context.js | 2 +- 28 files changed, 122 insertions(+), 122 deletions(-) diff --git a/examples/KMLParser.html b/examples/KMLParser.html index a6ec027f02..7b36ec389d 100644 --- a/examples/KMLParser.html +++ b/examples/KMLParser.html @@ -10,7 +10,7 @@ diff --git a/examples/donut.js b/examples/donut.js index 01ae57d2cb..067be62b80 100644 --- a/examples/donut.js +++ b/examples/donut.js @@ -31,7 +31,7 @@ function updateOutput(event) { map.layers[1].events.on({ sketchmodified: updateOutput, sketchcomplete: updateOutput -}) +}); // add behavior to UI elements function toggleControl(element) { diff --git a/examples/editing-methods.js b/examples/editing-methods.js index 6986a9944e..6c139a276d 100644 --- a/examples/editing-methods.js +++ b/examples/editing-methods.js @@ -29,7 +29,7 @@ $("insertXY").onclick = function() { if (values != null) { draw.insertXY(values[0], values[1]); } -} +}; $("insertDeltaXY").onclick = function() { var values = parseInput( window.prompt( @@ -39,7 +39,7 @@ $("insertDeltaXY").onclick = function() { if (values != null) { draw.insertDeltaXY(values[0], values[1]); } -} +}; $("insertDirectionLength").onclick = function() { var values = parseInput( window.prompt( @@ -49,7 +49,7 @@ $("insertDirectionLength").onclick = function() { if (values != null) { draw.insertDirectionLength(values[0], values[1]); } -} +}; $("insertDeflectionLength").onclick = function() { var values = parseInput( window.prompt( @@ -59,13 +59,13 @@ $("insertDeflectionLength").onclick = function() { if (values != null) { draw.insertDeflectionLength(values[0], values[1]); } -} +}; $("cancel").onclick = function() { draw.cancel(); -} +}; $("finishSketch").onclick = function() { draw.finishSketch(); -} +}; function parseInput(text) { var values = text.split(","); @@ -80,4 +80,4 @@ function parseInput(text) { } } return values; -} \ No newline at end of file +} diff --git a/examples/example-list.html b/examples/example-list.html index 2d3530fff9..1b9622e61f 100644 --- a/examples/example-list.html +++ b/examples/example-list.html @@ -169,7 +169,7 @@ var words = text.split(/\W+/); var scores = {}; for(var i=0; i diff --git a/examples/filter-strategy.js b/examples/filter-strategy.js index 9f8d3942d9..cacdf8daa6 100644 --- a/examples/filter-strategy.js +++ b/examples/filter-strategy.js @@ -24,7 +24,7 @@ function startAnimation() { } else { stopAnimation(true); } - } + }; animationTimer = window.setInterval(next, interval * 1000); } diff --git a/examples/getfeatureinfo-control.html b/examples/getfeatureinfo-control.html index 96993ff326..cb0bec10e4 100644 --- a/examples/getfeatureinfo-control.html +++ b/examples/getfeatureinfo-control.html @@ -105,7 +105,7 @@ }, queryVisible: true }) - } + }; map.addLayers([political, roads, cities, water, highlightLayer]); for (var i in infoControls) { diff --git a/examples/gutter.html b/examples/gutter.html index ea538546ce..f284f3445e 100644 --- a/examples/gutter.html +++ b/examples/gutter.html @@ -19,7 +19,7 @@ window.onload = function() { options = {maxExtent: new OpenLayers.Bounds(-73.5295, 41.2318, -69.9097, 42.8883), - maxResolution: 0.0003} + maxResolution: 0.0003}; map = new OpenLayers.Map('map', options); var roads15 = new OpenLayers.Layer.WMS( "Roads (15px gutter)", "http://boston.freemap.in/cgi-bin/mapserv?map=/www/freemap.in/boston/map/gmaps.map&", diff --git a/examples/layerLoadMonitoring.html b/examples/layerLoadMonitoring.html index a8a17685c3..281fd7894f 100644 --- a/examples/layerLoadMonitoring.html +++ b/examples/layerLoadMonitoring.html @@ -71,7 +71,7 @@ layer.logEvent = function(event) { eventsLog.innerHTML += "
(" + getTimeStamp() + ") " + this.name + ": " + event; - } + }; layer.events.register("loadstart", layer, function() { this.logEvent("Load Start"); diff --git a/examples/mapguide.html b/examples/mapguide.html index 5ecc8b2913..e8ffd0bf90 100644 --- a/examples/mapguide.html +++ b/examples/mapguide.html @@ -54,10 +54,10 @@ var params = { mapdefinition: 'Library://Samples/Sheboygan/MapsTiled/Sheboygan.MapDefinition', basemaplayergroupname: "Base Layer Group" - } + }; var options = { singleTile: false - } + }; var layer = new OpenLayers.Layer.MapGuide( "MapGuide OS tiled layer", url, params, options ); map.addLayer(layer); diff --git a/examples/mobile-layers.js b/examples/mobile-layers.js index 05e1f03399..3cb84e08bc 100644 --- a/examples/mobile-layers.js +++ b/examples/mobile-layers.js @@ -40,7 +40,7 @@ function init() { "http://vmap0.tiles.osgeo.org/wms/vmap0", {layers: 'basic'}, {isBaseLayer: true, transitionEffect: 'resize'} - ) + ); var kml = new OpenLayers.Layer.Vector("KML", { projection: map.displayProjection, diff --git a/examples/mvs.html b/examples/mvs.html index e26b0125f0..f3866f5339 100644 --- a/examples/mvs.html +++ b/examples/mvs.html @@ -34,7 +34,7 @@ // ---- // TODO: Handle all this parsing better. - var safeArgs = {} + var safeArgs = {}; var DEFAULT_LAT = 0; var DEFAULT_LON = 0; diff --git a/examples/ordering.html b/examples/ordering.html index 7cb3f2b584..262c379f34 100644 --- a/examples/ordering.html +++ b/examples/ordering.html @@ -100,7 +100,7 @@ graphicZIndex: useFirst ? FIRST_RED_Z_INDEX : SECOND_RED_Z_INDEX, externalGraphic: "../img/marker.png", pointRadius: 10 - } + }; indexFeatures.push( point diff --git a/examples/osm-layer.html b/examples/osm-layer.html index 58f8158eec..d282a0f8a4 100644 --- a/examples/osm-layer.html +++ b/examples/osm-layer.html @@ -95,9 +95,9 @@ } else { gml = new OpenLayers.Layer.GML("OSM", "xml/cambridgeport.osm", {format: OpenLayers.Format.OSM}); } - } - gml.events.register("loadstart", null, function() { $("status").innerHTML = "Loading..."; }) - gml.events.register("loadend", null, function() { $("status").innerHTML = ""; }) + } + gml.events.register("loadstart", null, function() { $("status").innerHTML = "Loading..."; }); + gml.events.register("loadend", null, function() { $("status").innerHTML = ""; }); map.addLayer(gml); gml.preFeatureInsert = style_osm_feature; var sf = new OpenLayers.Control.SelectFeature(gml, {'onSelect': on_feature_hover}); diff --git a/examples/overviewmap.html b/examples/overviewmap.html index 7ae1ee86c2..2cb9df9fc9 100644 --- a/examples/overviewmap.html +++ b/examples/overviewmap.html @@ -108,7 +108,7 @@

Overview Map

20037508.34, 20037508.34) }), layers: [jplOverview] - } + }; var overview2 = new OpenLayers.Control.OverviewMap(controlOptions); map2.addControl(overview2); diff --git a/examples/point-grid.js b/examples/point-grid.js index e3a29e89ca..e7b2e2e1b1 100644 --- a/examples/point-grid.js +++ b/examples/point-grid.js @@ -13,7 +13,7 @@ var rotation = document.getElementById("rotation"); rotation.value = String(points.rotation); rotation.onchange = function() { points.setRotation(Number(rotation.value)); -} +}; var dx = document.getElementById("dx"); var dy = document.getElementById("dy"); @@ -21,13 +21,13 @@ dx.value = String(points.dx); dy.value = String(points.dy); dx.onchange = function() { points.setSpacing(Number(dx.value), Number(dy.value)); -} +}; dy.onchange = function() { points.setSpacing(Number(dx.value), Number(dy.value)); -} +}; var max = document.getElementById("max"); max.value = String(points.maxFeatures); max.onchange = function() { points.setMaxFeatures(Number(max.value)); -} +}; diff --git a/examples/popupMatrix.html b/examples/popupMatrix.html index 4a2280ef1d..90b5fc02e3 100644 --- a/examples/popupMatrix.html +++ b/examples/popupMatrix.html @@ -163,25 +163,25 @@ //anchored popup bigger contents autosize ll = new OpenLayers.LonLat(5,20); popupClass = AutoSizeAnchored; - popupContentHTML = '
Popup.Anchored
autosize
' + samplePopupContentsHTML + '
' + popupContentHTML = '
Popup.Anchored
autosize
' + samplePopupContentsHTML + '
'; addMarker(ll, popupClass, popupContentHTML); //anchored popup bigger contents autosize closebox ll = new OpenLayers.LonLat(10,20); popupClass = AutoSizeAnchored; - popupContentHTML = '
Popup.Anchored
autosize
closebox
' + samplePopupContentsHTML + '
' + popupContentHTML = '
Popup.Anchored
autosize
closebox
' + samplePopupContentsHTML + '
'; addMarker(ll, popupClass, popupContentHTML, true); //anchored popup wide short text contents autosize ll = new OpenLayers.LonLat(20,20); popupClass = AutoSizeAnchored; - popupContentHTML = '
Popup.Anchored
autosize - wide short text
' + samplePopupContentsHTML_WideShort + '
' + popupContentHTML = '
Popup.Anchored
autosize - wide short text
' + samplePopupContentsHTML_WideShort + '
'; addMarker(ll, popupClass, popupContentHTML); //anchored popup wide short text contents autosize closebox ll = new OpenLayers.LonLat(25,20); popupClass = AutoSizeAnchored; - popupContentHTML = '
Popup.Anchored
autosize - wide short text
closebox
' + samplePopupContentsHTML_WideShort + '
' + popupContentHTML = '
Popup.Anchored
autosize - wide short text
closebox
' + samplePopupContentsHTML_WideShort + '
'; addMarker(ll, popupClass, popupContentHTML, true); @@ -214,13 +214,13 @@ //anchored popup wide long fixed contents autosize ll = new OpenLayers.LonLat(65,20); popupClass = AutoSizeAnchored; - popupContentHTML = '' + popupContentHTML = ''; addMarker(ll, popupClass, popupContentHTML); //anchored popup wide long fixed contents autosize closebox ll = new OpenLayers.LonLat(70,20); popupClass = AutoSizeAnchored; - popupContentHTML = '' + popupContentHTML = ''; addMarker(ll, popupClass, popupContentHTML, true); // @@ -282,64 +282,64 @@ //anchored popup bigger contents autosize overflow ll = new OpenLayers.LonLat(5,15); popupClass = AutoSizeAnchored; - popupContentHTML = '
Popup.Anchored
autosize
overflow
' + samplePopupContentsHTML + '
' + popupContentHTML = '
Popup.Anchored
autosize
overflow
' + samplePopupContentsHTML + '
'; addMarker(ll, popupClass, popupContentHTML, false, true); //anchored popup bigger contents autosize closebox overflow ll = new OpenLayers.LonLat(10,15); popupClass = AutoSizeAnchored; - popupContentHTML = '
Popup.Anchored
autosize
overflow
closebox
' + samplePopupContentsHTML + '
' + popupContentHTML = '
Popup.Anchored
autosize
overflow
closebox
' + samplePopupContentsHTML + '
'; addMarker(ll, popupClass, popupContentHTML, true, true); //anchored popup wide short text contents autosize overflow ll = new OpenLayers.LonLat(20,15); popupClass = AutoSizeAnchored; - popupContentHTML = '
Popup.Anchored
autosize
overflow
' + samplePopupContentsHTML_WideShort + '
' + popupContentHTML = '
Popup.Anchored
autosize
overflow
' + samplePopupContentsHTML_WideShort + '
'; addMarker(ll, popupClass, popupContentHTML, false, true); //anchored popup wide short text contents autosize closebox overflow ll = new OpenLayers.LonLat(25,15); popupClass = AutoSizeAnchored; - popupContentHTML = '
Popup.Anchored
autosize
overflow
closebox
' + samplePopupContentsHTML_WideShort + '
' + popupContentHTML = '
Popup.Anchored
autosize
overflow
closebox
' + samplePopupContentsHTML_WideShort + '
'; addMarker(ll, popupClass, popupContentHTML, true, true); //anchored popup wide short fixed contents autosize overflow ll = new OpenLayers.LonLat(35,15); popupClass = AutoSizeAnchored; - popupContentHTML = '' + popupContentHTML = ''; addMarker(ll, popupClass, popupContentHTML, false, true); //anchored popup wide short fixed contents autosize closebox overflow ll = new OpenLayers.LonLat(40,15); popupClass = AutoSizeAnchored; - popupContentHTML = '' + popupContentHTML = ''; addMarker(ll, popupClass, popupContentHTML, true, true); //anchored popup thin long fixed contents autosize overflow ll = new OpenLayers.LonLat(50,15); popupClass = AutoSizeAnchored; - popupContentHTML = '' + popupContentHTML = ''; addMarker(ll, popupClass, popupContentHTML, false, true); //anchored popup thin long fixed contents autosize closebox overflow ll = new OpenLayers.LonLat(55,15); popupClass = AutoSizeAnchored; - popupContentHTML = '' + popupContentHTML = ''; addMarker(ll, popupClass, popupContentHTML, true, true); //anchored popup wide long fixed contents autosize overflow ll = new OpenLayers.LonLat(65,15); popupClass = AutoSizeAnchored; - popupContentHTML = '' + popupContentHTML = ''; addMarker(ll, popupClass, popupContentHTML, false, true); //anchored popup wide long fixed contents autosize closebox overflow ll = new OpenLayers.LonLat(70,15); popupClass = AutoSizeAnchored; - popupContentHTML = '' + popupContentHTML = ''; addMarker(ll, popupClass, popupContentHTML, true, true); @@ -402,65 +402,65 @@ //anchored bubble popup bigger contents autosize closebox ll = new OpenLayers.LonLat(5,5); popupClass = AutoSizeAnchoredBubble; - popupContentHTML = '
Popup.AnchoredBubble
autosize
' + samplePopupContentsHTML + '
' + popupContentHTML = '
Popup.AnchoredBubble
autosize
' + samplePopupContentsHTML + '
'; addMarker(ll, popupClass, popupContentHTML, false); //anchored bubble popup bigger contents autosize closebox ll = new OpenLayers.LonLat(10,5); popupClass = AutoSizeAnchoredBubble; - popupContentHTML = '
Popup.AnchoredBubble
autosize
closebox
' + samplePopupContentsHTML + '
' + popupContentHTML = '
Popup.AnchoredBubble
autosize
closebox
' + samplePopupContentsHTML + '
'; addMarker(ll, popupClass, popupContentHTML, true); //anchored bubble popup wide short text contents autosize ll = new OpenLayers.LonLat(20,5); popupClass = AutoSizeAnchoredBubble; - popupContentHTML = '
Popup.AnchoredBubble
autosize - wide short text
' + samplePopupContentsHTML_WideShort + '
' + popupContentHTML = '
Popup.AnchoredBubble
autosize - wide short text
' + samplePopupContentsHTML_WideShort + '
'; addMarker(ll, popupClass, popupContentHTML); //anchored bubble popup wide short text contents autosize closebox ll = new OpenLayers.LonLat(25,5); popupClass = AutoSizeAnchoredBubble; - popupContentHTML = '
Popup.AnchoredBubble
autosize - wide short text
closebox
' + samplePopupContentsHTML_WideShort + '
' + popupContentHTML = '
Popup.AnchoredBubble
autosize - wide short text
closebox
' + samplePopupContentsHTML_WideShort + '
'; addMarker(ll, popupClass, popupContentHTML, true); //anchored bubble popup wide short fixed contents autosize ll = new OpenLayers.LonLat(35,5); popupClass = AutoSizeAnchoredBubble; - popupContentHTML = '' + popupContentHTML = ''; addMarker(ll, popupClass, popupContentHTML); //anchored bubble popup wide short fixed contents autosize closebox ll = new OpenLayers.LonLat(40,5); popupClass = AutoSizeAnchoredBubble; - popupContentHTML = '' + popupContentHTML = ''; addMarker(ll, popupClass, popupContentHTML, true); //anchored bubble popup thin long fixed contents autosize ll = new OpenLayers.LonLat(50,5); popupClass = AutoSizeAnchoredBubble; - popupContentHTML = '' + popupContentHTML = ''; addMarker(ll, popupClass, popupContentHTML); //anchored bubble popup thin long fixed contents autosize closebox ll = new OpenLayers.LonLat(55,5); popupClass = AutoSizeAnchoredBubble; - popupContentHTML = '' + popupContentHTML = ''; addMarker(ll, popupClass, popupContentHTML, true); //anchored bubble popup wide long fixed contents autosize ll = new OpenLayers.LonLat(65,5); popupClass = AutoSizeAnchoredBubble; - popupContentHTML = '' + popupContentHTML = ''; addMarker(ll, popupClass, popupContentHTML); //anchored bubble popup wide long fixed contents autosize closebox ll = new OpenLayers.LonLat(70,5); popupClass = AutoSizeAnchoredBubble; - popupContentHTML = '' + popupContentHTML = ''; addMarker(ll, popupClass, popupContentHTML, true); // @@ -522,65 +522,65 @@ //anchored bubble popup bigger contents autosize closebox ll = new OpenLayers.LonLat(5,0); popupClass = AutoSizeAnchoredBubble; - popupContentHTML = '
Popup.AnchoredBubble
autosize
overflow
' + samplePopupContentsHTML + '
' + popupContentHTML = '
Popup.AnchoredBubble
autosize
overflow
' + samplePopupContentsHTML + '
'; addMarker(ll, popupClass, popupContentHTML, false, true); //anchored bubble popup bigger contents autosize closebox ll = new OpenLayers.LonLat(10,0); popupClass = AutoSizeAnchoredBubble; - popupContentHTML = '
Popup.AnchoredBubble
autosize
closebox
overflow
' + samplePopupContentsHTML + '
' + popupContentHTML = '
Popup.AnchoredBubble
autosize
closebox
overflow
' + samplePopupContentsHTML + '
'; addMarker(ll, popupClass, popupContentHTML, true, true); //anchored bubble popup wide short contents autosize overflow ll = new OpenLayers.LonLat(20,0); popupClass = AutoSizeAnchoredBubble; - popupContentHTML = '
Popup.AnchoredBubble
autosize
overflow
' + samplePopupContentsHTML_WideShort + '
' + popupContentHTML = '
Popup.AnchoredBubble
autosize
overflow
' + samplePopupContentsHTML_WideShort + '
'; addMarker(ll, popupClass, popupContentHTML, false, true); //anchored bubble popup wide short contents autosize closebox overflow ll = new OpenLayers.LonLat(25,0); popupClass = AutoSizeAnchoredBubble; - popupContentHTML = '
Popup.AnchoredBubble
autosize
overflow
closebox
' + samplePopupContentsHTML_WideShort + '
' + popupContentHTML = '
Popup.AnchoredBubble
autosize
overflow
closebox
' + samplePopupContentsHTML_WideShort + '
'; addMarker(ll, popupClass, popupContentHTML, true, true); //anchored bubble popup wide short fixed contents autosize overflow ll = new OpenLayers.LonLat(35,0); popupClass = AutoSizeAnchoredBubble; - popupContentHTML = '' + popupContentHTML = ''; addMarker(ll, popupClass, popupContentHTML, false, true); //anchored bubble popup wide short fixed contents autosize closebox overflow ll = new OpenLayers.LonLat(40,0); popupClass = AutoSizeAnchoredBubble; - popupContentHTML = '' + popupContentHTML = ''; addMarker(ll, popupClass, popupContentHTML, true, true); //anchored bubble popup thin long fixed contents autosize overflow ll = new OpenLayers.LonLat(50,0); popupClass = AutoSizeAnchoredBubble; - popupContentHTML = '' + popupContentHTML = ''; addMarker(ll, popupClass, popupContentHTML, false, true); //anchored bubble popup thin long fixed contents autosize closebox overflow ll = new OpenLayers.LonLat(55,0); popupClass = AutoSizeAnchoredBubble; - popupContentHTML = '' + popupContentHTML = ''; addMarker(ll, popupClass, popupContentHTML, true, true); //anchored bubble popup wide long fixed contents autosize overflow ll = new OpenLayers.LonLat(65,0); popupClass = AutoSizeAnchoredBubble; - popupContentHTML = '' + popupContentHTML = ''; addMarker(ll, popupClass, popupContentHTML, false, true); //anchored bubble popup wide long fixed contents autosize closebox overflow ll = new OpenLayers.LonLat(70,0); popupClass = AutoSizeAnchoredBubble; - popupContentHTML = '' + popupContentHTML = ''; addMarker(ll, popupClass, popupContentHTML, true, true); //FRAMED @@ -644,65 +644,65 @@ //anchored bubble popup bigger contents autosize closebox ll = new OpenLayers.LonLat(5,-15); popupClass = AutoSizeFramedCloud; - popupContentHTML = '
Popup.FramedCloud
autosize
' + samplePopupContentsHTML + '
' + popupContentHTML = '
Popup.FramedCloud
autosize
' + samplePopupContentsHTML + '
'; addMarker(ll, popupClass, popupContentHTML, false); //anchored bubble popup bigger contents autosize closebox ll = new OpenLayers.LonLat(10,-15); popupClass = AutoSizeFramedCloud; - popupContentHTML = '
Popup.FramedCloud
autosize
closebox
' + samplePopupContentsHTML + '
' + popupContentHTML = '
Popup.FramedCloud
autosize
closebox
' + samplePopupContentsHTML + '
'; addMarker(ll, popupClass, popupContentHTML, true); //anchored bubble popup wide short text contents autosize ll = new OpenLayers.LonLat(20,-15); popupClass = AutoSizeFramedCloud; - popupContentHTML = '
Popup.FramedCloud
autosize - wide short text
' + samplePopupContentsHTML_WideShort + '
' + popupContentHTML = '
Popup.FramedCloud
autosize - wide short text
' + samplePopupContentsHTML_WideShort + '
'; addMarker(ll, popupClass, popupContentHTML); //anchored bubble popup wide short text contents autosize closebox ll = new OpenLayers.LonLat(25,-15); popupClass = AutoSizeFramedCloud; - popupContentHTML = '
Popup.FramedCloud
autosize - wide short text
closebox
' + samplePopupContentsHTML_WideShort + '
' + popupContentHTML = '
Popup.FramedCloud
autosize - wide short text
closebox
' + samplePopupContentsHTML_WideShort + '
'; addMarker(ll, popupClass, popupContentHTML, true); //anchored bubble popup wide short fixed contents autosize ll = new OpenLayers.LonLat(35,-15); popupClass = AutoSizeFramedCloud; - popupContentHTML = '' + popupContentHTML = ''; addMarker(ll, popupClass, popupContentHTML); //anchored bubble popup wide short fixed contents autosize closebox ll = new OpenLayers.LonLat(40,-15); popupClass = AutoSizeFramedCloud; - popupContentHTML = '' + popupContentHTML = ''; addMarker(ll, popupClass, popupContentHTML, true); //anchored bubble popup thin long fixed contents autosize ll = new OpenLayers.LonLat(50,-15); popupClass = AutoSizeFramedCloud; - popupContentHTML = '' + popupContentHTML = ''; addMarker(ll, popupClass, popupContentHTML); //anchored bubble popup thin long fixed contents autosize closebox ll = new OpenLayers.LonLat(55,-15); popupClass = AutoSizeFramedCloud; - popupContentHTML = '' + popupContentHTML = ''; addMarker(ll, popupClass, popupContentHTML, true); //anchored bubble popup wide long fixed contents autosize ll = new OpenLayers.LonLat(65,-15); popupClass = AutoSizeFramedCloud; - popupContentHTML = '' + popupContentHTML = ''; addMarker(ll, popupClass, popupContentHTML); //anchored bubble popup wide long fixed contents autosize closebox ll = new OpenLayers.LonLat(70,-15); popupClass = AutoSizeFramedCloud; - popupContentHTML = '' + popupContentHTML = ''; addMarker(ll, popupClass, popupContentHTML, true); // @@ -764,65 +764,65 @@ //anchored bubble popup bigger contents autosize closebox ll = new OpenLayers.LonLat(5,-20); popupClass = AutoSizeFramedCloud; - popupContentHTML = '
Popup.FramedCloud
autosize
overflow
' + samplePopupContentsHTML + '
' + popupContentHTML = '
Popup.FramedCloud
autosize
overflow
' + samplePopupContentsHTML + '
'; addMarker(ll, popupClass, popupContentHTML, false, true); //anchored bubble popup bigger contents autosize closebox ll = new OpenLayers.LonLat(10,-20); popupClass = AutoSizeFramedCloud; - popupContentHTML = '
Popup.FramedCloud
autosize
closebox
overflow
' + samplePopupContentsHTML + '
' + popupContentHTML = '
Popup.FramedCloud
autosize
closebox
overflow
' + samplePopupContentsHTML + '
'; addMarker(ll, popupClass, popupContentHTML, true, true); //anchored bubble popup wide short contents autosize overflow ll = new OpenLayers.LonLat(20,-20); popupClass = AutoSizeFramedCloud; - popupContentHTML = '
Popup.FramedCloud
autosize
overflow
' + samplePopupContentsHTML_WideShort + '
' + popupContentHTML = '
Popup.FramedCloud
autosize
overflow
' + samplePopupContentsHTML_WideShort + '
'; addMarker(ll, popupClass, popupContentHTML, false, true); //anchored bubble popup wide short contents autosize closebox overflow ll = new OpenLayers.LonLat(25,-20); popupClass = AutoSizeFramedCloud; - popupContentHTML = '
Popup.FramedCloud
autosize
overflow
closebox
' + samplePopupContentsHTML_WideShort + '
' + popupContentHTML = '
Popup.FramedCloud
autosize
overflow
closebox
' + samplePopupContentsHTML_WideShort + '
'; addMarker(ll, popupClass, popupContentHTML, true, true); //anchored bubble popup wide short fixed contents autosize overflow ll = new OpenLayers.LonLat(35,-20); popupClass = AutoSizeFramedCloud; - popupContentHTML = '' + popupContentHTML = ''; addMarker(ll, popupClass, popupContentHTML, false, true); //anchored bubble popup wide short fixed contents autosize closebox overflow ll = new OpenLayers.LonLat(40,-20); popupClass = AutoSizeFramedCloud; - popupContentHTML = '' + popupContentHTML = ''; addMarker(ll, popupClass, popupContentHTML, true, true); //anchored bubble popup thin long fixed contents autosize overflow ll = new OpenLayers.LonLat(50,-20); popupClass = AutoSizeFramedCloud; - popupContentHTML = '' + popupContentHTML = ''; addMarker(ll, popupClass, popupContentHTML, false, true); //anchored bubble popup thin long fixed contents autosize closebox overflow ll = new OpenLayers.LonLat(55,-20); popupClass = AutoSizeFramedCloud; - popupContentHTML = '' + popupContentHTML = ''; addMarker(ll, popupClass, popupContentHTML, true, true); //anchored bubble popup wide long fixed contents autosize overflow ll = new OpenLayers.LonLat(65,-20); popupClass = AutoSizeFramedCloud; - popupContentHTML = '' + popupContentHTML = ''; addMarker(ll, popupClass, popupContentHTML, false, true); //anchored bubble popup wide long fixed contents autosize closebox overflow ll = new OpenLayers.LonLat(70,-20); popupClass = AutoSizeFramedCloud; - popupContentHTML = '' + popupContentHTML = ''; addMarker(ll, popupClass, popupContentHTML, true, true); diff --git a/examples/protocol-gears.html b/examples/protocol-gears.html index 23799ec83c..052a7c70b7 100644 --- a/examples/protocol-gears.html +++ b/examples/protocol-gears.html @@ -179,7 +179,7 @@ error = true; return; } - modify.selectControl.unselectAll() + modify.selectControl.unselectAll(); if (resp.reqFeatures) { vector.destroyFeatures(resp.reqFeatures); @@ -214,7 +214,7 @@ } var feature = vector.selectedFeatures[0]; if (feature) { - modify.selectControl.unselectAll() + modify.selectControl.unselectAll(); feature.state = OpenLayers.State.DELETE; displayStatus(); } diff --git a/examples/restricted-extent.html b/examples/restricted-extent.html index 5117453758..db5d7ec513 100644 --- a/examples/restricted-extent.html +++ b/examples/restricted-extent.html @@ -16,7 +16,7 @@ function init() { var options = { restrictedExtent: extent - } + }; map = new OpenLayers.Map('map', options); var wms = new OpenLayers.Layer.WMS( @@ -74,4 +74,4 @@

OpenLayers Restricted Extent Example

- \ No newline at end of file + diff --git a/examples/snap-grid.js b/examples/snap-grid.js index 81a72dab11..4478c5a1d1 100644 --- a/examples/snap-grid.js +++ b/examples/snap-grid.js @@ -66,16 +66,16 @@ var rotation = document.getElementById("rotation"); rotation.value = String(points.rotation); rotation.onchange = function() { points.setRotation(Number(rotation.value)); -} +}; var spacing = document.getElementById("spacing"); spacing.value = String(points.dx); spacing.onchange = function() { points.setSpacing(Number(spacing.value)); -} +}; var max = document.getElementById("max"); max.value = String(points.maxFeatures); max.onchange = function() { points.setMaxFeatures(Number(max.value)); -} +}; diff --git a/examples/snapping.html b/examples/snapping.html index 6747e899f6..6c735fe3fc 100644 --- a/examples/snapping.html +++ b/examples/snapping.html @@ -208,7 +208,7 @@ sel.value = "poly"; sel.onchange = function() { updateEditable(sel.value); - } + }; var target, type, tog, tol; var types = ["node", "vertex", "edge"]; diff --git a/examples/styles-unique.html b/examples/styles-unique.html index 0d2e1ec500..7135466f72 100644 --- a/examples/styles-unique.html +++ b/examples/styles-unique.html @@ -39,7 +39,7 @@ 0: {externalGraphic: "../img/marker-blue.png"}, 1: {externalGraphic: "../img/marker-green.png"}, 2: {externalGraphic: "../img/marker-gold.png"} - } + }; // add rules from the above lookup table, with the keyes mapped to // the "type" property of the features, for the "default" intent @@ -69,7 +69,7 @@ var context = function(feature) { return feature; - } + }; var styleMap = new OpenLayers.StyleMap(); // create a lookup table with different symbolizers for the different diff --git a/examples/wmts-capabilities.js b/examples/wmts-capabilities.js index 7f138b4d1a..27fa54a9c3 100644 --- a/examples/wmts-capabilities.js +++ b/examples/wmts-capabilities.js @@ -43,7 +43,7 @@ function init() { alert("Trouble getting capabilities doc"); OpenLayers.Console.error.apply(OpenLayers.Console, arguments); } - }) + }); map = new OpenLayers.Map({ div: "map", diff --git a/examples/xyz-esri.html b/examples/xyz-esri.html index dfb5ca1b48..f6855a52ed 100644 --- a/examples/xyz-esri.html +++ b/examples/xyz-esri.html @@ -16,7 +16,7 @@