Commit Graph
100 Commits
Author SHA1 Message Date
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
Tom Payne 874583656e Use strings rather than ol.projection.get in examples 2013-03-07 13:31:11 +01:00
Tom Payne eaa17758bd Allow strings to be used wherever projections are needed 2013-03-07 13:29:40 +01:00
Tom Payne afcbec469a Rename ol.projection.getFromCode to ol.projection.get 2013-03-07 13:29:39 +01:00
Tom Payne 6bcbd25e2f Merge pull request #295 from openlayers/refactor-examples
Refactor examples
2013-03-07 04:27:18 -08:00
Tom Payne d4b58d489f Correct description in side-by-side example 2013-03-07 03:15:19 +01:00
Tom Payne 3c701067b3 Remove animations from side-by-side example 2013-03-07 02:58:00 +01:00
Tom Payne 674eb9b396 Add animation example 2013-03-07 02:56:28 +01:00
Tom Payne 50cb6294ee Remove brightness/contrast from side-by-side example 2013-03-07 01:56:41 +01:00
Tom Payne bea6b644af Add brightness/contrast example 2013-03-07 01:56:41 +01:00
Tom Payne 8ab00689b2 Remove hue/saturation from side-by-side example 2013-03-07 01:56:41 +01:00
Tom Payne f0466ef9c7 Add hue/saturation example 2013-03-07 01:56:41 +01:00
Tom Payne f942333f48 Add MapQuest example 2013-03-07 01:18:32 +01:00
Tom Payne 31b1f8b5b0 Add missing export 2013-03-06 21:34:18 +01:00
Tom Payne a686a0a893 Remove two-layers example 2013-03-06 21:29:23 +01:00
Tom Payne 58323bb8fc Add export JPEG example 2013-03-06 21:28:59 +01:00
Tom Payne 479e7fc8dd Make Stamen example prettier 2013-03-06 21:08:06 +01:00
Tom Payne b07c1cce1f Add mouse position example 2013-03-06 20:57:48 +01:00
Tom Payne fe7f112c41 Remove mouse position control from side-by-side example 2013-03-06 20:57:48 +01:00
Tom Payne 05c21e6f1c Add scale line example 2013-03-06 20:46:53 +01:00
Tom Payne 09b75f8044 Don't include scale line in default controls 2013-03-06 20:46:52 +01:00
Tom Payne 6dab2cd466 Remove scale line from full screen example 2013-03-06 20:46:52 +01:00
Tom Payne 99870acd19 Add TileJSON example 2013-03-06 20:46:52 +01:00
Tom Payne 3e7cd5fffb Add Bing Maps example 2013-03-06 20:46:52 +01:00
Tom Payne 818b4a9d5e Remove Bing Maps from two-layers example 2013-03-06 20:21:40 +01:00
Tom Payne d60a6e943b Don't use ol.Collection in simple example 2013-03-06 20:21:39 +01:00
Tom Payne 65e003db50 Merge pull request #274 from twpayne/map-layers-api
ol.Collection versus array
2013-03-06 10:48:48 -08:00
Tom Payne 6c58da95e6 Merge pull request #300 from twpayne/stamen-unique-attribution
Use a single, shared attribution for Stamen sources
2013-03-06 09:27:44 -08:00
Tom Payne ad6cb91b73 Merge pull request #296 from fredj/bootstrap
Port example list to Bootstrap
2013-03-06 08:56:43 -08:00
Tom Payne e027f9771e Use a single, shared attribution for Stamen sources
This ensures that the attribution only appears once, even if multiple
Stamen layers are used in the same map.
2013-03-06 17:53:33 +01:00
Tom Payne c48e281c68 Add ol.Map.removeLayer 2013-03-06 17:17:32 +01:00
Tom Payne fcbd758f48 Add ol.Map.addLayer 2013-03-06 17:00:17 +01:00
Tom Payne 441092dad6 Don't use ol.Collection in examples 2013-03-06 17:00:16 +01:00
Tom Payne 61982646ba Allow layers to be passed as an array when creating a map 2013-03-06 16:59:09 +01:00
Tom Payne 388eac3838 Merge pull request #293 from twpayne/fix-293
Build error
2013-03-06 07:56:23 -08:00
Tom Payne 61552e6664 Merge pull request #294 from twpayne/collection
Collection improvements
2013-03-06 07:49:53 -08:00
Tom Payne 220beb5177 Simple and whitespace builds use internal, not external, source 2013-03-06 16:00:15 +01:00
Tom Payne 3e7c913c44 Add ol.Collection.remove 2013-03-06 15:53:11 +01:00
Tom Payne 0a38f2f7a7 Don't export ol.Collection.getArray 2013-03-06 15:50:07 +01:00
Tom Payne 905a0059db Remove unused insert_at, set_at, and remove_at events 2013-03-06 15:50:03 +01:00
Tom Payne d8a73d12ed Fix navbar link, thanks @fredj 2013-03-06 15:19:47 +01:00
Tom Payne 3b9d500818 Don't store templates in map div 2013-03-06 15:19:47 +01:00
Tom Payne 3491b55fb2 Add missing closing tag 2013-03-06 15:19:47 +01:00
Tom Payne bcea43dcd6 Don't lint Bootstrap JavaScript 2013-03-06 15:19:47 +01:00
Tom Payne fa448951d9 Add simple example 2013-03-06 15:19:47 +01:00
Tom Payne c87aaa3eb1 Port WMS example to Bootstrap 2013-03-06 15:19:47 +01:00
Tom Payne 80da379d60 Port WMS custom projection example to Bootstrap 2013-03-06 15:19:47 +01:00
Tom Payne ca3f6e0fdf Port WMS capabilities example to Bootstrap 2013-03-06 15:19:47 +01:00
Tom Payne 6af6e355f9 Port two layers example to Bootstrap 2013-03-06 15:19:47 +01:00
Tom Payne 2ca53da9f2 Port side-by-side example to Bootstrap 2013-03-06 15:19:47 +01:00
Tom Payne f1af80189f Port EPSG:4326 example to Bootstrap 2013-03-06 15:19:47 +01:00
Tom Payne 34c6652ed6 Port canvas tiles example to Bootstrap 2013-03-06 15:19:47 +01:00
Tom Payne d20aa69f5f Port anchored elements example to Bootstrap 2013-03-06 15:19:47 +01:00
Tom Payne 2d454c429a Add examples.css 2013-03-06 15:19:47 +01:00
Tom Payne a96fa30e97 Add Bootstrap 2.3.1 2013-03-06 15:19:47 +01:00
Tom Payne 3a7c4bd3bc Merge pull request #273 from twpayne/controls-api
reconsider the way we specify controls on the map
2013-03-06 05:59:31 -08:00
Tom Payne 38eaa9cfb2 Use an array to specify additional interactions 2013-03-06 13:19:50 +01:00
Tom Payne 363cb87e1a Use an array to specify additional controls 2013-03-06 13:19:34 +01:00
Tom Payne 23f0097517 Add ol.Collection.extend 2013-03-06 13:18:34 +01:00
Tom Payne c9cce57895 Add comment about ugly typecast 2013-03-06 13:06:35 +01:00
Tom Payne 671ee79c74 Add ol.interaction.defaults 2013-03-06 12:36:49 +01:00
Tom Payne a94eadf402 Port examples to ol.control.defaults 2013-03-06 12:36:49 +01:00
Tom Payne 8ae009d401 Add ol.control.defaults 2013-03-06 12:36:48 +01:00
Tom Payne 48852aa3ea Merge pull request #284 from twpayne/full-screen-fit-projection-extent
Fit map to projection extent in full screen example
2013-03-06 02:50:46 -08:00
Tom Payne 1ae20641ef Make mouse position control options argument optional 2013-03-05 18:58:29 +01:00
Tom Payne f581390655 Make zoom control options argument optional 2013-03-05 18:56:41 +01:00
Tom Payne c521f92408 Make attribution control options argument optional 2013-03-05 18:56:34 +01:00
Tom Payne 8a66095a4a Export some ol.View2D functions 2013-03-05 17:03:33 +01:00
Tom Payne 5b0af9152a Fit map to projection extent in full screen example 2013-03-05 16:49:36 +01:00
Tom Payne 3b29ec610b Merge pull request #280 from twpayne/check-requires-in-comments-fixes
Improve comment parsing when checking for requires
2013-03-05 03:05:52 -08:00
Tom Payne 254a96e036 Improve comment parsing when checking for requires 2013-03-05 11:51:53 +01:00
Tom Payne 68919b5ee3 Merge pull request #267 from twpayne/stamen-fixes
Stamen fixes
2013-03-05 02:14:21 -08:00
Tom Payne 985b4f57c1 Merge pull request #260 from twpayne/projections-in-feet
Projections in feet
2013-03-05 01:17:56 -08:00
Tom Payne 6f2d15bb5f Add Stamen example 2013-03-05 10:05:22 +01:00
Tom Payne 6d6188ea79 Correct Stamen source 2013-03-05 10:05:22 +01:00
Tom Payne 1bac674eca Merge pull request #263 from twpayne/canvas-renderer-optimizations
Canvas renderer optimizations
2013-03-04 15:21:38 -08:00
Tom Payne 61acce98e3 Merge pull request #266 from twpayne/lint-cleanups
Lint cleanups
2013-03-04 12:07:52 -08:00
Tom Payne a937083d10 Don't redraw already rendered tiles 2013-03-04 21:07:17 +01:00
Tom Payne fb668a7fc6 Add opaque flag to ol.source.TileSource 2013-03-04 21:07:17 +01:00
Tom Payne 4eebe5aaf2 Merge spec and src lint targets 2013-03-04 20:51:27 +01:00
Tom Payne f6fe7bd36c Make spec indentation pass strict mode 2013-03-04 20:47:20 +01:00
Tom Payne 9b122815ce Lint specs with strict mode 2013-03-04 20:46:39 +01:00
Tom Payne 2741daa977 Merge pull request #265 from twpayne/check-requires-in-specs
Check requires in specs
2013-03-04 11:31:37 -08:00
Tom Payne 3f933e01bd Merge pull request #264 from twpayne/webgl-underscores
Rename WebGL variables to match CSS shaders specification
2013-03-04 11:03:21 -08:00
Tom Payne df5f74b3c0 Add missing requires to specs 2013-03-04 20:02:55 +01:00
Tom Payne e776371f54 Check for requires in specs 2013-03-04 20:02:28 +01:00
Tom Payne 14e76b3a11 Don't assume that goog.requires are always first 2013-03-04 20:02:16 +01:00
Tom Payne 08dbeed23f Rename WebGL variables to match CSS shaders specification
See https://dvcs.w3.org/hg/FXTF/raw-file/tip/filters/index.htm
2013-03-04 19:45:43 +01:00
Tom Payne 44e3e228eb Add canvas map to two layers demo 2013-03-04 18:45:24 +01:00
Tom Payne b9a9e84c1b Handle projections in feet in scale line control 2013-03-04 10:40:01 +01:00
Tom Payne 87d6208403 Add international feet to projection units 2013-03-04 10:39:52 +01:00
Tom Payne 06bb6e19f1 Merge pull request #215 from twpayne/scaleline-control
ScaleLine control
2013-03-04 01:27:33 -08:00
Tom Payne c35d07d481 Rename minimumWidth to minWidth 2013-03-04 09:58:09 +01:00
Tom Payne fd1d2f6aeb Merge pull request #259 from twpayne/more-in-place-transforms
Use more in-place transforms where possible
2013-03-03 15:47:58 -08:00
Tom Payne f3d01dcbd3 Add scale line to examples 2013-03-04 00:43:38 +01:00
Tom Payne b663fd69f1 Add scale line control options to map options 2013-03-04 00:43:37 +01:00
Tom Payne 8c2b01948b Add ScaleLine control 2013-03-04 00:43:37 +01:00
Tom Payne 10f1755ad4 Merge pull request #252 from twpayne/point-resolution
Point resolution
2013-03-03 15:36:08 -08:00
Tom Payne 5c6821ce71 Use more in-place transforms where possible 2013-03-04 00:31:36 +01:00
Tom Payne a8760108d4 Estimate point resolution for Proj4js projections 2013-03-04 00:25:42 +01:00