Commit Graph
100 Commits
Author SHA1 Message Date
Éric Lemoine e792a121f4 Remove reference to vbarray.js
This file was removed with https://github.com/openlayers/ol3/pull/3516.

Fixes #3702.
2015-08-03 11:06:43 +02:00
Éric Lemoine e99f43af8d Add a clickTolerance option to the Draw interaction 2015-06-15 15:32:34 +02:00
Éric Lemoine e766d00e7b Add upgrade note of ol.DrawEvent and ol.DrawEventType 2015-05-22 11:58:48 +02:00
Éric Lemoine 531b35d7c2 Be consistent with the way we name types 2015-05-21 17:32:32 +02:00
Éric Lemoine 879307da1b Add missing goog.provides in drawinteraction.js 2015-05-21 15:41:51 +02:00
Éric Lemoine 762bb0f055 More specific regex in serve.js
This is to be able to use the dev server (`npm start`) to serve the hosted examples (located in the `build/hosted/<branch>` dir after `make host-examples`).
2015-04-30 09:14:40 +02:00
Éric Lemoine 6a16920378 Use graceful-fs in place of fs
Change generate-requires.js to use the graceful-fs module instead of fs. This is to avoid EMFILE errors on OSX because the maximum number of file descriptors have been reached.
2015-04-29 13:27:25 +02:00
Éric Lemoine e40a51574b Fix test-coverage.js script
Fix test-coverage by only replacing the last occurence of `/src/` when deriving the instrumented file path from the original file path.
2015-04-29 12:00:06 +02:00
Éric Lemoine b4434725a5 Make check-whitespace.py exit 1 on whitespace errors 2015-04-29 09:12:13 +02:00
Éric Lemoine 6d1baec34a Add missing goog.require 2015-04-29 09:10:18 +02:00
Éric Lemoine 507335ea69 Make check-requires.py exit 1 on missing/unused requires 2015-04-29 09:10:04 +02:00
Éric Lemoine 3a03e9f76a Add ol.source.WMTS#getRequestEncoding 2015-04-27 16:40:01 +02:00
Éric Lemoine 2a2fea379e Add ol.source.WMTS#getUrls 2015-04-27 16:40:01 +02:00
Éric Lemoine 079733040f Add a Makefile section to .editorconfig
make requires tabs.
2015-04-26 22:21:37 +02:00
Éric Lemoine 0f2c3bd45f Make host-examples target copy index.js 2015-04-26 21:51:37 +02:00
Éric Lemoine 553403d86e Remove build.cmd, build.py and pake.py 2015-04-26 20:42:44 +02:00
Éric Lemoine 3fdd1f2135 Update bin/loader_hosted_examples.js 2015-04-26 20:42:02 +02:00
Éric Lemoine 190eda1b1f Update test_rendering/index.html 2015-04-26 20:38:42 +02:00
Éric Lemoine f0bdd26b26 Update test_rendering/README.md 2015-04-26 20:37:58 +02:00
Éric Lemoine 2e9f0f4890 Update test/index.html 2015-04-26 20:37:42 +02:00
Éric Lemoine 7988cc7fe9 Update test/README.md 2015-04-26 20:36:14 +02:00
Éric Lemoine 5522f05333 Update CONTRIBUTING.md 2015-04-26 20:21:32 +02:00
Éric Lemoine 4c2c21a5d6 Add Makefile 2015-04-26 20:20:59 +02:00
Éric Lemoine 252f8cbd9e Reformat upgrade-notes.md 2015-04-20 16:55:36 +02:00
Éric Lemoine 3998f8d4f5 Add KML options related note the upgrade notes 2015-04-17 09:53:22 +02:00
Éric Lemoine 6a2498aa41 Add release notes for the new Vector API 2015-04-08 10:22:57 +02:00
Éric Lemoine c40f84d4a7 Add test for ol.source.Vector#loadFeatures 2015-04-08 10:22:56 +02:00
Éric Lemoine ce83fbdbe3 Rename rBush_ to featuresRtree_ in ol.source.Vector 2015-04-08 10:22:56 +02:00
Éric Lemoine c3658de75a Make addFeature(s) ignore features with same id 2015-04-08 10:22:56 +02:00
Éric Lemoine bb0ee1e6e9 Make ol.source.TileVector inherit from ol.source.Vector 2015-04-08 10:22:56 +02:00
Éric Lemoine bdb326c310 Port vector examples to new vector API 2015-04-08 10:22:56 +02:00
Éric Lemoine 09b90c8424 Add loader and strategy to ol.source.Vector 2015-04-08 10:22:56 +02:00
Éric Lemoine e86fd4afd4 Get rid of disliked vector classes 2015-04-07 17:36:57 +02:00
Éric Lemoine b6b9f25b04 Add a Create Custom Builds tutorial 2015-04-07 16:55:38 +02:00
Éric Lemoine 765fc4c279 Add a type alias to goog.vec.Number
This addition is related to the definition of olx.FrameState in olx.js. Without this alias and corresponding goog.provide in src/ol/vec/mat4.js we get this error when compiling an OpenLayers application:

ERR! compile node_modules/openlayers/externs/olx.js:6853: ERROR - Bad type annotation. Unknown type goog.vec.Mat4.Number
ERR! compile  *     coordinateToPixelMatrix: goog.vec.Mat4.Number,

Currently, the Closure Library does not have a goog.provide for goog.vec.Mat4.Number. If it did have this goog.provide then we wouldn't have the error.

This commit works around the issue by creating our own type alias (ol.vec.Mat4.Number) and adding a goog.provide for that type alias.
2015-04-07 14:10:46 +02:00
Éric Lemoine e45c44fa01 Add missing goog.provide's 2015-04-07 13:49:36 +02:00
Éric Lemoine 9ce3bc7f3d Fix WebGL image layer rendering on retina displays
This commit takes the device pixel ratio into account when calculating the matrix used to apply the image to the output canvas.
2015-04-07 12:13:16 +02:00
Éric Lemoine 58895f73ac Fix compile error in image-filter example 2015-04-04 23:20:49 +02:00
Éric Lemoine 4130e7803a Update compile config used to build individual examples 2015-04-04 23:18:57 +02:00
Éric Lemoine 2892e36d29 Update to closure-util 1.4.0 2015-04-04 22:46:07 +02:00
Éric Lemoine 953b8ff86f Update the tutorials index 2015-04-04 22:44:29 +02:00
Éric Lemoine 6705a34358 Add "closure" tutorial
Tutorial describing how to compile application and OpenLayers together.
2015-04-04 22:43:42 +02:00
Éric Lemoine 42c4ae9ced Add updateWhileInteracting to olx.layer.VectorOptions 2015-04-01 08:27:29 +02:00
Éric Lemoine 28d00c9676 Fix typo in ol.js 2015-03-30 21:02:40 +02:00
Éric Lemoine 9022530bf9 Fix Select behavior when multi is false
This commit addresses https://github.com/openlayers/ol3/pull/3402#issuecomment-87701660.
2015-03-30 18:32:36 +02:00
Éric Lemoine f1d7e2ec85 Unregister tile change listeners
When the tile queue loads a tile it registers a "change" listener on that tile. But currently that listener is not unregistered, unless the tile cache containing that tile fills up and "dipose" is called on that tile.

This commit makes handleTileChange deregister the "change" listener on the tile, if the tile is now in "loaded" state.
2015-03-30 16:54:09 +02:00
Éric Lemoine 192c9d697e Unregister the viewport listener on setTarget(null)
This commit unregisters the viewport resize listener when setTarget(null) is called, and registers it when setTarget(target) is called, and when we don't have that listener registered yet.

This prevents memory leaks where references to map objects are retained because of these viewport resize listeners.
2015-03-30 16:50:58 +02:00
Éric Lemoine f6461afdac Remove describe.only 2015-03-30 16:34:50 +02:00
Éric Lemoine f90308b504 Tests for the Select interaction's filter option 2015-03-30 13:35:00 +02:00
Éric Lemoine 2f417bbb28 Add empty lines for better code readability 2015-03-30 13:07:50 +02:00
Éric Lemoine 79748c6f0c Fix ol.tilegrid.TileGrid#getZForResolution
This fixes a bug in ol.tilegrid.TileGrid#getZForResolution where this function doesn't take minZoom and maxZoom into account when selecting a zoom level for a resolution.

Fixes #2780.
2015-03-23 18:04:13 +01:00
Éric Lemoine 7f71876dad Add upgrade-notes.md file
This file includes upgrade notes for changes to the library that require changes to application code. This file is used by the release manager to fill the "Upgrade notes" section in the v3.x.y.md changelog file.
2015-03-02 10:37:42 +01:00
Éric Lemoine 56b08adef7 Add goog.provide for ol.DrawEventType 2015-02-25 21:59:57 +01:00
Éric Lemoine 329edc4ec6 Make ol.Overlay autoPan default to false 2015-02-24 15:14:10 +01:00
Éric Lemoine 22b27cdb02 Update package version to 3.2.0 2015-02-06 11:12:59 +01:00
Éric Lemoine 480c276d93 Changelog for v3.2.0 2015-02-06 11:12:59 +01:00
Éric Lemoine df2d71ef83 Add "url" option to ol.source.MapQuest 2015-01-30 17:08:50 +01:00
Éric Lemoine 21144f161a Add more tests fr ol.renderer.vector 2015-01-21 14:50:48 +01:00
Éric Lemoine 11eeb6617c Add wrapX option to olx.source.BingMapsOptions 2015-01-16 17:15:59 +01:00
Éric Lemoine d13a5dfb9f Add wrapX option to olx.source.OSMOptions 2015-01-16 17:12:00 +01:00
Éric Lemoine 79312c2083 Add ol.control.Control#setTarget
This commit adds a setTarget method to ol.control.Control. This function can be used in cases where the target cannot be set at control construction time. For example, with Angular, it makes sense to create the control instance in an Angular controller, and have a "control" directive insert the control into the DOM.
2015-01-16 09:27:30 +01:00
Éric Lemoine 789ddad536 Specify node version 2015-01-12 20:49:23 +01:00
Éric Lemoine 2ef8302122 Add a build/ol.js.map target 2015-01-09 12:33:38 +01:00
Éric Lemoine 0f486e86f7 Add tests for ol.renderer.Layer#loadImage 2015-01-09 09:45:25 +01:00
Éric Lemoine 4814983306 Also listen on loading images
This fixes a bug that occured when an image source was used by multiple maps. In that case the map that didn't load the image wouldn't register a load listener on that image and would therefore not call render to request a re-render of the map.
2015-01-09 09:07:31 +01:00
Éric Lemoine f1bf782133 Change "recreate batch" strategy
Only recreate batch when the (buffered) rendered extent contains the **buffered** viewport extent.
2014-12-19 08:43:47 +01:00
Éric Lemoine 33cf4e6179 Add a drag-feature example
This example also demonstrates how to implement a custom interaction that inherits from ol.interaction.Pointer.
2014-12-18 18:42:36 +01:00
Éric Lemoine 14ea2bf413 Add ol.geom.Geometry#translate 2014-12-18 18:42:36 +01:00
Éric Lemoine 374f916b3a Add ol.geom.flat.transform.translate 2014-12-18 18:42:36 +01:00
Éric Lemoine 4a311e66d7 Add ol.Map#getTargetElement
ol.Map#getTarget returns an element or a string, depending on what was passed to setTarget. This commit adds a getTargetElement method that always returns an Element.
2014-12-18 14:13:44 +01:00
Éric Lemoine 6b46d5c76a Make shouldStopEvent default to the identity func 2014-12-18 14:13:44 +01:00
Éric Lemoine 1907de667a Make ol.interaction.Pointer call handleMoveEvent 2014-12-18 14:13:44 +01:00
Éric Lemoine 711ec705b7 Add handle*Event options to ol.interaction.Pointer
More specifically: handleDownEvent, handleDragEvent, handleMoveEvent, and handleUpEvent.
2014-12-18 14:13:44 +01:00
Éric Lemoine 8e8fc9977c Add a renderBuffer option to ol.layer.Vector 2014-12-18 13:20:32 +01:00
Éric Lemoine ddc51ee267 Unconditionally draw Replay's 2014-12-18 13:04:29 +01:00
Éric Lemoine d3365fb3a5 Remove // NOCOMPILE from vector-wfs 2014-12-16 09:43:34 +01:00
Éric Lemoine 7a09b11da5 Use // NOCOMPILE for vector-wfs
This is temporary solution until the demo.boundless.com WFS works again.
2014-12-15 15:24:28 +01:00
Éric Lemoine a9f3367310 Rename handleMapPostrender to render (overlay) 2014-12-12 18:30:43 +01:00
Éric Lemoine d07185e8f2 Add an "handleEvent" interaction option 2014-12-12 18:30:31 +01:00
Éric Lemoine df170859cc Add a "render" control option 2014-12-12 18:30:02 +01:00
Éric Lemoine fdf52c1865 Simplify hit detection code 2014-12-05 15:42:54 +01:00
Éric Lemoine a820ccea5a Use alphabetical order for canvas ReplayGroup methods 2014-12-05 12:32:54 +01:00
Éric Lemoine 9421bbd362 More clean-ups in the canvas replay code 2014-12-05 12:29:53 +01:00
Éric Lemoine 4c2a0d2053 Remove unused code in the canvas replay code 2014-12-05 12:24:54 +01:00
Éric Lemoine b3ad50018d Remove unused local variable 2014-12-05 12:24:54 +01:00
Éric Lemoine 27d30e4286 Replay replays in correct order for hit detection 2014-12-05 12:24:54 +01:00
Éric Lemoine 61f0c55975 Passing options to RegularShape is mandatory 2014-12-04 13:33:30 +01:00
Éric Lemoine 87bb1b956b Merge remote-tracking branch 'upstream/master' into webgl-point
Conflicts:
	src/ol/style/circlestyle.js
	src/ol/style/regularshapestyle.js
	test/spec/ol/style/regularshapestyle.test.js
2014-12-04 12:57:46 +01:00
Éric Lemoine b2e419654b Add ol.INITIAL_ATLAS_SIZE and ol.MAX_ATLAS_SIZE 2014-12-04 12:13:47 +01:00
Éric Lemoine 6d1d47a918 Remove @api for ol.render.webgl.Immediate#flush 2014-12-04 11:22:15 +01:00
Éric Lemoine aef11b7471 Better comment in ivectorcontext.js 2014-12-04 11:18:58 +01:00
Éric Lemoine 1845665306 Correct spelling for "performance" 2014-11-27 17:14:22 +01:00
Éric Lemoine ec01aa45b9 Make createTileCoordTransform return identity func
This makes ol.tilegrid.TileGrid#createTileCoordTransform return the identity function. This makes it possible to use ol.source.TileVector with an ol.tilegrid.TileGrid (as opposed to an ol.tilegrid.XYZ).
2014-11-24 15:19:24 +01:00
Éric Lemoine 8ba830f91f Make loadFeaturesFromUrl accept an error callback 2014-11-24 15:13:17 +01:00
Éric Lemoine c0bbb6c4fa Disable vertex attrib array after replay 2014-11-21 17:48:58 +01:00
Éric Lemoine b3369cd516 Delete WebGL resources used by immediate API 2014-11-21 16:35:05 +01:00
Éric Lemoine 857a8ca2bb Delete WebGL resources used at postcompose time 2014-11-21 16:35:05 +01:00
Éric Lemoine 57db47ac18 Rename ol.structs.Buffer to ol.webgl.Buffer
The Buffer class is WebGL specific, and it's not really a "data structure", in the pure sense of the term.
2014-11-21 15:48:31 +01:00
Éric Lemoine 6360e4497d Add a comment to WebGL ImageReplay
A comment explaining why we don't need to call deleteProgram and deleteShader in the function returned by getDeleteResourcesFunction.
2014-11-21 15:39:23 +01:00
Éric Lemoine 2e873d3e6d Revert changes to the synthetic-points example
These changes were made for testing WebGL. We now have specific examples for WebGL point.
2014-11-21 15:15:06 +01:00