Commit Graph

44 Commits

Author SHA1 Message Date
Antoine Abt
b169ef2094 Add renderer guess in example shared file
& use it in every example.
2014-02-13 17:21:03 +01:00
Tom Payne
ae215c7c0b Remove no-longer-needed typecasts 2014-02-06 22:33:42 +01:00
Tom Payne
901af3c15f Use string instead of ol.control.ScaleLineUnits enum in examples 2014-02-06 22:33:37 +01:00
Éric Lemoine
1acc542bb6 Use the renderer map option in the examples 2014-02-06 16:56:15 +01:00
Tom Payne
2ccec58878 Activate HiDPI support in wms-custom-proj example 2014-01-15 15:55:20 +01:00
Tom Payne
8ffe910ebf Apply center constraint in custom projection examples 2013-09-30 10:17:24 +02:00
Tim Schaub
e806f51b3d Changing extent structure back to single array: [minX, minY, maxX, maxY]
This means we'll have to have a new structure and new methods for 3D envelopes.
2013-09-15 00:31:32 -06:00
Tim Schaub
de0e8aeced New extent structure in examples 2013-09-14 21:14:55 -06:00
Tom Payne
8f8f94e697 Rename ol.layer.TileLayer to ol.layer.Tile 2013-09-09 15:14:45 +02:00
Tom Payne
8f6f5e42c6 Rename ol.source.TiledWMS to ol.source.TileWMS 2013-09-09 15:12:38 +02:00
Tim Schaub
716b7b0cec Export ol.control namespace instead of ol.control.defaults function 2013-09-04 13:55:54 -06:00
Éric Lemoine
729039ba04 Adapt examples to new signature for ol.Attribution 2013-08-30 16:50:36 +02:00
Éric Lemoine
3f6b9c9434 Use ol.Collection#extend in examples
This commit changes the examples to using ol.control.defaults().extend to extend the collection of controls. This is in preparation for a future commit that will remove the 2nd argument to ol.control.defaults. The same is done for ol.interaction.defaults.
2013-08-19 14:25:38 +02:00
Tom Payne
46553c719c Rename ol.projection to ol.proj 2013-05-30 18:55:58 +02:00
Tom Payne
a642868cfa Port examples to new extents 2013-04-19 10:03:36 +02:00
Tom Payne
02196c94b5 Redefine ol.Coordinate to be Array.<number> 2013-04-05 12:30:37 +02:00
Éric Lemoine
7949cdaa82 crossOrigin defaults to null 2013-03-21 10:37:31 +01:00
Bruno Binet
6cf20ef82f Remove unused goog.require directives
See #367.
2013-03-14 14:57:21 +01: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
Tom Payne
6bcbd25e2f Merge pull request #295 from openlayers/refactor-examples
Refactor examples
2013-03-07 04:27:18 -08:00
Éric Lemoine
3c37e6da56 Make custom proj example use tile layers only 2013-03-07 12:36:09 +01:00
Bruno Binet
7f9e327a65 Merge pull request #304 from bbinet/projection-improvements
Some projection improvements
2013-03-06 16:53:14 -08:00
Bruno Binet
9d88273161 ol.Projection now takes a single argument
which is called ol.ProjectionOptions.
2013-03-07 01:36:39 +01:00
Tom Payne
441092dad6 Don't use ol.Collection in examples 2013-03-06 17:00:16 +01:00
Éric Lemoine
57a86353cd zoomFactor defaults to 2 2013-03-05 09:59:30 +01:00
ahocevar
586f393492 Support tile sources without configured projection
This change adds a lot of flexibility to working with tile
layers: Sources where the server projection or tile grid do not
matter can now be constructed without specifying a projection or
tile grid.

The tileUrlFunction/imageUrlFunction now also creates updated
URLs when the params of the layer change, so things like
mergeNewParams in ol2 will be possible.

A nice side effect of this whole change is that there is no more
duplicated code between tiled and single image WMS layers.

While I was at it, I also fixed a WMS 1.1.1 axis order issue
and incorrect STYLES params (STYLES=& instead of STYLES&).
2013-03-05 00:46:58 +01:00
Éric Lemoine
01d49ef9c9 Remove references to goog in examples 2013-03-03 17:01:37 +01:00
Tom Payne
fcc620af7d Separate ol.projection module from ol.Projection class 2013-03-03 13:09:13 +01:00
Éric Lemoine
2bc8e1a570 Example uses exported properties 2013-02-20 11:55:28 +01:00
Éric Lemoine
3d0682a4d4 Use an ImageLayer in wms-custom-proj example 2013-02-14 23:36:36 +01:00
Tom Payne
f9eb7dc477 Add missing requires to examples 2013-01-30 23:47:13 +01:00
Éric Lemoine
dc9fb06185 Remove ref to userProjection
The wms-custom-proj example sets a userProjection in the map while userProjection is gone for now. It was removed in 927cffb2.
2013-01-24 10:32:32 +01:00
ahocevar
7c05587aed Merge pull request #114 from ahocevar/resolutions
Use validity extent to generate default resolutions. r=@twpayne,@elemoine
2013-01-16 07:17:10 -08:00
Tom Payne
936132cd46 Update examples to read renderer from query string 2013-01-15 10:26:43 +01:00
ahocevar
87ce763ccb Use validity extent to generate default resolutions
Previously, the TiledWMS source generated a resolutions array
derived from the world extent in meters, to match the default
Web Mercator resolutions of the map. This wouldn't work for
projections with distance units different than meters. It is
better to commit to a default resolutions array where zoom level
0 is the validity extent of the projection (not the Web Mercator
world extent!) at a 256 pixel tile size.
2013-01-14 16:10:55 +01:00
Éric Lemoine
927cffb2b7 Add view abstraction 2013-01-09 14:03:16 +01:00
Frederic Junod
6eb505eb2b Remove question mark from wms urls (see #85) 2012-11-08 09:02:03 +01:00
ahocevar
3d84571043 Use WebGL now that server sends CORS headers (see #75) 2012-11-03 10:33:20 +01:00
Frederic Junod
127c00e1ea Use jpeg tiles for background layer 2012-11-02 15:52:34 +01:00
ahocevar
eb4a8683e2 Projection handling improvements
* The Map's private createProjection_ method is now a public
  method of the Projection. It is also used by TiledWMSSource
  to calculate the appropriate projection from the user
  configuration.
* ol.Projection.addProjection now adds the transformation for
  the source == target case. This makes it easy for the user
  to create custom projection maps without including proj4js and
  without adding a custom transformation, as long as the
  userProjection equals the projection.
* The TiledWMSSource now uses the same default resolutions as
  the map (i.e. the OSM resolutions)
* The modulo calculation for wrapping extents now works for all
  grid configurations, by not calculating the number of columns
  based on an assumption about the way the zoom levels relate to
  resolutions.
* The wms-custom-proj example now shows how to properly
  configure a custom resolution, i.e. by using the validity
  extent of the projection as its extent.
2012-10-31 13:17:58 +01:00
ahocevar
b170fa3d16 Using DOM renderer; no custom extent for layers
The server does not send CORS headers, so we cannot use the
WebGL renderer. Since the layers use the projection's extent,
it is not necessary to specify the extent.
2012-10-29 09:34:53 +01:00
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
dd93c24a07 Add tiled wms with custom projection 2012-10-28 07:26:05 +01:00