Commit Graph
100 Commits
Author SHA1 Message Date
Tom Payne 4906bdced5 Add working WebGL renderer 2012-07-22 03:10:32 +02:00
Tom Payne c82bacb762 Add ol.TileBounds.equals 2012-07-22 03:06:26 +02:00
Tom Payne f46c9e12fb Add ol.TileBounds.containsTileBounds 2012-07-22 03:06:25 +02:00
Tom Payne 89efc96dd5 Don't bother making forEachTileCoord abortable 2012-07-21 01:08:44 +02:00
Tom Payne 277c1ea3a6 Use XYZ to indicate OpenStreetMap-style tile grids 2012-07-21 01:05:55 +02:00
Tom Payne 0602942cf8 Add ol.Color 2012-07-21 01:05:55 +02:00
Tom Payne 0d7426e1be Fix bug where forEachVisibleLayer returned invisible layers 2012-07-21 01:05:55 +02:00
Tom Payne e81e857d75 Merge pull request #12 from fredj/plovr-download
Fix plovr download path
2012-07-20 10:25:08 -07:00
Tom Payne 1190bc08db Make demo layer more opaque 2012-07-19 15:47:19 +02:00
Tom Payne e2824745d1 Ensure visibility and opacity are set when DOM layer renderer is created 2012-07-19 15:46:02 +02:00
Tom Payne 08b4ef665b Call inherited method, thanks @elemoine 2012-07-19 14:58:02 +02:00
Tom Payne 9ce406c203 Fix type, thanks @elemoine 2012-07-19 10:48:25 +02:00
Tom Payne 513d8e7268 Create ol.Size around goog.math.Size 2012-07-19 10:46:43 +02:00
Tom Payne c547404615 Create ol.Coordinate around goog.math.Coordinate 2012-07-19 10:34:12 +02:00
Tom Payne d62ba69458 Order controls alphabetically 2012-07-19 10:10:07 +02:00
Tom Payne 33d252f0f7 Only start drag pan if shift key is not pressed 2012-07-19 10:08:35 +02:00
Tom Payne 5e39d051e6 Set default user projection to EPSG:4326 2012-07-19 10:02:34 +02:00
Tom Payne e0d17ca09c Add user projections 2012-07-19 10:02:34 +02:00
Tom Payne 305462f57a Stricter type checking for map projection 2012-07-19 10:02:34 +02:00
Tom Payne 43c32e6da7 Differentiate between identity and clone transforms 2012-07-19 09:51:08 +02:00
Tom Payne 5ace389ccb Redraw map when WebGL context is restored 2012-07-19 09:12:22 +02:00
Tom Payne d83235b5dc Include drag zoom control in default map 2012-07-19 00:29:25 +02:00
Tom Payne d47eb3453f Implement initial drag zoom control (shift + drag) 2012-07-19 00:29:25 +02:00
Tom Payne 3ff84dce9b Add ol.Extent.boundingExtent 2012-07-19 00:29:25 +02:00
Tom Payne 4e347dcf45 Don't drag on incompletely defined maps 2012-07-19 00:29:25 +02:00
Tom Payne 0e3b97a0b6 s/event/mapBrowserEvent/g 2012-07-19 00:29:25 +02:00
Tom Payne 1d6101a5a1 Implement ol.control.DragPan 2012-07-19 00:29:25 +02:00
Tom Payne 4299cf4fae Add startCenter and startCoordinate to ol.control.Drag 2012-07-19 00:29:24 +02:00
Tom Payne 82b8a46752 Use RAW mode for demo while ol.Object is not adapted for compiled mode 2012-07-19 00:29:24 +02:00
Tom Payne 15d2ad984b Bind map layers in demo 2012-07-19 00:29:24 +02:00
Tom Payne a6e2b501bd Enable DOM renderers to share tile layers 2012-07-19 00:29:24 +02:00
Tom Payne 4ddcfcc037 Add context argument to Tile.getImage to support re-use in DOM renderer 2012-07-19 00:29:24 +02:00
Tom Payne eb43cf14c1 Clean up layer renderers when layers changes 2012-07-19 00:29:24 +02:00
Tom Payne 376d75ea4f Rename ol.Projection.createFromCode to getFromCode 2012-07-19 00:29:24 +02:00
Tom Payne da941562cc Handle background color in ol.webgl.Map 2012-07-19 00:29:24 +02:00
Tom Payne 092fce96ec Add background color property 2012-07-19 00:29:24 +02:00
Tom Payne 52ce0b3fd0 Assure redraw is called when layer becomes invisible 2012-07-19 00:29:24 +02:00
Tom Payne d3ed8b315c Make ol.Map.getSize public 2012-07-19 00:29:24 +02:00
Tom Payne 0a33077ecc Add ol.Rectangle.toString 2012-07-19 00:29:24 +02:00
Tom Payne aab2bc093a Add experimental drag control (to be replaced) 2012-07-18 15:12:31 +02:00
Tom Payne 4754ed1cc2 Add ol.control.MouseWheelZoom 2012-07-18 15:12:30 +02:00
Tom Payne c6343ed2bc Add experimental controls infrastructure, thanks @elemoine 2012-07-18 15:12:30 +02:00
Tom Payne 40c767c330 Remove main.json (replaced with ol.json) 2012-07-18 09:01:12 +02:00
Tom Payne bffc586218 Rename ol.Map.setExtent to fitExtent 2012-07-18 07:34:14 +02:00
Tom Payne 88721ce230 Use DOM renderer by default 2012-07-18 07:33:11 +02:00
Tom Payne fc603372c2 Add renderer hint 2012-07-18 07:32:40 +02:00
Tom Payne e85ca98179 Refactor build system and layout 2012-07-18 02:26:41 +02:00
Tom Payne f166285fd2 Remove api.json 2012-07-18 01:17:37 +02:00
Tom Payne cf2bb5a841 Don't use webgl-debug.js for now 2012-07-18 00:52:31 +02:00
Tom Payne 0abc4219b3 Document various FIXMEs 2012-07-18 00:35:44 +02:00
Tom Payne 659ef30802 Lift common composite rendering code into ol.Map 2012-07-18 00:21:20 +02:00
Tom Payne 86335211a6 Always pass base to parseInt 2012-07-18 00:12:22 +02:00
Tom Payne a421943eb1 Clear framebuffer before writing tiles 2012-07-18 00:10:43 +02:00
Tom Payne 4ca1fd00c7 Suppress compiler warning 2012-07-18 00:10:43 +02:00
Tom Payne 854280eb11 Snapshot ol.webgl.Map 2012-07-18 00:10:43 +02:00
Tom Payne 7febc1c8b3 Add ol.webgl.TileLayerRenderer.getMatrix 2012-07-18 00:10:43 +02:00
Tom Payne b6db84a54c Add ol.webgl.LayerRenderer.getMatrix 2012-07-18 00:10:43 +02:00
Tom Payne 29f149976f Add missing require 2012-07-18 00:10:43 +02:00
Tom Payne b93cb7c47a Add ol.Rectangle.normalize 2012-07-18 00:10:43 +02:00
Tom Payne fad873d44c Refine getSize in terms of getWidth and getHeight 2012-07-18 00:10:42 +02:00
Tom Payne db59dfd5a2 Rename textureCache to tileTextureCache 2012-07-18 00:10:42 +02:00
Tom Payne 7dc2884498 Fix tile edge artefacts 2012-07-18 00:10:42 +02:00
Tom Payne 6abcc56789 Suppress compiler warnings 2012-07-18 00:10:42 +02:00
Tom Payne d0233600d5 Add ol.TileGrid.getTileBoundsExtent 2012-07-18 00:10:42 +02:00
Tom Payne 0d5bc44326 Add ol.Rectangle.getSize 2012-07-18 00:10:42 +02:00
Tom Payne f77ad158f0 Initial working WebGL TileLayerRenderer 2012-07-17 18:56:10 +02:00
Tom Payne 40e83b9258 Don't redraw if center or resolution is not defined 2012-07-17 18:55:33 +02:00
Tom Payne be94eafae6 Override getLayer in ol.webgl.TileLayerRenderer 2012-07-17 17:39:47 +02:00
Tom Payne aded70d6e6 Add ol.TileBounds.getSize 2012-07-17 17:28:51 +02:00
Tom Payne 41175a475f Add ol.Rectangle.intersects 2012-07-17 15:51:13 +02:00
Tom Payne d8a5126265 Snapshot WebGL renderer 2012-07-17 14:07:29 +02:00
Tom Payne 51e1d364c4 Remove unnecessary texture parameters 2012-07-17 14:07:16 +02:00
Tom Payne 7c290e9e30 Add skeleton ol.webgl.TileLayerRenderer shaders 2012-07-17 14:06:45 +02:00
Tom Payne 117321ea43 Name event handlers more consistently 2012-07-17 14:06:01 +02:00
Tom Payne ab702c29e6 Replace forEachLayer with forEachVisibleLayer and pass layer renderer 2012-07-17 14:05:15 +02:00
Tom Payne ac80a6e0b6 Merge shaders into single file 2012-07-17 13:41:38 +02:00
Tom Payne 7e2816ecd8 Implement shaders as singletons 2012-07-17 13:17:40 +02:00
Tom Payne 3ba0525495 Snapshot WebGL renderer 2012-07-17 12:15:33 +02:00
Tom Payne 0db1b0c0d6 Override getMap in ol.webgl.LayerRenderer 2012-07-17 12:13:51 +02:00
Tom Payne e0f840dd27 Override method rather than adding a new one 2012-07-17 12:13:15 +02:00
Tom Payne 49c9a409e2 Use @nosideeffects in webgl-debug externs 2012-07-17 12:12:38 +02:00
Tom Payne e3bbd67092 Use @nosideeffects in Proj4js externs 2012-07-17 12:12:28 +02:00
Tom Payne 253d62763f Refactor context lost handling 2012-07-17 12:01:32 +02:00
Tom Payne 495630355a Add texture cache 2012-07-17 12:01:32 +02:00
Tom Payne 1aaa59a110 Move ol.webgl.WebGLContextEventType into ol.webgl 2012-07-17 11:56:44 +02:00
Tom Payne da9c39b737 Add missing requires 2012-07-17 08:57:47 +02:00
Tom Payne 472f6ddd17 Satisfy more recent gjslint 2012-07-17 08:55:45 +02:00
Tom Payne ff8b9133b3 Add more functions and clean up unnecessary comments 2012-07-16 13:11:44 +02:00
Tom Payne c162f3582d Remove unnecessary comments 2012-07-16 13:10:54 +02:00
Tom Payne 5c168d3b89 Update externs files for gjslint's --limited_doc_files 2012-07-15 22:34:09 +02:00
Tom Payne 13ce1aa374 Use --limited_doc_files option for externs 2012-07-15 22:31:04 +02:00
Tom Payne a84198f756 OpenStreetMap wraps X and crops Y 2012-07-15 22:22:46 +02:00
Tom Payne 8df2404e77 Return null tiles when out of range 2012-07-15 22:22:25 +02:00
Tom Payne bf31b614e8 Allow out-of-range signalling with undefined 2012-07-15 22:21:25 +02:00
Tom Payne e23e19c074 Snapshot ol.webgl.TileLayerRenderer 2012-07-15 20:50:21 +02:00
Tom Payne dd40b4a758 Dispatch change event on load 2012-07-15 20:50:21 +02:00
Tom Payne ddbe0dccaf Correct target 2012-07-15 20:50:21 +02:00
Tom Payne 249449df3b Listen for changes in layer renderers 2012-07-15 20:50:21 +02:00
Tom Payne 74bfdd7ebe Cope with missing layer renderers 2012-07-15 20:50:21 +02:00
Tom Payne bcf6e7d7b1 Add ol.DEBUG_WEBGL @define 2012-07-15 20:50:21 +02:00