Fix unterminated statements
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
<script type="text/javascript">
|
||||
function parseData(req) {
|
||||
g = new OpenLayers.Format.KML({extractStyles: true});
|
||||
html = ""
|
||||
html = "";
|
||||
features = g.read(req.responseText);
|
||||
for(var feat in features) {
|
||||
html += "Feature: Geometry: "+ features[feat].geometry+",";
|
||||
@@ -18,7 +18,7 @@
|
||||
for (var j in features[feat].attributes) {
|
||||
html += "<li>Attribute "+j+":"+features[feat].attributes[j]+"</li>";
|
||||
}
|
||||
html += "</ul>"
|
||||
html += "</ul>";
|
||||
html += "<ul>";
|
||||
for (var j in features[feat].style) {
|
||||
html += "<li>Style "+j+":"+features[feat].style[j]+"</li>";
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
<script type="text/javascript">
|
||||
function parseData(req) {
|
||||
format = new OpenLayers.Format.WMSDescribeLayer();
|
||||
html = "<br>"
|
||||
html = "<br>";
|
||||
resp = format.read(req.responseText);
|
||||
for(var i = 0; i < resp.length; i++) {
|
||||
html += "Layer: typeName: "+ resp[i].typeName+",";
|
||||
|
||||
@@ -131,14 +131,14 @@ Animator.prototype = {
|
||||
str += ">";
|
||||
return str;
|
||||
}
|
||||
}
|
||||
};
|
||||
// merge the properties of two objects
|
||||
Animator.applyDefaults = function(defaults, prefs) {
|
||||
prefs = prefs || {};
|
||||
var prop, result = {};
|
||||
for (prop in defaults) result[prop] = prefs[prop] !== undefined ? prefs[prop] : defaults[prop];
|
||||
return result;
|
||||
}
|
||||
};
|
||||
// make an array from any object
|
||||
Animator.makeArray = function(o) {
|
||||
if (o == null) return [];
|
||||
@@ -146,7 +146,7 @@ Animator.makeArray = function(o) {
|
||||
var result = [];
|
||||
for (var i=0; i<o.length; i++) result[i] = o[i];
|
||||
return result;
|
||||
}
|
||||
};
|
||||
// convert a dash-delimited-property to a camelCaseProperty (c/o Prototype, thanks Sam!)
|
||||
Animator.camelize = function(string) {
|
||||
var oStringList = string.split('-');
|
||||
@@ -161,27 +161,27 @@ Animator.camelize = function(string) {
|
||||
camelizedString += s.charAt(0).toUpperCase() + s.substring(1);
|
||||
}
|
||||
return camelizedString;
|
||||
}
|
||||
};
|
||||
// syntactic sugar for creating CSSStyleSubjects
|
||||
Animator.apply = function(el, style, options) {
|
||||
if (style instanceof Array) {
|
||||
return new Animator(options).addSubject(new CSSStyleSubject(el, style[0], style[1]));
|
||||
}
|
||||
return new Animator(options).addSubject(new CSSStyleSubject(el, style));
|
||||
}
|
||||
};
|
||||
// make a transition function that gradually accelerates. pass a=1 for smooth
|
||||
// gravitational acceleration, higher values for an exaggerated effect
|
||||
Animator.makeEaseIn = function(a) {
|
||||
return function(state) {
|
||||
return Math.pow(state, a*2);
|
||||
}
|
||||
}
|
||||
};
|
||||
// as makeEaseIn but for deceleration
|
||||
Animator.makeEaseOut = function(a) {
|
||||
return function(state) {
|
||||
return 1 - Math.pow(1 - state, a*2);
|
||||
}
|
||||
}
|
||||
};
|
||||
// make a transition function that, like an object with momentum being attracted to a point,
|
||||
// goes past the target then returns
|
||||
Animator.makeElastic = function(bounces) {
|
||||
@@ -189,7 +189,7 @@ Animator.makeElastic = function(bounces) {
|
||||
state = Animator.tx.easeInOut(state);
|
||||
return ((1-Math.cos(state * Math.PI * bounces)) * (1 - state)) + state;
|
||||
}
|
||||
}
|
||||
};
|
||||
// make an Attack Decay Sustain Release envelope that starts and finishes on the same level
|
||||
//
|
||||
Animator.makeADSR = function(attackEnd, decayEnd, sustainEnd, sustainLevel) {
|
||||
@@ -206,7 +206,7 @@ Animator.makeADSR = function(attackEnd, decayEnd, sustainEnd, sustainLevel) {
|
||||
}
|
||||
return sustainLevel * (1 - ((state - sustainEnd) / (1 - sustainEnd)));
|
||||
}
|
||||
}
|
||||
};
|
||||
// make a transition function that, like a ball falling to floor, reaches the target and/
|
||||
// bounces back again
|
||||
Animator.makeBounce = function(bounces) {
|
||||
@@ -215,7 +215,7 @@ Animator.makeBounce = function(bounces) {
|
||||
state = fn(state);
|
||||
return state <= 1 ? state : 2-state;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
// pre-made transition functions to use with the 'transition' option
|
||||
Animator.tx = {
|
||||
@@ -233,7 +233,7 @@ Animator.tx = {
|
||||
veryElastic: Animator.makeElastic(3),
|
||||
bouncy: Animator.makeBounce(1),
|
||||
veryBouncy: Animator.makeBounce(3)
|
||||
}
|
||||
};
|
||||
|
||||
// animates a pixel-based style property between two integer values
|
||||
function NumericalStyleSubject(els, property, from, to, units) {
|
||||
@@ -271,7 +271,7 @@ NumericalStyleSubject.prototype = {
|
||||
inspect: function() {
|
||||
return "\t" + this.property + "(" + this.from + this.units + " to " + this.to + this.units + ")\n";
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
// animates a colour based style property between two hex values
|
||||
function ColorStyleSubject(els, property, from, to) {
|
||||
@@ -313,7 +313,7 @@ ColorStyleSubject.prototype = {
|
||||
inspect: function() {
|
||||
return "\t" + this.property + "(" + this.origFrom + " to " + this.origTo + ")\n";
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
// return a properly formatted 6-digit hex colour spec, or false
|
||||
ColorStyleSubject.parseColor = function(string) {
|
||||
@@ -336,14 +336,14 @@ ColorStyleSubject.parseColor = function(string) {
|
||||
return '#' + match[1];
|
||||
}
|
||||
return false;
|
||||
}
|
||||
};
|
||||
// convert a number to a 2 digit hex string
|
||||
ColorStyleSubject.toColorPart = function(number) {
|
||||
if (number > 255) number = 255;
|
||||
var digits = number.toString(16);
|
||||
if (number < 16) return '0' + digits;
|
||||
return digits;
|
||||
}
|
||||
};
|
||||
ColorStyleSubject.parseColor.rgbRe = /^rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i;
|
||||
ColorStyleSubject.parseColor.hexRe = /^\#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/;
|
||||
|
||||
@@ -367,7 +367,7 @@ DiscreteStyleSubject.prototype = {
|
||||
inspect: function() {
|
||||
return "\t" + this.property + "(" + this.from + " to " + this.to + " @ " + this.threshold + ")\n";
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
// animates between two styles defined using CSS.
|
||||
// if style1 and style2 are present, animate between them, if only style1
|
||||
@@ -482,7 +482,7 @@ CSSStyleSubject.prototype = {
|
||||
}
|
||||
return str;
|
||||
}
|
||||
}
|
||||
};
|
||||
// get the current value of a css property,
|
||||
CSSStyleSubject.getStyle = function(el, property){
|
||||
var style;
|
||||
@@ -497,7 +497,7 @@ CSSStyleSubject.getStyle = function(el, property){
|
||||
style = el.currentStyle[property];
|
||||
}
|
||||
return style || el.style[property]
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
CSSStyleSubject.ruleRe = /^\s*([a-zA-Z\-]+)\s*:\s*(\S(.+\S)?)\s*$/;
|
||||
@@ -604,7 +604,7 @@ AnimatorChain.prototype = {
|
||||
this.animators[this.current].seekTo(1);
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
// an Accordion is a class that creates and controls a number of Animators. An array of elements is passed in,
|
||||
// and for each element an Animator and a activator button is created. When an Animator's activator button is
|
||||
@@ -667,4 +667,4 @@ Accordion.prototype = {
|
||||
document.location.hash = this.rememberanceTexts[section];
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
"http://vmap0.tiles.osgeo.org/wms/vmap0",
|
||||
{layers: 'basic'}, {'buffer':4} );
|
||||
map.addLayer(layer);
|
||||
map.addControl(new OpenLayers.Control.LayerSwitcher())
|
||||
map.addControl(new OpenLayers.Control.LayerSwitcher());
|
||||
map.setCenter(new OpenLayers.LonLat(lon, lat), zoom);
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -31,7 +31,7 @@ function updateOutput(event) {
|
||||
map.layers[1].events.on({
|
||||
sketchmodified: updateOutput,
|
||||
sketchcomplete: updateOutput
|
||||
})
|
||||
});
|
||||
|
||||
// add behavior to UI elements
|
||||
function toggleControl(element) {
|
||||
|
||||
@@ -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(",");
|
||||
|
||||
@@ -169,7 +169,7 @@
|
||||
var words = text.split(/\W+/);
|
||||
var scores = {};
|
||||
for(var i=0; i<words.length; ++i) {
|
||||
var word = words[i].toLowerCase()
|
||||
var word = words[i].toLowerCase();
|
||||
var dict = info.index[word];
|
||||
var updateScores = function() {
|
||||
for(exIndex in dict) {
|
||||
@@ -185,7 +185,7 @@
|
||||
scores[exIndex][word] = count;
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
if(dict) {
|
||||
updateScores();
|
||||
} else {
|
||||
@@ -255,7 +255,7 @@
|
||||
template = new jugl.Template("template");
|
||||
target = document.getElementById("examples");
|
||||
listExamples(info.examples);
|
||||
document.getElementById("keywords").onkeyup = inputChange
|
||||
document.getElementById("keywords").onkeyup = inputChange;
|
||||
parseQuery();
|
||||
};
|
||||
</script>
|
||||
|
||||
@@ -24,7 +24,7 @@ function startAnimation() {
|
||||
} else {
|
||||
stopAnimation(true);
|
||||
}
|
||||
}
|
||||
};
|
||||
animationTimer = window.setInterval(next, interval * 1000);
|
||||
}
|
||||
|
||||
|
||||
@@ -105,7 +105,7 @@
|
||||
},
|
||||
queryVisible: true
|
||||
})
|
||||
}
|
||||
};
|
||||
|
||||
map.addLayers([political, roads, cities, water, highlightLayer]);
|
||||
for (var i in infoControls) {
|
||||
|
||||
@@ -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&",
|
||||
|
||||
@@ -71,7 +71,7 @@
|
||||
layer.logEvent = function(event) {
|
||||
eventsLog.innerHTML += "<br>(" + getTimeStamp() + ") " +
|
||||
this.name + ": " + event;
|
||||
}
|
||||
};
|
||||
|
||||
layer.events.register("loadstart", layer, function() {
|
||||
this.logEvent("Load Start");
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -34,7 +34,7 @@ function runMVS() {
|
||||
|
||||
// ----
|
||||
// TODO: Handle all this parsing better.
|
||||
var safeArgs = {}
|
||||
var safeArgs = {};
|
||||
|
||||
var DEFAULT_LAT = 0;
|
||||
var DEFAULT_LON = 0;
|
||||
|
||||
@@ -100,7 +100,7 @@
|
||||
graphicZIndex: useFirst ? FIRST_RED_Z_INDEX : SECOND_RED_Z_INDEX,
|
||||
externalGraphic: "../img/marker.png",
|
||||
pointRadius: 10
|
||||
}
|
||||
};
|
||||
|
||||
indexFeatures.push(
|
||||
point
|
||||
|
||||
@@ -96,8 +96,8 @@
|
||||
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});
|
||||
|
||||
@@ -108,7 +108,7 @@
|
||||
20037508.34, 20037508.34)
|
||||
}),
|
||||
layers: [jplOverview]
|
||||
}
|
||||
};
|
||||
var overview2 = new OpenLayers.Control.OverviewMap(controlOptions);
|
||||
map2.addControl(overview2);
|
||||
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
};
|
||||
|
||||
@@ -163,25 +163,25 @@
|
||||
//anchored popup bigger contents autosize
|
||||
ll = new OpenLayers.LonLat(5,20);
|
||||
popupClass = AutoSizeAnchored;
|
||||
popupContentHTML = '<div style="background-color:red;">Popup.Anchored<br>autosize<br>' + samplePopupContentsHTML + '</div>'
|
||||
popupContentHTML = '<div style="background-color:red;">Popup.Anchored<br>autosize<br>' + samplePopupContentsHTML + '</div>';
|
||||
addMarker(ll, popupClass, popupContentHTML);
|
||||
|
||||
//anchored popup bigger contents autosize closebox
|
||||
ll = new OpenLayers.LonLat(10,20);
|
||||
popupClass = AutoSizeAnchored;
|
||||
popupContentHTML = '<div style="background-color:red;">Popup.Anchored<br>autosize<br>closebox<br>' + samplePopupContentsHTML + '</div>'
|
||||
popupContentHTML = '<div style="background-color:red;">Popup.Anchored<br>autosize<br>closebox<br>' + samplePopupContentsHTML + '</div>';
|
||||
addMarker(ll, popupClass, popupContentHTML, true);
|
||||
|
||||
//anchored popup wide short text contents autosize
|
||||
ll = new OpenLayers.LonLat(20,20);
|
||||
popupClass = AutoSizeAnchored;
|
||||
popupContentHTML = '<div style="background-color:red;">Popup.Anchored<br>autosize - wide short text<br>' + samplePopupContentsHTML_WideShort + '</div>'
|
||||
popupContentHTML = '<div style="background-color:red;">Popup.Anchored<br>autosize - wide short text<br>' + samplePopupContentsHTML_WideShort + '</div>';
|
||||
addMarker(ll, popupClass, popupContentHTML);
|
||||
|
||||
//anchored popup wide short text contents autosize closebox
|
||||
ll = new OpenLayers.LonLat(25,20);
|
||||
popupClass = AutoSizeAnchored;
|
||||
popupContentHTML = '<div style="background-color:red;">Popup.Anchored<br>autosize - wide short text<br>closebox<br>' + samplePopupContentsHTML_WideShort + '</div>'
|
||||
popupContentHTML = '<div style="background-color:red;">Popup.Anchored<br>autosize - wide short text<br>closebox<br>' + samplePopupContentsHTML_WideShort + '</div>';
|
||||
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 = '<img src="img/widelong.jpg"></img>'
|
||||
popupContentHTML = '<img src="img/widelong.jpg"></img>';
|
||||
addMarker(ll, popupClass, popupContentHTML);
|
||||
|
||||
//anchored popup wide long fixed contents autosize closebox
|
||||
ll = new OpenLayers.LonLat(70,20);
|
||||
popupClass = AutoSizeAnchored;
|
||||
popupContentHTML = '<img src="img/widelong.jpg"></img>'
|
||||
popupContentHTML = '<img src="img/widelong.jpg"></img>';
|
||||
addMarker(ll, popupClass, popupContentHTML, true);
|
||||
|
||||
//
|
||||
@@ -282,64 +282,64 @@
|
||||
//anchored popup bigger contents autosize overflow
|
||||
ll = new OpenLayers.LonLat(5,15);
|
||||
popupClass = AutoSizeAnchored;
|
||||
popupContentHTML = '<div style="background-color:red;">Popup.Anchored<br>autosize<br>overflow<br>' + samplePopupContentsHTML + '</div>'
|
||||
popupContentHTML = '<div style="background-color:red;">Popup.Anchored<br>autosize<br>overflow<br>' + samplePopupContentsHTML + '</div>';
|
||||
addMarker(ll, popupClass, popupContentHTML, false, true);
|
||||
|
||||
//anchored popup bigger contents autosize closebox overflow
|
||||
ll = new OpenLayers.LonLat(10,15);
|
||||
popupClass = AutoSizeAnchored;
|
||||
popupContentHTML = '<div style="background-color:red;">Popup.Anchored<br>autosize<br>overflow<br>closebox<br>' + samplePopupContentsHTML + '</div>'
|
||||
popupContentHTML = '<div style="background-color:red;">Popup.Anchored<br>autosize<br>overflow<br>closebox<br>' + samplePopupContentsHTML + '</div>';
|
||||
addMarker(ll, popupClass, popupContentHTML, true, true);
|
||||
|
||||
|
||||
//anchored popup wide short text contents autosize overflow
|
||||
ll = new OpenLayers.LonLat(20,15);
|
||||
popupClass = AutoSizeAnchored;
|
||||
popupContentHTML = '<div style="background-color:red;">Popup.Anchored<br>autosize<br>overflow<br>' + samplePopupContentsHTML_WideShort + '</div>'
|
||||
popupContentHTML = '<div style="background-color:red;">Popup.Anchored<br>autosize<br>overflow<br>' + samplePopupContentsHTML_WideShort + '</div>';
|
||||
addMarker(ll, popupClass, popupContentHTML, false, true);
|
||||
|
||||
//anchored popup wide short text contents autosize closebox overflow
|
||||
ll = new OpenLayers.LonLat(25,15);
|
||||
popupClass = AutoSizeAnchored;
|
||||
popupContentHTML = '<div style="background-color:red;">Popup.Anchored<br>autosize<br>overflow<br>closebox<br>' + samplePopupContentsHTML_WideShort + '</div>'
|
||||
popupContentHTML = '<div style="background-color:red;">Popup.Anchored<br>autosize<br>overflow<br>closebox<br>' + samplePopupContentsHTML_WideShort + '</div>';
|
||||
addMarker(ll, popupClass, popupContentHTML, true, true);
|
||||
|
||||
//anchored popup wide short fixed contents autosize overflow
|
||||
ll = new OpenLayers.LonLat(35,15);
|
||||
popupClass = AutoSizeAnchored;
|
||||
popupContentHTML = '<img src="img/wideshort.jpg"></img>'
|
||||
popupContentHTML = '<img src="img/wideshort.jpg"></img>';
|
||||
addMarker(ll, popupClass, popupContentHTML, false, true);
|
||||
|
||||
//anchored popup wide short fixed contents autosize closebox overflow
|
||||
ll = new OpenLayers.LonLat(40,15);
|
||||
popupClass = AutoSizeAnchored;
|
||||
popupContentHTML = '<img src="img/wideshort.jpg"></img>'
|
||||
popupContentHTML = '<img src="img/wideshort.jpg"></img>';
|
||||
addMarker(ll, popupClass, popupContentHTML, true, true);
|
||||
|
||||
|
||||
//anchored popup thin long fixed contents autosize overflow
|
||||
ll = new OpenLayers.LonLat(50,15);
|
||||
popupClass = AutoSizeAnchored;
|
||||
popupContentHTML = '<img src="img/thinlong.jpg"></img>'
|
||||
popupContentHTML = '<img src="img/thinlong.jpg"></img>';
|
||||
addMarker(ll, popupClass, popupContentHTML, false, true);
|
||||
|
||||
//anchored popup thin long fixed contents autosize closebox overflow
|
||||
ll = new OpenLayers.LonLat(55,15);
|
||||
popupClass = AutoSizeAnchored;
|
||||
popupContentHTML = '<img src="img/thinlong.jpg"></img>'
|
||||
popupContentHTML = '<img src="img/thinlong.jpg"></img>';
|
||||
addMarker(ll, popupClass, popupContentHTML, true, true);
|
||||
|
||||
|
||||
//anchored popup wide long fixed contents autosize overflow
|
||||
ll = new OpenLayers.LonLat(65,15);
|
||||
popupClass = AutoSizeAnchored;
|
||||
popupContentHTML = '<img src="img/widelong.jpg"></img>'
|
||||
popupContentHTML = '<img src="img/widelong.jpg"></img>';
|
||||
addMarker(ll, popupClass, popupContentHTML, false, true);
|
||||
|
||||
//anchored popup wide long fixed contents autosize closebox overflow
|
||||
ll = new OpenLayers.LonLat(70,15);
|
||||
popupClass = AutoSizeAnchored;
|
||||
popupContentHTML = '<img src="img/widelong.jpg"></img>'
|
||||
popupContentHTML = '<img src="img/widelong.jpg"></img>';
|
||||
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 = '<div style="background-color:red;">Popup.AnchoredBubble<br>autosize<br>' + samplePopupContentsHTML + '</div>'
|
||||
popupContentHTML = '<div style="background-color:red;">Popup.AnchoredBubble<br>autosize<br>' + samplePopupContentsHTML + '</div>';
|
||||
addMarker(ll, popupClass, popupContentHTML, false);
|
||||
|
||||
//anchored bubble popup bigger contents autosize closebox
|
||||
ll = new OpenLayers.LonLat(10,5);
|
||||
popupClass = AutoSizeAnchoredBubble;
|
||||
popupContentHTML = '<div style="background-color:red;">Popup.AnchoredBubble<br>autosize<br>closebox<br>' + samplePopupContentsHTML + '</div>'
|
||||
popupContentHTML = '<div style="background-color:red;">Popup.AnchoredBubble<br>autosize<br>closebox<br>' + samplePopupContentsHTML + '</div>';
|
||||
addMarker(ll, popupClass, popupContentHTML, true);
|
||||
|
||||
|
||||
//anchored bubble popup wide short text contents autosize
|
||||
ll = new OpenLayers.LonLat(20,5);
|
||||
popupClass = AutoSizeAnchoredBubble;
|
||||
popupContentHTML = '<div style="background-color:red;">Popup.AnchoredBubble<br>autosize - wide short text<br>' + samplePopupContentsHTML_WideShort + '</div>'
|
||||
popupContentHTML = '<div style="background-color:red;">Popup.AnchoredBubble<br>autosize - wide short text<br>' + samplePopupContentsHTML_WideShort + '</div>';
|
||||
addMarker(ll, popupClass, popupContentHTML);
|
||||
|
||||
//anchored bubble popup wide short text contents autosize closebox
|
||||
ll = new OpenLayers.LonLat(25,5);
|
||||
popupClass = AutoSizeAnchoredBubble;
|
||||
popupContentHTML = '<div style="background-color:red;">Popup.AnchoredBubble<br>autosize - wide short text<br>closebox<br>' + samplePopupContentsHTML_WideShort + '</div>'
|
||||
popupContentHTML = '<div style="background-color:red;">Popup.AnchoredBubble<br>autosize - wide short text<br>closebox<br>' + samplePopupContentsHTML_WideShort + '</div>';
|
||||
addMarker(ll, popupClass, popupContentHTML, true);
|
||||
|
||||
|
||||
//anchored bubble popup wide short fixed contents autosize
|
||||
ll = new OpenLayers.LonLat(35,5);
|
||||
popupClass = AutoSizeAnchoredBubble;
|
||||
popupContentHTML = '<img src="img/wideshort.jpg"></img>'
|
||||
popupContentHTML = '<img src="img/wideshort.jpg"></img>';
|
||||
addMarker(ll, popupClass, popupContentHTML);
|
||||
|
||||
//anchored bubble popup wide short fixed contents autosize closebox
|
||||
ll = new OpenLayers.LonLat(40,5);
|
||||
popupClass = AutoSizeAnchoredBubble;
|
||||
popupContentHTML = '<img src="img/wideshort.jpg"></img>'
|
||||
popupContentHTML = '<img src="img/wideshort.jpg"></img>';
|
||||
addMarker(ll, popupClass, popupContentHTML, true);
|
||||
|
||||
|
||||
//anchored bubble popup thin long fixed contents autosize
|
||||
ll = new OpenLayers.LonLat(50,5);
|
||||
popupClass = AutoSizeAnchoredBubble;
|
||||
popupContentHTML = '<img src="img/thinlong.jpg"></img>'
|
||||
popupContentHTML = '<img src="img/thinlong.jpg"></img>';
|
||||
addMarker(ll, popupClass, popupContentHTML);
|
||||
|
||||
//anchored bubble popup thin long fixed contents autosize closebox
|
||||
ll = new OpenLayers.LonLat(55,5);
|
||||
popupClass = AutoSizeAnchoredBubble;
|
||||
popupContentHTML = '<img src="img/thinlong.jpg"></img>'
|
||||
popupContentHTML = '<img src="img/thinlong.jpg"></img>';
|
||||
addMarker(ll, popupClass, popupContentHTML, true);
|
||||
|
||||
|
||||
//anchored bubble popup wide long fixed contents autosize
|
||||
ll = new OpenLayers.LonLat(65,5);
|
||||
popupClass = AutoSizeAnchoredBubble;
|
||||
popupContentHTML = '<img src="img/widelong.jpg"></img>'
|
||||
popupContentHTML = '<img src="img/widelong.jpg"></img>';
|
||||
addMarker(ll, popupClass, popupContentHTML);
|
||||
|
||||
//anchored bubble popup wide long fixed contents autosize closebox
|
||||
ll = new OpenLayers.LonLat(70,5);
|
||||
popupClass = AutoSizeAnchoredBubble;
|
||||
popupContentHTML = '<img src="img/widelong.jpg"></img>'
|
||||
popupContentHTML = '<img src="img/widelong.jpg"></img>';
|
||||
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 = '<div style="background-color:red;">Popup.AnchoredBubble<br>autosize<br>overflow<br>' + samplePopupContentsHTML + '</div>'
|
||||
popupContentHTML = '<div style="background-color:red;">Popup.AnchoredBubble<br>autosize<br>overflow<br>' + samplePopupContentsHTML + '</div>';
|
||||
addMarker(ll, popupClass, popupContentHTML, false, true);
|
||||
|
||||
//anchored bubble popup bigger contents autosize closebox
|
||||
ll = new OpenLayers.LonLat(10,0);
|
||||
popupClass = AutoSizeAnchoredBubble;
|
||||
popupContentHTML = '<div style="background-color:red;">Popup.AnchoredBubble<br>autosize<br>closebox<br>overflow<br>' + samplePopupContentsHTML + '</div>'
|
||||
popupContentHTML = '<div style="background-color:red;">Popup.AnchoredBubble<br>autosize<br>closebox<br>overflow<br>' + samplePopupContentsHTML + '</div>';
|
||||
addMarker(ll, popupClass, popupContentHTML, true, true);
|
||||
|
||||
|
||||
//anchored bubble popup wide short contents autosize overflow
|
||||
ll = new OpenLayers.LonLat(20,0);
|
||||
popupClass = AutoSizeAnchoredBubble;
|
||||
popupContentHTML = '<div style="background-color:red;">Popup.AnchoredBubble<br>autosize<br>overflow<br>' + samplePopupContentsHTML_WideShort + '</div>'
|
||||
popupContentHTML = '<div style="background-color:red;">Popup.AnchoredBubble<br>autosize<br>overflow<br>' + samplePopupContentsHTML_WideShort + '</div>';
|
||||
addMarker(ll, popupClass, popupContentHTML, false, true);
|
||||
|
||||
//anchored bubble popup wide short contents autosize closebox overflow
|
||||
ll = new OpenLayers.LonLat(25,0);
|
||||
popupClass = AutoSizeAnchoredBubble;
|
||||
popupContentHTML = '<div style="background-color:red;">Popup.AnchoredBubble<br>autosize<br>overflow<br>closebox<br>' + samplePopupContentsHTML_WideShort + '</div>'
|
||||
popupContentHTML = '<div style="background-color:red;">Popup.AnchoredBubble<br>autosize<br>overflow<br>closebox<br>' + samplePopupContentsHTML_WideShort + '</div>';
|
||||
addMarker(ll, popupClass, popupContentHTML, true, true);
|
||||
|
||||
|
||||
//anchored bubble popup wide short fixed contents autosize overflow
|
||||
ll = new OpenLayers.LonLat(35,0);
|
||||
popupClass = AutoSizeAnchoredBubble;
|
||||
popupContentHTML = '<img src="img/wideshort.jpg"></img>'
|
||||
popupContentHTML = '<img src="img/wideshort.jpg"></img>';
|
||||
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 = '<img src="img/wideshort.jpg"></img>'
|
||||
popupContentHTML = '<img src="img/wideshort.jpg"></img>';
|
||||
addMarker(ll, popupClass, popupContentHTML, true, true);
|
||||
|
||||
|
||||
//anchored bubble popup thin long fixed contents autosize overflow
|
||||
ll = new OpenLayers.LonLat(50,0);
|
||||
popupClass = AutoSizeAnchoredBubble;
|
||||
popupContentHTML = '<img src="img/thinlong.jpg"></img>'
|
||||
popupContentHTML = '<img src="img/thinlong.jpg"></img>';
|
||||
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 = '<img src="img/thinlong.jpg"></img>'
|
||||
popupContentHTML = '<img src="img/thinlong.jpg"></img>';
|
||||
addMarker(ll, popupClass, popupContentHTML, true, true);
|
||||
|
||||
|
||||
//anchored bubble popup wide long fixed contents autosize overflow
|
||||
ll = new OpenLayers.LonLat(65,0);
|
||||
popupClass = AutoSizeAnchoredBubble;
|
||||
popupContentHTML = '<img src="img/widelong.jpg"></img>'
|
||||
popupContentHTML = '<img src="img/widelong.jpg"></img>';
|
||||
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 = '<img src="img/widelong.jpg"></img>'
|
||||
popupContentHTML = '<img src="img/widelong.jpg"></img>';
|
||||
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 = '<div style="background-color:red;">Popup.FramedCloud<br>autosize<br>' + samplePopupContentsHTML + '</div>'
|
||||
popupContentHTML = '<div style="background-color:red;">Popup.FramedCloud<br>autosize<br>' + samplePopupContentsHTML + '</div>';
|
||||
addMarker(ll, popupClass, popupContentHTML, false);
|
||||
|
||||
//anchored bubble popup bigger contents autosize closebox
|
||||
ll = new OpenLayers.LonLat(10,-15);
|
||||
popupClass = AutoSizeFramedCloud;
|
||||
popupContentHTML = '<div style="background-color:red;">Popup.FramedCloud<br>autosize<br>closebox<br>' + samplePopupContentsHTML + '</div>'
|
||||
popupContentHTML = '<div style="background-color:red;">Popup.FramedCloud<br>autosize<br>closebox<br>' + samplePopupContentsHTML + '</div>';
|
||||
addMarker(ll, popupClass, popupContentHTML, true);
|
||||
|
||||
|
||||
//anchored bubble popup wide short text contents autosize
|
||||
ll = new OpenLayers.LonLat(20,-15);
|
||||
popupClass = AutoSizeFramedCloud;
|
||||
popupContentHTML = '<div style="background-color:red;">Popup.FramedCloud<br>autosize - wide short text<br>' + samplePopupContentsHTML_WideShort + '</div>'
|
||||
popupContentHTML = '<div style="background-color:red;">Popup.FramedCloud<br>autosize - wide short text<br>' + samplePopupContentsHTML_WideShort + '</div>';
|
||||
addMarker(ll, popupClass, popupContentHTML);
|
||||
|
||||
//anchored bubble popup wide short text contents autosize closebox
|
||||
ll = new OpenLayers.LonLat(25,-15);
|
||||
popupClass = AutoSizeFramedCloud;
|
||||
popupContentHTML = '<div style="background-color:red;">Popup.FramedCloud<br>autosize - wide short text<br>closebox<br>' + samplePopupContentsHTML_WideShort + '</div>'
|
||||
popupContentHTML = '<div style="background-color:red;">Popup.FramedCloud<br>autosize - wide short text<br>closebox<br>' + samplePopupContentsHTML_WideShort + '</div>';
|
||||
addMarker(ll, popupClass, popupContentHTML, true);
|
||||
|
||||
|
||||
//anchored bubble popup wide short fixed contents autosize
|
||||
ll = new OpenLayers.LonLat(35,-15);
|
||||
popupClass = AutoSizeFramedCloud;
|
||||
popupContentHTML = '<img src="img/wideshort.jpg"></img>'
|
||||
popupContentHTML = '<img src="img/wideshort.jpg"></img>';
|
||||
addMarker(ll, popupClass, popupContentHTML);
|
||||
|
||||
//anchored bubble popup wide short fixed contents autosize closebox
|
||||
ll = new OpenLayers.LonLat(40,-15);
|
||||
popupClass = AutoSizeFramedCloud;
|
||||
popupContentHTML = '<img src="img/wideshort.jpg"></img>'
|
||||
popupContentHTML = '<img src="img/wideshort.jpg"></img>';
|
||||
addMarker(ll, popupClass, popupContentHTML, true);
|
||||
|
||||
|
||||
//anchored bubble popup thin long fixed contents autosize
|
||||
ll = new OpenLayers.LonLat(50,-15);
|
||||
popupClass = AutoSizeFramedCloud;
|
||||
popupContentHTML = '<img src="img/thinlong.jpg"></img>'
|
||||
popupContentHTML = '<img src="img/thinlong.jpg"></img>';
|
||||
addMarker(ll, popupClass, popupContentHTML);
|
||||
|
||||
//anchored bubble popup thin long fixed contents autosize closebox
|
||||
ll = new OpenLayers.LonLat(55,-15);
|
||||
popupClass = AutoSizeFramedCloud;
|
||||
popupContentHTML = '<img src="img/thinlong.jpg"></img>'
|
||||
popupContentHTML = '<img src="img/thinlong.jpg"></img>';
|
||||
addMarker(ll, popupClass, popupContentHTML, true);
|
||||
|
||||
|
||||
//anchored bubble popup wide long fixed contents autosize
|
||||
ll = new OpenLayers.LonLat(65,-15);
|
||||
popupClass = AutoSizeFramedCloud;
|
||||
popupContentHTML = '<img src="img/widelong.jpg"></img>'
|
||||
popupContentHTML = '<img src="img/widelong.jpg"></img>';
|
||||
addMarker(ll, popupClass, popupContentHTML);
|
||||
|
||||
//anchored bubble popup wide long fixed contents autosize closebox
|
||||
ll = new OpenLayers.LonLat(70,-15);
|
||||
popupClass = AutoSizeFramedCloud;
|
||||
popupContentHTML = '<img src="img/widelong.jpg"></img>'
|
||||
popupContentHTML = '<img src="img/widelong.jpg"></img>';
|
||||
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 = '<div style="background-color:red;">Popup.FramedCloud<br>autosize<br>overflow<br>' + samplePopupContentsHTML + '</div>'
|
||||
popupContentHTML = '<div style="background-color:red;">Popup.FramedCloud<br>autosize<br>overflow<br>' + samplePopupContentsHTML + '</div>';
|
||||
addMarker(ll, popupClass, popupContentHTML, false, true);
|
||||
|
||||
//anchored bubble popup bigger contents autosize closebox
|
||||
ll = new OpenLayers.LonLat(10,-20);
|
||||
popupClass = AutoSizeFramedCloud;
|
||||
popupContentHTML = '<div style="background-color:red;">Popup.FramedCloud<br>autosize<br>closebox<br>overflow<br>' + samplePopupContentsHTML + '</div>'
|
||||
popupContentHTML = '<div style="background-color:red;">Popup.FramedCloud<br>autosize<br>closebox<br>overflow<br>' + samplePopupContentsHTML + '</div>';
|
||||
addMarker(ll, popupClass, popupContentHTML, true, true);
|
||||
|
||||
|
||||
//anchored bubble popup wide short contents autosize overflow
|
||||
ll = new OpenLayers.LonLat(20,-20);
|
||||
popupClass = AutoSizeFramedCloud;
|
||||
popupContentHTML = '<div style="background-color:red;">Popup.FramedCloud<br>autosize<br>overflow<br>' + samplePopupContentsHTML_WideShort + '</div>'
|
||||
popupContentHTML = '<div style="background-color:red;">Popup.FramedCloud<br>autosize<br>overflow<br>' + samplePopupContentsHTML_WideShort + '</div>';
|
||||
addMarker(ll, popupClass, popupContentHTML, false, true);
|
||||
|
||||
//anchored bubble popup wide short contents autosize closebox overflow
|
||||
ll = new OpenLayers.LonLat(25,-20);
|
||||
popupClass = AutoSizeFramedCloud;
|
||||
popupContentHTML = '<div style="background-color:red;">Popup.FramedCloud<br>autosize<br>overflow<br>closebox<br>' + samplePopupContentsHTML_WideShort + '</div>'
|
||||
popupContentHTML = '<div style="background-color:red;">Popup.FramedCloud<br>autosize<br>overflow<br>closebox<br>' + samplePopupContentsHTML_WideShort + '</div>';
|
||||
addMarker(ll, popupClass, popupContentHTML, true, true);
|
||||
|
||||
|
||||
//anchored bubble popup wide short fixed contents autosize overflow
|
||||
ll = new OpenLayers.LonLat(35,-20);
|
||||
popupClass = AutoSizeFramedCloud;
|
||||
popupContentHTML = '<img src="img/wideshort.jpg"></img>'
|
||||
popupContentHTML = '<img src="img/wideshort.jpg"></img>';
|
||||
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 = '<img src="img/wideshort.jpg"></img>'
|
||||
popupContentHTML = '<img src="img/wideshort.jpg"></img>';
|
||||
addMarker(ll, popupClass, popupContentHTML, true, true);
|
||||
|
||||
|
||||
//anchored bubble popup thin long fixed contents autosize overflow
|
||||
ll = new OpenLayers.LonLat(50,-20);
|
||||
popupClass = AutoSizeFramedCloud;
|
||||
popupContentHTML = '<img src="img/thinlong.jpg"></img>'
|
||||
popupContentHTML = '<img src="img/thinlong.jpg"></img>';
|
||||
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 = '<img src="img/thinlong.jpg"></img>'
|
||||
popupContentHTML = '<img src="img/thinlong.jpg"></img>';
|
||||
addMarker(ll, popupClass, popupContentHTML, true, true);
|
||||
|
||||
|
||||
//anchored bubble popup wide long fixed contents autosize overflow
|
||||
ll = new OpenLayers.LonLat(65,-20);
|
||||
popupClass = AutoSizeFramedCloud;
|
||||
popupContentHTML = '<img src="img/widelong.jpg"></img>'
|
||||
popupContentHTML = '<img src="img/widelong.jpg"></img>';
|
||||
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 = '<img src="img/widelong.jpg"></img>'
|
||||
popupContentHTML = '<img src="img/widelong.jpg"></img>';
|
||||
addMarker(ll, popupClass, popupContentHTML, true, true);
|
||||
|
||||
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
function init() {
|
||||
var options = {
|
||||
restrictedExtent: extent
|
||||
}
|
||||
};
|
||||
map = new OpenLayers.Map('map', options);
|
||||
|
||||
var wms = new OpenLayers.Layer.WMS(
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
};
|
||||
|
||||
@@ -208,7 +208,7 @@
|
||||
sel.value = "poly";
|
||||
sel.onchange = function() {
|
||||
updateEditable(sel.value);
|
||||
}
|
||||
};
|
||||
|
||||
var target, type, tog, tol;
|
||||
var types = ["node", "vertex", "edge"];
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -43,7 +43,7 @@ function init() {
|
||||
alert("Trouble getting capabilities doc");
|
||||
OpenLayers.Console.error.apply(OpenLayers.Console, arguments);
|
||||
}
|
||||
})
|
||||
});
|
||||
|
||||
map = new OpenLayers.Map({
|
||||
div: "map",
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
<script type="text/javascript">
|
||||
var map, layer;
|
||||
function init(){
|
||||
var layerExtent = new OpenLayers.Bounds( -13758743.4295939, 5591455.28887228, -13531302.3472101 , 5757360.4178881)
|
||||
var layerExtent = new OpenLayers.Bounds( -13758743.4295939, 5591455.28887228, -13531302.3472101 , 5757360.4178881);
|
||||
map = new OpenLayers.Map( 'map', {'restrictedExtent': layerExtent} );
|
||||
layer = new OpenLayers.Layer.XYZ( "ESRI",
|
||||
"http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Portland/ESRI_LandBase_WebMercator/MapServer/tile/${z}/${y}/${x}",
|
||||
|
||||
@@ -208,7 +208,7 @@ if (!window.console || !console.firebug) { (function()
|
||||
consoleBody = doc.getElementById("log");
|
||||
layout();
|
||||
flush();
|
||||
}
|
||||
};
|
||||
|
||||
var baseURL = getFirebugURL();
|
||||
|
||||
|
||||
@@ -267,7 +267,7 @@ OpenLayers.Format.Context = OpenLayers.Class(OpenLayers.Format.XML.VersionedOGC,
|
||||
keywords: context.keywords,
|
||||
logo: context.logo,
|
||||
descriptionURL: context.descriptionURL
|
||||
}
|
||||
};
|
||||
|
||||
options.metadata = metadata;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user