Commit Graph

31 Commits

Author SHA1 Message Date
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