From c7c21ea08a4e752e82100d3e1715990ee52969c5 Mon Sep 17 00:00:00 2001 From: crschmidt Date: Tue, 26 Sep 2006 20:24:00 +0000 Subject: [PATCH] Pullup changes since RC2. Fixes: * WorldWind layer working again * Popup.destroy() complaints * Decompose marker destruction code for easier subclassing. * Error catching for better layerPx error in Map.js * Several eamples, including getFeatureInfo, fullScreen, worldwind, layer-opacity git-svn-id: http://svn.openlayers.org/branches/openlayers/2.1@1501 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- examples/fullScreen.html | 40 ++++++++ examples/getfeatureinfo.html | 46 +++++++++ examples/layer-opacity.html | 86 +++++++++++++++++ examples/proxy.cgi | 2 +- examples/scroll.html | 151 ++++++++++++++++++++++++++++++ examples/worldwind.html | 19 ++-- lib/OpenLayers/Feature.js | 6 +- lib/OpenLayers/Layer.js | 36 ++++--- lib/OpenLayers/Layer/WorldWind.js | 20 ++-- lib/OpenLayers/Map.js | 27 +++--- lib/OpenLayers/Marker.js | 11 ++- lib/OpenLayers/Util.js | 1 + 12 files changed, 400 insertions(+), 45 deletions(-) create mode 100644 examples/fullScreen.html create mode 100644 examples/getfeatureinfo.html create mode 100644 examples/layer-opacity.html create mode 100644 examples/scroll.html diff --git a/examples/fullScreen.html b/examples/fullScreen.html new file mode 100644 index 0000000000..507536e208 --- /dev/null +++ b/examples/fullScreen.html @@ -0,0 +1,40 @@ + + + + + + + +
+ + diff --git a/examples/getfeatureinfo.html b/examples/getfeatureinfo.html new file mode 100644 index 0000000000..46751b3b55 --- /dev/null +++ b/examples/getfeatureinfo.html @@ -0,0 +1,46 @@ + + + + +World Map Query + + +
+
+

CIA Factbook

+

Click a country to see statistics about the country below.

+
+
+
+
+ + + diff --git a/examples/layer-opacity.html b/examples/layer-opacity.html new file mode 100644 index 0000000000..f88fde145b --- /dev/null +++ b/examples/layer-opacity.html @@ -0,0 +1,86 @@ + + + + + + + +

OpenLayers Layer Opacity Example

+
+

+ Note that if you also have the setOpacity method defined on the Layer + class, you can tweak the layer opacity after it has been added to the map. +

+

Opacity: + << + + >> +

+

IE users: Wait until the shade layer has finished loading to try this.

+ + diff --git a/examples/proxy.cgi b/examples/proxy.cgi index 8c4d2f4248..4e513c5188 100755 --- a/examples/proxy.cgi +++ b/examples/proxy.cgi @@ -20,7 +20,7 @@ url = fs.getvalue('url', "http://openlayers.org") # Designed to prevent Open Proxy type stuff. -allowedHosts = ['www.openlayers.org', 'openlayers.org', 'octo.metacarta.com', 'merrimack.metacarta.com', 'labs.metacarta.com'] +allowedHosts = ['www.openlayers.org', 'openlayers.org', 'octo.metacarta.com', 'merrimack.metacarta.com', 'labs.metacarta.com', 'world.freemap.in'] try: host = url.split("/")[2] diff --git a/examples/scroll.html b/examples/scroll.html new file mode 100644 index 0000000000..c5f4936111 --- /dev/null +++ b/examples/scroll.html @@ -0,0 +1,151 @@ + + + + + OpenLayers: Home + + + + + + + + + + +
+OpenLayers + +OpenLayers +
+ + + + + + +
+
+
+
Put an open map widget in any web page!
+
+ Double-click to zoom in, and drag to pan. Hold down the shift key + and drag to zoom to a particular region. +
+
+

Get OpenLayers Now

+

+ Latest stable release: Link to the hosted version | OpenLayers-2.0.tar.gz | Class Documentation | See Screenshots +

+

Latest Development Release: Test out OpenLayers 2.1-RC2! Link to 2.1-RC2 Hosted Version.

+

FOSS4G: Was the FOSS4G presentation too early for you this morning? The presentation is available in Open Office Impress format, and the examples are available as well.

+

About...

+

OpenLayers makes it easy to put a dynamic map in any web page. It can +display map tiles and markers loaded from any source. MetaCarta developed the initial version of +OpenLayers and gave it to the public to further the use of geographic +information of all kinds. OpenLayers is +completely free, Open Source JavaScript, released under the BSD License.

+ +

Put a map in your page.

+

We've released a Map Viewer Service that lets you put a map in your page easily. Just put this HTML in your page:

+
+      <iframe src="http://openlayers.org/viewer/"
+        width="400px" height="200px"
+        scrolling="no"
+        marginwidth="0" marginheight="0"
+        frameborder="0">
+      </iframe>
+ +

Read more examples in the 20-second tutorial. The visual appearance of the MapViewer is not yet stable. If you like it, please join the users' email list and tell us about your use.

+ +

For Developers!

+

OpenLayers is a pure JavaScript library for displaying map data in most +modern web browsers, with no server-side dependencies. OpenLayers implements a +(still-developing) JavaScript +API for building rich web-based geographic applications, similar to the +Google Maps and MSN Virtual Earth APIs, with one important difference -- +OpenLayers is Free Software, developed for and by the Open Source software +community.

+ +

Furthermore, OpenLayers implements industry-standard methods for geographic +data access, such as the OpenGIS Consortium's Web Mapping Service (WMS) and Web +Feature Service (WFS) protocols. Under the hood, OpenLayers is written in +object-oriented JavaScript, using Prototype.js and components from the Rico library. The OpenLayers code base already has +hundreds of unit tests, via the Test.AnotherWay +framework.

+ +

As a framework, OpenLayers is intended to separate map tools from map +data so that all the tools can operate on all the data sources. This +separation breaks the proprietary silos that earlier GIS revolutions have +taught civilization to avoid. The mapping revolution on the public Web should +benefit from the experience of history.

+ +

Getting the Code

+ +

Releases are made available on the downloads page. +Additionally, if you wish to use OpenLayers in a web application, you can +include + + http://www.openlayers.org/api/OpenLayers.js + in your page, to always get the latest release.

+ +

The code is also available in our +Subversion repository. +Using Subversion, you can keep up to the absolute bleeding edge of the code. +If you wish to report a bug in the API, and you are able to use Subversion, +please see if the bug has been fixed in Subversion first: OpenLayers is +under rapid development, so things change quickly. +

+ +

If you don't have Subversion or don't want to download the code, you can +still try some live examples on +openlayers.org. If you're familiar with JavaScript, try viewing the source +of the examples to get an idea how the OpenLayers library is used.

+ +

OpenLayers is still undergoing rapid development, so expect a lot to change +in the next few weeks and months. We need your support! Please check the wiki for the very latest updates and +documentation, and thank you for taking an interest.

+ +
+ + + + + + + + diff --git a/examples/worldwind.html b/examples/worldwind.html index 520dcd48f7..5af8b0263b 100644 --- a/examples/worldwind.html +++ b/examples/worldwind.html @@ -10,20 +10,19 @@