Commit Graph
100 Commits
Author SHA1 Message Date
Éric Lemoine d713c9b8ed Deal with null images 2013-02-17 23:07:58 +01:00
Éric Lemoine be6c1a1a27 Test the image layer renderer's transform matrix 2013-02-17 22:47:19 +01:00
Éric Lemoine 85eec4e9b8 Avoid busy-waiting while images load
This is to be in conformance with the work done with #184.
2013-02-17 22:47:19 +01:00
Éric Lemoine a3c65978d1 Make ol.Image emit change events 2013-02-15 17:57:05 +01:00
Éric Lemoine 1e4229497d Do not sort resolutions array
We assert that the resolutions array is sorted instead of sorting it ourselves. This is to consistent with ol.TileGrid.
2013-02-15 17:52:06 +01:00
Éric Lemoine e1505abe0d Rename ol.Rectangle scale to scaleFromCenter 2013-02-15 17:43:27 +01:00
Éric Lemoine 3d0682a4d4 Use an ImageLayer in wms-custom-proj example 2013-02-14 23:36:36 +01:00
Éric Lemoine 02843939e3 Add ol.renderer.webgl.ImageLayer 2013-02-14 23:36:36 +01:00
Éric Lemoine 17a17b01b6 Add ol.renderer.dom.ImageLayer 2013-02-14 23:36:36 +01:00
Éric Lemoine 238c695265 Add FIXME to ol.control.Attribution 2013-02-14 23:36:36 +01:00
Éric Lemoine 8ae25684f9 Add ol.source.StaticImage 2013-02-14 23:36:36 +01:00
Éric Lemoine 62b10cf878 Add ol.source.SingleImageWMS 2013-02-14 23:36:36 +01:00
Éric Lemoine aa9f820723 Add scale to ol.Rectangle 2013-02-14 23:36:36 +01:00
Éric Lemoine 35a6cac37f Add containsExtent to ol.Extent 2013-02-14 23:36:36 +01:00
Éric Lemoine cf206a103d Add ol.Image class 2013-02-14 23:36:36 +01:00
Éric Lemoine 49696390fc Add ol.ImageUrlFunction 2013-02-14 23:36:36 +01:00
Éric Lemoine 8b83345bd2 Add equals to Rectangle 2013-02-14 23:36:35 +01:00
Éric Lemoine b6b493c198 Use vec2 for vTexCoord 2013-02-14 11:54:01 +01:00
Éric Lemoine de7a1d8f81 Apply transform matrix to text coords
With this commit the transform matrix is applied to each texture coordinate, as opposed to each fragment. This leads to less calculation on the GPU.
2013-02-14 09:56:45 +01:00
Éric Lemoine bde61a0b4b Simplify control architecture 2013-02-04 10:18:33 +01:00
Éric Lemoine bfb6d0ca87 Missing var's in a test file 2013-01-31 11:01:06 +01:00
Éric Lemoine b6ed5f2164 Use namespaces for tests
With this commit test files provide namespaces (using goog.provide). This fixes the issue reported by @bartvde where goog objects cannot be used in Jasmine "describe" functions. It also frees us from having to add script tags for the test files in test/ol.html.
2013-01-31 10:18:21 +01:00
Éric Lemoine 713828d953 Change a comma to a semi-colon (thanks @bbinet) 2013-01-29 10:33:35 +01:00
Éric Lemoine 8713e84821 Change class names in DOM renderer 2013-01-29 10:24:25 +01:00
Éric Lemoine 1d2551dbcb Do not draw image if image is null 2013-01-28 12:41:46 +01:00
Éric Lemoine 98b264e8ce Add comment 2013-01-24 22:31:57 +01:00
Éric Lemoine 80b38e608b No more need for listener keys array 2013-01-24 22:31:53 +01:00
Éric Lemoine 4a64837ba1 Make map handle background color changes 2013-01-24 22:31:08 +01:00
Éric Lemoine 2a28b7c699 Add comment 2013-01-24 22:31:08 +01:00
Éric Lemoine 15898b559b Make map handle size changes 2013-01-24 22:31:08 +01:00
Éric Lemoine 71a462cd54 Make map handle view changes
With the frameState stuff the map renderer need not listen to view changes. The map renderer receives orders from the map. These orders are renderFrame_ calls with frameState objects representing the current state.
2013-01-24 22:31:06 +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
Éric Lemoine d04b2bb2bd Fix typo 2013-01-24 10:28:28 +01:00
Éric Lemoine 8d56b5f261 Update readme.md 2013-01-22 08:39:37 +01:00
Éric Lemoine c6a8e5ef72 Remove unused Jasmine matchers 2013-01-21 12:29:31 +01:00
Éric Lemoine 7f38c1683e Remove unused TileQueue clear method 2013-01-20 15:15:13 +01:00
Éric Lemoine c0c9cdef15 New tile queue implementation (heapify-powered) 2013-01-18 21:02:09 +01:00
Éric Lemoine 0c1116fe95 Update Bing maps key 2013-01-16 12:31:25 +01:00
Éric Lemoine 927cffb2b7 Add view abstraction 2013-01-09 14:03:16 +01:00
Éric Lemoine b386c38111 Demonstrating user-controlled animation
Inspired from 840ffb6
2013-01-03 12:23:50 +01:00
Éric Lemoine 51636ea0d1 Only appending tiles to the dom after load
A port of f46cdb4 and 4242ef40 from animation-frame branch.
2013-01-03 12:23:50 +01:00
Éric Lemoine 21f3f90ca6 Adjust hue, sat, and constrast in webgl renderer 2012-12-12 15:53:56 +01:00
Éric Lemoine 7b88f44a41 Keep track of tiles we're already listening on 2012-11-11 21:31:12 +01:00
Éric Lemoine 826505c6d4 Register a CHANGE listener even if tile is loading
This fixes an issue easily reproducible in the side-by-side example where the DOM renderer is not notified when tiles loaded by the WebGL renderer have been received.
2012-11-08 21:20:26 +01:00
Éric Lemoine 90e379782c Only appending tiles to the dom after load
A port of f46cdb4 to the current master. The tilelayer renderer can be simplified a bit by waiting to append tiles to the dom until they have loaded. Refs #84 and #33.
2012-11-08 20:03:07 +01:00
Éric Lemoine dd014a3b79 Avoid unneeded parameter concatenations (thanks @twpayne, refs #85) 2012-11-04 19:31:20 +01:00
Éric Lemoine 529c3e8b6a Add ol.TileUrlFunction.createBboxParam 2012-11-03 22:55:54 +01:00
Éric Lemoine b2c71ed269 Add tests showing more usages of createFromTemplate 2012-11-03 00:43:46 +01:00
Éric Lemoine 4a604940a2 The wms-custom-proj example requires more exports 2012-11-02 12:06:24 +01:00
Éric Lemoine 576c54eb61 Move object literal exports to their own file 2012-10-24 17:05:33 +02:00
Éric Lemoine 0ae3f8806e Remove examples/index.js (refs #67) 2012-10-21 21:24:15 +02:00
Éric Lemoine 7ce79207e3 Better design for the full-screen examples
The text div is now placed in the top-right corner of the page. This is to avoid overlapping with the attribution div. On screens that are smaller that 600px the text div is not deplayed at all.
2012-10-21 21:11:27 +02:00
Éric Lemoine d81b232587 Granularize the exports
This commit decomposes exports.txt into multiple, per-component, export files.  This will be required for custom builds;
2012-10-20 22:31:33 +02:00
Éric Lemoine 1e0b43dd00 Better HTML and CSS for the examples
And give the h1 tags a "title" id. The exampleparser.py script uses that as the example title in the index page.
2012-10-20 21:43:34 +02:00
Éric Lemoine b000c052e3 Improve layout of examples index page 2012-10-20 21:43:05 +02:00
Éric Lemoine 3e3b8d6f8b Use OpenLayers 2 examples index 2012-10-19 21:56:59 +02:00
Éric Lemoine 1ac188c906 Add a hostexamples target to Makefile
This target copies the ol built files, examples, and loader script to the build/gh-pages directory, making it possible to host our examples on gh-pages.
2012-10-16 21:56:45 +02:00
Éric Lemoine 4b6ef3c046 Better comments in loader.js 2012-10-16 21:56:35 +02:00
Éric Lemoine 190e21f796 The loader adds link tag for ol.css 2012-10-16 21:55:12 +02:00
Éric Lemoine f4b20175cc Add a specific loader for hosted examples
This loader is responsible for adding ol.js, ol.css and the example-specific js script to the document. This is the loader used in examples when hosted.
2012-10-16 21:51:48 +02:00
Éric Lemoine 1f7ecd2529 Make linter happy 2012-10-16 21:50:20 +02:00
Éric Lemoine 5c6b5cb495 Add BingMaps exports 2012-10-16 21:45:52 +02:00
Éric Lemoine f49f370857 Make linter happy 2012-10-11 18:09:18 +02:00
Éric Lemoine 9c48dff286 Add tests for ol.Map.prototype.disposeInternal 2012-10-11 17:53:35 +02:00
Éric Lemoine 2a76a23b6f Add tests for ol.control.Control 2012-10-11 17:46:47 +02:00
Éric Lemoine 0b411ad69c Have disposeInternal call parent 2012-10-11 17:46:22 +02:00
Éric Lemoine fbc810264b goog.array.forEach does not accept null values 2012-10-10 20:25:53 +02:00
Éric Lemoine 655e04368b disposeInternal implementation for ol.control.Control 2012-10-10 20:24:32 +02:00
Éric Lemoine dc491f9114 disposeInternal implementation for ol.Map 2012-10-10 20:24:18 +02:00
Éric Lemoine 936a769869 Fix typo in ShiftDragZoom (caught by @ahocevar) 2012-09-29 13:47:00 +02:00
Éric Lemoine 9d8155cf9f Move git-update-ghpages from tools to bin 2012-09-28 16:31:45 +02:00
Éric Lemoine 6cf964b3ae Remove old build files 2012-09-28 16:30:06 +02:00
Éric Lemoine 3aabf117bc CONTRIBUTING.md now mentions the precommit target 2012-09-28 16:23:51 +02:00
Éric Lemoine 82406886a2 Add a CONTRIBUTING.md file 2012-09-28 16:19:07 +02:00
Éric Lemoine 8fd77ef330 ol.MapExport takes maxResolution and friends into account 2012-09-28 15:32:00 +02:00
Éric Lemoine 91d582e76e export ol.Projection.transformWithCodes 2012-09-28 15:29:12 +02:00
Éric Lemoine 7a296a273b Export the ol.overlay.Overlay symbol 2012-09-28 15:21:23 +02:00
Éric Lemoine 9af392e217 Change loader.js usage example 2012-09-28 14:25:21 +02:00
Éric Lemoine f60af3910f Explain how to add examples in readme.md 2012-09-28 14:21:16 +02:00
Éric Lemoine 5615eabf66 Update readme.md 2012-09-28 14:02:57 +02:00
Éric Lemoine 896f5203db Change examples directory names to "examples" 2012-09-28 14:01:51 +02:00
Éric Lemoine 310d5bfeaa The serve target needs demos as its source 2012-09-28 13:54:51 +02:00
Éric Lemoine 11915549a3 Make make lint ignore demos/*.combined.js file 2012-09-28 13:52:55 +02:00
Éric Lemoine e3cef24f5f Change examples/demos structure 2012-09-28 13:33:05 +02:00
Éric Lemoine 158e4b1356 Add a readme file to the tools dir 2012-09-28 11:30:32 +02:00
Éric Lemoine e93bb6a39b Add a gh-pages target to Makefile 2012-09-28 11:26:00 +02:00
Éric Lemoine a347454aa3 JSDoc output goes to build/<branch_name>/apidoc 2012-09-28 11:26:00 +02:00
Éric Lemoine e27d0d9dc1 Add a tool to create/update the gh-pages branche 2012-09-28 11:26:00 +02:00
Éric Lemoine a0f747379b Make Travis also build the doc 2012-09-27 18:01:31 +02:00
Éric Lemoine 676a95efd8 Merge remote-tracking branch 'upstream/master' 2012-09-27 17:57:44 +02:00
Éric Lemoine d99a0c164e Make functions @protected or @private
This also makes jsdoc3 happy along the way.
2012-09-27 17:56:29 +02:00
Éric Lemoine a3d888a57b Add FIXME to MapOptions 2012-09-27 15:59:30 +02:00
Éric Lemoine 0535a31bc6 Add zoomDelta option to MapOptions 2012-09-27 15:48:04 +02:00
Éric Lemoine 4f116c2e5b Fix default value of numZoomLevels 2012-09-27 15:46:45 +02:00
Éric Lemoine b8356f5e2e Fix bad copy and paste in mapoptions tests 2012-09-27 15:40:58 +02:00
Éric Lemoine d2f9ebae41 Add mouseWheelZoomDelta option to MapOptions 2012-09-27 15:16:14 +02:00
Éric Lemoine dd425ff922 Export new map options 2012-09-27 14:10:05 +02:00
Éric Lemoine d61a117787 Remove CenterConstraint entirely 2012-09-27 13:44:24 +02:00
Éric Lemoine bd0f3d2015 Zoom control does not know about the constraints 2012-09-27 13:42:30 +02:00
Éric Lemoine 87189293b5 Make the resolution constraint configurable through map options 2012-09-27 13:36:57 +02:00