Commit Graph

1277 Commits

Author SHA1 Message Date
Frederic Junod
7ee9a4c8a3 Add ol.dom.Input 2013-03-18 16:24:31 +01:00
Éric Lemoine
b381b28169 Merge pull request #381 from elemoine/countriesjson
The vector-layer example does not work when hosted
2013-03-17 01:36:35 -07:00
Éric Lemoine
51625b8008 Make vector-layer example ignore XHR errors
This is a workaround for our check-example.js PhantomJS script to work with this example. Without this check-example.js fails because xhr.status is 0. I tried to give the explicit file:/// scheme as indicated in https://groups.google.com/d/msg/phantomjs/wFGme0pE-Tk/WUjU5s-27NwJ, but that didn't work for me.
2013-03-15 15:46:40 +01:00
Éric Lemoine
a34adc6f62 Add countries.json to examples data dir
The examples cannot use files located in the test dir, or they won't work when hosted as GitHub pages.
2013-03-15 14:25:05 +01:00
Marc Jansen
2641a1135f Add fallback when examples are opened w/ file://.
When opening an example through the `file:`-protocol, e.g.
`file:///ol3/examples/full-screen.html` our `loader.js` would inject
a `<script>` tag with a `src` pointing to an illegal URL
`http://:9810/compile?mode=ADVANCED&id=full-screen`.

This changes the respective logic, so that in the case that we are accessed
through the `file:`-protocol, we fallback to using `localhost` as hostname
for the plovr-compiler.

The examples that do not use XHR (like e.g. `wms-capabilities.html`) now
work as expected when accessed through `file:`-protocol.
2013-03-15 10:29:01 +01:00
Bruno Binet
6cf20ef82f Remove unused goog.require directives
See #367.
2013-03-14 14:57:21 +01:00
Éric Lemoine
8ca763cdbd Merge pull request #330 from cedricmoullet/wmscustom
Add single image WMS with custom projection example
2013-03-14 06:21:42 -07:00
Éric Lemoine
38f1af6204 Merge pull request #366 from elemoine/347
Add ScaleLine control to wms-custom-proj example
2013-03-14 06:15:50 -07:00
Cédric Moullet
d66e67966d Add ScaleLine control to wms-custom-proj example
This requires using Proj4js, and configuring it with an extent.
2013-03-14 14:01:29 +01:00
Bruno Binet
15ce80f42e Merge pull request #364 from bbinet/fix-check-requires
Fix check for unused goog.require directives
2013-03-14 04:29:41 -07:00
Bruno Binet
9b1c389c80 Remove unused goog.require directives 2013-03-14 11:39:43 +01:00
Marc Jansen
9798eb5fa8 Don't use non-exported method in example. 2013-03-14 09:37:36 +01:00
Marc Jansen
f496471273 Simplify example and let it use real resolutions.
Thanks to @twpayne for the suggestion.
2013-03-14 09:37:35 +01:00
Marc Jansen
8bf71ebb3a Add a zoomslider control. 2013-03-14 09:37:35 +01:00
Frederic Junod
02e6937db3 Add a basic layer selector in bing-maps example 2013-03-13 13:36:49 +01:00
ahocevar
14d9ff3b81 Using a server that is not down
fix #353
2013-03-13 09:59:25 +01:00
ahocevar
fad036aa53 Merge branch 'master' of github.com:openlayers/ol3 into vector
Conflicts:
	src/objectliterals.exports
2013-03-12 08:39:16 +01:00
ahocevar
f5b53740e6 Define map at the top 2013-03-12 08:28:24 +01:00
ahocevar
47e5b0475b Since #274 we don't need to create an ol.Collection explicitly 2013-03-12 08:24:31 +01:00
Cédric Moullet
d9e1fdf13c Change the way the projection is managed and use ol.projection.configureProj4jsProjection 2013-03-11 20:25:29 +01:00
Tom Payne
2a5d07d929 Use a single map in the canvas tiles example 2013-03-11 17:07:27 +01:00
Bruno Binet
837aa7512b Merge pull request #342 from bbinet/wmts
Add WMTS support.
2013-03-11 08:05:25 -07:00
Bruno Binet
61603dacce WMTS from swisstopo now supports CORS headers 2013-03-11 15:47:42 +01:00
ahocevar
a66f26f839 Merge branch 'master' of github.com:openlayers/ol3 into vector 2013-03-11 15:21:01 +01:00
Bruno Binet
d14b1c57a9 Remove ImageLayer from wmts-from-capabilities example 2013-03-11 15:15:53 +01:00
Frédéric Junod
a441d9777d Merge pull request #315 from fredj/geolocation-example
Add Geolocation example
2013-03-11 06:44:44 -07:00
Tom Payne
f4a7d9386b Merge pull request #344 from twpayne/semi-transparent-example
Add semi-transparent layer example
2013-03-11 05:08:12 -07:00
Frederic Junod
de066e10a4 Add geolocation example 2013-03-11 12:54:26 +01:00
Bruno Binet
9e370bf6af Implement ol.source.WMTS.optionsFromCapabilities
and remove related ol.source.WMTS.createFromCapabilities function.
2013-03-11 12:42:14 +01:00
Frédéric Junod
7be0203cbe Merge pull request #341 from fredj/jquery-examples
Add jquery 1.7.2 and adapt examples externs
2013-03-11 04:09:42 -07:00
Tom Payne
34803cf78b Add semi-transparent layer example 2013-03-11 12:00:58 +01:00
Bruno Binet
6f83e50332 Load EPSG:21781 definition from cdnjs. 2013-03-11 11:48:06 +01:00
Tom Payne
47f04f9e8b Merge pull request #334 from twpayne/rotation-example
Rotation example
2013-03-11 03:29:14 -07:00
Bruno Binet
14d5916e67 Add wmts-from-capabilities example
it demonstrates how to create a wmts source by retrieving its configuration
from a wmts getCapabilities.
2013-03-11 10:42:38 +01:00
Bruno Binet
56ffb6146d Add example for WMTS source 2013-03-11 10:42:37 +01:00
Frederic Junod
35ef1c82e6 Add jquery 1.7.2 and adapt examples externs
Add jquery and update the externs for the examples (code from @bartvde).
The lib is saved into the repository to be able to run the examples
and the check-examples target offline.
2013-03-11 09:56:02 +01:00
Tom Payne
e8b4a29254 Fix typo in canvas tiles example 2013-03-10 15:49:46 +01:00
Tom Payne
65907a6005 Add rotation example 2013-03-09 21:51:09 +01:00
Cédric Moullet
0bf9f9a0a7 Fix reference and title according to @erilem comments. 2013-03-09 13:16:56 +01:00
Tom Payne
25fd391edd Merge pull request #329 from twpayne/animation-clean-ups
Animation clean ups
2013-03-09 04:02:29 -08:00
Cédric Moullet
eb6630c3f7 Add single image WMS with custom projection example 2013-03-09 07:50:56 +01:00
Tom Payne
4a7a5fe220 Sort properties alphabetically 2013-03-09 02:38:52 +01:00
ahocevar
b971fc1aae Bringing back the style-rules example
Features are now created programmatically as
GeoJSONFeatureCollection.
2013-03-08 16:26:18 +01:00
Tom Payne
2354207b47 Make hue/saturation example prettier 2013-03-08 15:13:26 +01:00
Tim Schaub
7f62b26c80 New example style 2013-03-07 23:48:23 -07:00
Tim Schaub
ee75c4b90e Use new projection getter 2013-03-07 23:48:10 -07:00
Tim Schaub
85a1599a1a Removing the style rules example for now
The addFeatures method on layer is going to go away temporarily (so all feature adding will take advantage of shared vertices structures).  Later we can accept feature arrays in parseFeatures and rename the method back to addFeatures.
2013-03-07 23:32:56 -07:00
Tim Schaub
4422e3e73b Merge branch 'master' of github.com:openlayers/ol3 into vector 2013-03-07 23:10:06 -07:00
Tim Schaub
5ce114c1b6 Style in example 2013-03-07 22:29:00 -07:00
Tom Payne
21d34f1cc8 Rename projection functions for a friendlier API
The following functions are renamed:

getTransform -> getTransformForProjections
getTransformFromCodes -> getTransform
transform -> transformWithProjections
transformWithCodes -> transform

With this change, the faster functions that avoid projection look-up
have longer names and are used internally, whereas the slower but
friendlier short name functions are available for users.
2013-03-07 13:39:40 +01:00