Commit Graph

1065 Commits

Author SHA1 Message Date
ahocevar b872b5a74f Cross origin handling to make example work in Firefox
The WMS used in the example does not send CORS headers (I think
not many WMS services do). It seems that the WebGL renderer
needs script access to the image data, so the example only works
with the DOM renderer in Firefox.
2012-10-27 09:16:09 +02:00
ahocevar 084506cdb5 Adding tiled WMS source
As shown in the example, this adds support for tiled WMS layers.
2012-10-26 21:36:30 +02:00
Éric Lemoine 0ae3f8806e Remove examples/index.js (refs #67) 2012-10-21 21:24:15 +02:00
Éric Lemoine 7ce79207e3 Better design for the full-screen examples
The text div is now placed in the top-right corner of the page. This is to avoid overlapping with the attribution div. On screens that are smaller that 600px the text div is not deplayed at all.
2012-10-21 21:11:27 +02:00
Éric Lemoine 1e0b43dd00 Better HTML and CSS for the examples
And give the h1 tags a "title" id. The exampleparser.py script uses that as the example title in the index page.
2012-10-20 21:43:34 +02:00
Éric Lemoine b000c052e3 Improve layout of examples index page 2012-10-20 21:43:05 +02:00
Éric Lemoine 3e3b8d6f8b Use OpenLayers 2 examples index 2012-10-19 21:56:59 +02:00
Tom Payne ee1d1fa3e7 Fold ol.CoordinateFormat into ol.Coordinate 2012-10-18 14:22:23 +02:00
Tom Payne 061c173e64 Merge pull request #64 from twpayne/examples-index
Examples index
2012-10-18 02:15:46 -07:00
Tom Payne e21c182641 Use Chrome Frame if available 2012-10-17 18:20:25 +02:00
Tom Payne e9dbb00039 Pass query string through example index
This is so that visiting

    /examples/index.html?mode=RAW&Debug=true

will automatically add ?mode=RAW&Debug=true to all links in the
generated index.
2012-10-17 11:31:40 +02:00
Éric Lemoine 4b6ef3c046 Better comments in loader.js 2012-10-16 21:56:35 +02:00
Éric Lemoine 190e21f796 The loader adds link tag for ol.css 2012-10-16 21:55:12 +02:00
Tom Payne f7adc1ae75 Use identical code in compiled and standalone examples 2012-10-15 19:12:55 +02:00
Tom Payne 98340c55ce Don't use goog.* functions in examples 2012-10-15 19:11:02 +02:00
Tom Payne d5002872dd Replace tabs with spaces 2012-10-04 15:12:50 +02:00
Tom Payne 9d253ab6bb Refactor exports and externs 2012-10-04 15:11:26 +02:00
Tom Payne 21f8c8f3bd Enable debugging in full screen example 2012-10-04 11:38:21 +02:00
Marc Jansen 07730d44d6 Replace tabs with spaces. 2012-10-04 08:34:29 +02:00
Frederic Junod 3df18d2df8 Use existing local coordinate var 2012-10-02 11:26:44 +02:00
Frederic Junod 8a5e7c77c9 Don't set map at each click 2012-10-02 11:25:58 +02:00
Tom Payne c6a9044bee Indent all HTML files with two spaces 2012-10-01 14:29:50 +02:00
Tom Payne d894275cf5 Add content type to examples 2012-10-01 14:28:45 +02:00
Frédéric Junod 6b0669c834 Fix path to ol.css 2012-10-01 11:05:37 +03:00
ahocevar 6267100871 Move customizations out of arrow_box CSS 2012-09-29 16:48:22 +02:00
Tom Payne 1a5375fa51 Move target container in to map options 2012-09-29 13:58:15 +02:00
Tom Payne 2341e8cd8f Add simple full screen example 2012-09-29 12:33:01 +02:00
Tom Payne ea95ca4918 Rename full screen example to overlay and popup 2012-09-29 12:33:01 +02:00
Tom Payne 71e42b2448 Refactor build system
This rather large commit refactors the build system to solve a number of
problems:
- Object literal types are now declared in just one place
- There are no more circular dependencies
- There is no need for concealed subclasses in build-standalone mode

When building in standalone mode, you need to include the source in
build/src/external.  This declares object literal types as externs so
that their properties are not renamed.

When building with the application, you need to include the source in
build/src/internal.  This declares object literal types as typedefs so
that their properties can be renamed and removed.

Note also that ol.MapOptions has been merged into ol.Map, with some
renaming.
2012-09-29 11:51:53 +02:00
ahocevar 2b53481932 Making Vienna's location more accurate 2012-09-29 09:54:34 +02:00
Tim Schaub 50bf2f015c Getting rid of lines between rotated tiles
Applying the scale3d trick just to get rid of small pixel gap between rotated tiles.  This will be reworked soon with additional use of transforms.
2012-09-29 01:33:50 +02:00
Tim Schaub bc5cd13855 Tiny bit of style 2012-09-29 01:17:46 +02:00
Tim Schaub c24e520961 Non-functioning example
When loading this example in compiled mode, the page displays the following:

    ol3 proj4js demo

    [object Object][object Object]

With `mode=RAW`, it does display some numbers, but I think we could better explain this functionality with a different sort of tutorial/example.
2012-09-29 01:12:40 +02:00
ahocevar dcc3fdde96 Fixing popup in example 2012-09-28 19:19:46 +02:00
ahocevar 163737d3de Adding popup to full-screen example 2012-09-28 16:47:55 +02:00
Tom Payne 1be9e97489 Add attribution control by default 2012-09-28 14:53:45 +02:00
ahocevar 82058412a1 Bringing label markup back
Also with a bit of css, we can make the label invisible before
it gets added as overlay to the map.
2012-09-28 14:44:36 +02:00
Éric Lemoine 9af392e217 Change loader.js usage example 2012-09-28 14:25:21 +02:00
Éric Lemoine 896f5203db Change examples directory names to "examples" 2012-09-28 14:01:51 +02:00
Tom Payne 6c0b719aef Remove OpenLayers 2, as discussed with @ahocevar, @elemoine and @tschaub 2012-08-30 15:00:23 +02:00
Bart van den Eijnden a7c202231f Merge branch '2.12' of github.com:openlayers/openlayers 2012-06-13 07:18:53 +02:00
Éric Lemoine 8208241e55 fix the kml-pointtrack.html example 2012-06-12 22:03:30 +02:00
Éric Lemoine 788d5a645a move the style.mobile.css file from examples to theme/default 2012-06-07 09:21:44 +02:00
ahocevar 8b2bab9d51 Improvements for Android: no buggy tile transitions, no flicker when tapping. 2012-06-02 22:18:49 +02:00
Marc Jansen 5794502f98 Replace tabs in example with spaces. No functional change. 2012-05-29 22:03:25 +02:00
Marc Jansen 366faf6871 Merge pull request #423 from marcjansen/no-$
Remove the aliasing of OpenLayers.Util.getElement to window.$
2012-05-29 12:52:27 -07:00
Marc Jansen acb9f950df Use document.getElementById in examples.
Previously examples would either use the now deprecated `window.$` or the
non-API-method `OpenLayers.Util.getElement`. This was well caught by @probins
and @elemoine.
2012-05-29 21:47:22 +02:00
Frederic Junod c696b34a84 Add new maximizeTitle and minimizeTitle options to Control.OverviewMap 2012-05-29 09:04:00 +02:00
ahocevar 88fd8038c8 Simplifying configuration. 2012-05-25 18:37:12 +02:00
ahocevar 440b9fb6d3 Using updated URLs. 2012-05-25 17:30:27 +02:00