Commit Graph

7391 Commits

Author SHA1 Message Date
ahocevar e672083027 Indentation and line break fixes 2012-10-28 23:59:36 +01:00
Cédric Moullet bb957a1149 Add new layer national park, attributions and layer extent to the Tiled WMS with custom projection example 2012-10-28 23:43:53 +01:00
Cédric Moullet b907befd68 Add title to WMS tiled custom projection example 2012-10-28 23:42:58 +01:00
Cédric Moullet dd93c24a07 Add tiled wms with custom projection 2012-10-28 07:26:05 +01:00
ahocevar e5308fec40 No extent magic
Setting the extent on a tile source now only means that tiles
won't be drawn outside that extent. Now the only way to specify
the origin of the tile grid is to provide a custom tileGrid. By
default, the grid origin is the top left corner of the
projection's extent.
2012-10-27 17:28:08 +02:00
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 433b12c39a Using the projection's extent for resolutions math by default
This ensures that maps with WMS layers with different extents
do not scale the tiles differently for each layer when the
default tileGrid is used. Note that it is always possible to
configure WMS sources with a custom tileGrid.
2012-10-26 22:51:30 +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
Tom Payne d0e532eadf Merge pull request #71 from twpayne/unique-filenames
Give each source file a unique name
2012-10-26 02:31:19 -07:00
Tom Payne e5d39724c9 Give each source file a unique name 2012-10-26 11:25:26 +02:00
Tom Payne af872e25c3 Remove incorrect property export 2012-10-26 11:24:25 +02:00
Tom Payne 41c6c2eff3 Merge pull request #72 from twpayne/source-xyz-projection
Add projection option to ol.source.XYZ
2012-10-25 23:53:03 -07:00
Tom Payne e7d5022dc1 Add projection option to ol.source.XYZ 2012-10-25 18:48:24 +02:00
Éric Lemoine 49f717eae6 Merge pull request #69 from elemoine/exports-files
Granularize the exports
2012-10-24 13:52:56 -07:00
Éric Lemoine 576c54eb61 Move object literal exports to their own file 2012-10-24 17:05:33 +02:00
Tom Payne 92b13b36d9 Prevent default in double click zoom (refs #70) 2012-10-24 16:30:44 +02:00
Éric Lemoine 0ae3f8806e Remove examples/index.js (refs #67) 2012-10-21 21:24:15 +02:00
Éric Lemoine 02c3acbc35 Merge pull request #67 from elemoine/exampleparser
Use OpenLayers 2 examples system
2012-10-21 12:22:05 -07: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 d81b232587 Granularize the exports
This commit decomposes exports.txt into multiple, per-component, export files.  This will be required for custom builds;
2012-10-20 22:31:33 +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 bb53278db5 Merge pull request #66 from twpayne/coordinate-format-cleanup
Coordinate format cleanup
2012-10-19 10:21:09 -07:00
Tom Payne ee1d1fa3e7 Fold ol.CoordinateFormat into ol.Coordinate 2012-10-18 14:22:23 +02:00
Tom Payne 860b4407b7 Add ol.Extent.get{Bottom,Top}{Left,Right} 2012-10-18 13:49:10 +02:00
Tom Payne cd7627f626 Lint examples 2012-10-18 13:48:52 +02:00
Tom Payne 061c173e64 Merge pull request #64 from twpayne/examples-index
Examples index
2012-10-18 02:15:46 -07:00
Tim Schaub eef4eb0eea Merge pull request #61 from twpayne/z-sort-in-dom-renderer
Z sort in dom renderer
2012-10-17 21:24:40 -07:00
Tom Payne e21c182641 Use Chrome Frame if available 2012-10-17 18:20:25 +02:00
Tom Payne 68a71c4a53 Add Tom Payne to authors.txt 2012-10-17 17:43:27 +02:00
Tom Payne a82e523f6b Try multiple context ids to get a WebGL context 2012-10-17 17:36:07 +02:00
Tom Payne 5011123228 Use ol.webgl.getContext is WebGL support test 2012-10-17 17:27:11 +02:00
Tom Payne 8cb28a7217 Move WebGL support test into ol.webgl 2012-10-17 17:25:37 +02:00
Tom Payne 1d40b64db1 Move WebGL context creation into ol.webgl 2012-10-17 17:23:30 +02:00
Tom Payne 0e81f67a00 Host example index 2012-10-17 11:36:54 +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
Tom Payne f120410d6d Add option to hook in scripts to index generator 2012-10-17 11:29:41 +02:00
Tom Payne 129578a515 Build examples index 2012-10-17 11:22:11 +02:00
Tom Payne 7f39f1d32d Add script to generate example index 2012-10-17 11:13:01 +02:00
Éric Lemoine c508ed39ef Merge pull request #63 from elemoine/hosted-examples
A step toward hosted examples on gh-pages
2012-10-16 13:59:31 -07:00
Éric Lemoine 84e3cf4f0d Merge pull request #62 from elemoine/bingmaps-exports
Add BingMaps exports
2012-10-16 13:57:44 -07:00
Éric Lemoine 1ac188c906 Add a hostexamples target to Makefile
This target copies the ol built files, examples, and loader script to the build/gh-pages directory, making it possible to host our examples on gh-pages.
2012-10-16 21:56:45 +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
Éric Lemoine f4b20175cc Add a specific loader for hosted examples
This loader is responsible for adding ol.js, ol.css and the example-specific js script to the document. This is the loader used in examples when hosted.
2012-10-16 21:51:48 +02:00
Éric Lemoine 1f7ecd2529 Make linter happy 2012-10-16 21:50:20 +02:00
Éric Lemoine 5c6b5cb495 Add BingMaps exports 2012-10-16 21:45:52 +02:00
Tom Payne a38468c854 Merge pull request #60 from twpayne/hosted-examples
Hosted examples
2012-10-16 02:12:16 -07:00
Tom Payne 3e6d374859 Ensure z as object keys are sorted as numbers 2012-10-16 11:04:56 +02:00