Commit Graph
100 Commits
Author SHA1 Message Date
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
Tom Payne 00c9c38ab9 Replace spaces with tabs 2012-07-15 20:50:21 +02:00
Tom Payne 377043b20e Add webgl-debug.js externs 2012-07-15 20:50:21 +02:00
Tom Payne 7d8d8253a3 Include webgl-debug.js 2012-07-15 20:42:09 +02:00
Tom Payne b6282ba631 No need to create object 2012-07-15 20:40:16 +02:00
Tom Payne ac1e757fda Clean up stale filter 2012-07-15 19:00:53 +02:00
Tom Payne ca7d010974 Remove ol.Bounds 2012-07-15 19:00:01 +02:00
Tom Payne ae7572aa7a Port ol.webgl.TileLayerRenderer to ol.Rectangle 2012-07-15 18:56:57 +02:00
Tom Payne 63408b82eb Port ol.Map to ol.Rectangle 2012-07-15 18:56:19 +02:00
Tom Payne 4b337ade48 Port ol.Projection to ol.Rectangle 2012-07-15 18:55:53 +02:00
Tom Payne 8c9fbc1478 Port ol.TileGrid to ol.Rectangle 2012-07-15 18:55:33 +02:00
Tom Payne aa6ef496ef Base ol.TileBounds on ol.Rectangle instead of goog.math.Box 2012-07-15 18:54:31 +02:00
Tom Payne ac3d05421b Base ol.Extent on ol.Rectangle instead of goog.math.Box 2012-07-15 18:54:05 +02:00
Tom Payne b4ee35954f Add ol.Rectangle 2012-07-15 18:51:51 +02:00
Tom Payne 582a9e93e0 Snapshot WebGL renderer 2012-07-15 16:32:00 +02:00
Tom Payne 1d567bb2bf Transform tile coords when converting them to URLs 2012-07-15 16:23:03 +02:00
Tom Payne b4c9c1e846 Use normalized tile coordinates (bottom left) 2012-07-15 16:14:24 +02:00
Tom Payne 61ab5c8f49 Refactor shader and program management 2012-07-15 14:11:32 +02:00
Tom Payne 73187bc018 Add ol.webgl.LayerRenderer.getTexture 2012-07-15 12:33:44 +02:00
Tom Payne af8e093768 Add ol.TileLayer.getTileStore 2012-07-15 12:32:42 +02:00
Tom Payne af7dfc60aa Set extent to undefined when it is undefined 2012-07-15 12:32:09 +02:00