Commit Graph

7614 Commits

Author SHA1 Message Date
Frédéric Junod eb395894e1 Revert "Do not render in handleDownEvent" 2016-01-19 15:26:10 +01:00
Andreas Hocevar 5961431505 Merge pull request #4677 from ahocevar/pixel-proj
Make pixel projection handling work in compiled mode
2016-01-15 22:06:42 +01:00
Andreas Hocevar d6a8c9465e Make pixel projection handling work in compiled mode
The compiler seems to have trouble with functions that can run with
different 'this' types. By moving the units handling to the callback, this
issue can be avoided.
2016-01-15 20:59:16 +01:00
Tim Schaub dc820fced4 Merge pull request #4639 from nicholas-l/googBind
Remove use of goog.bind and use ES5 .bind.
2016-01-15 09:41:11 -08:00
Nicholas L db3ad70a3d Remove use of goog.bind and use ES5 .bind 2016-01-15 22:10:55 +13:00
Andreas Hocevar 69ad741dd4 Merge pull request #4666 from WeaveTeam/dragbox-dragevent-pr
Add a 'boxdrag' event to ol.interaction.DragBox. Resolves #4563 .
2016-01-13 12:43:26 +01:00
Petr Sloup 5dfb4199ca Fix rendering of transparent MapQuest layer type 2016-01-12 23:23:16 +01:00
Philip "digitalfox" Kovac 83e173d91f Add a 'boxdrag' event to ol.interaction.DragBox. Resolves #4563 . 2016-01-12 17:16:56 -05:00
Bart van den Eijnden 4ef1f5e63f Make sure icons show up in Safari
Make sure that drawImage calls don't exceed source image dimensions.
2016-01-12 15:57:11 +01:00
Frederic Junod 3df9ae8c5e Use map.getTargetElement instead of map.getTarget 2016-01-12 11:36:07 +01:00
Petr Sloup 3607cddcca Missing parameter description for ol.source.Tile#getOpaque 2016-01-12 09:16:40 +01:00
Tim Schaub c9e2b384e7 Merge pull request #4602 from tschaub/eslint
Use ESLint.
2016-01-12 00:09:15 -08:00
Petr Sloup 2c3ed38714 Fix for reprojecting opaque tile sources 2016-01-12 08:58:16 +01:00
Tim Schaub 13a981c94b Fewer blank lines 2016-01-11 22:03:23 -08:00
Tim Schaub 0a5d15db50 Remove jshint 2016-01-11 18:58:02 -08:00
Tim Schaub 3cf8618fc7 Prefer single line assignment to 80 character limit 2016-01-11 18:56:08 -08:00
Tim Schaub 59a66c7aaa Remaining valid-jsdoc corrections 2016-01-11 18:56:08 -08:00
Tim Schaub e6f6dcc230 Partial valid-jsdoc corrections 2016-01-11 18:56:08 -08:00
Tim Schaub fd0e2436da Always provide a default case for switch 2016-01-11 18:56:08 -08:00
Tim Schaub 932bf4deb3 Explicitly mark fall-throughs 2016-01-11 18:56:08 -08:00
Tim Schaub 54df314936 Consistent curly brace style 2016-01-11 18:56:08 -08:00
Tim Schaub ec10b661f3 Use block scoping 2016-01-11 18:56:08 -08:00
Tim Schaub 29a723166d No empty blocks 2016-01-11 18:56:07 -08:00
Andreas Hocevar c2f90f21db Merge pull request #4647 from ahocevar/snap-round-to-pixel
Proper rounding for possibly negative numbers
2016-01-11 16:34:24 +01:00
Andreas Hocevar a3147c5d08 Proper rounding for possibly negative numbers 2016-01-11 16:25:09 +01:00
Andreas Hocevar d916e8ccaf Merge pull request #4629 from ahocevar/scaleline
Simplify scaleline calculation
2016-01-11 10:12:53 +01:00
Andreas Hocevar d05b519f2f Merge pull request #4457 from alexbrault/colour-icon
Add color option to ol.style.Icon
2016-01-10 23:19:54 +01:00
Andreas Hocevar dfb534f1d4 Do not rely on projection extent 2016-01-08 10:25:56 +01:00
Andreas Hocevar 393a95e41c Properly handle modulo of negative numbers 2016-01-07 20:19:40 +01:00
Andreas Hocevar b8fc917016 Do not depend on units for resolutions calculation 2016-01-07 20:14:44 +01:00
Andreas Hocevar 6b8da1237c Simplify scaleline calculation 2016-01-07 20:14:44 +01:00
Andreas Hocevar 5c49e399ce Merge pull request #4581 from ahocevar/no-render-on-interaction-start
Do not render in handleDownEvent
2016-01-07 18:24:39 +01:00
Frédéric Junod 32dadc008b Merge pull request #4541 from fredj/linestring_interpolated_point
Add new ol.geom.LineString#getCoordinateAt function
2016-01-07 18:02:21 +01:00
Frederic Junod e336947e8d Add new ol.geom.LineString#getCoordinateAt function 2016-01-07 11:32:25 +01:00
Petr Sloup bc0d783f50 Use XHR by default to load TileJSON in ol.source.TileJSON 2016-01-07 09:19:23 +01:00
Andreas Hocevar 24f8cba0a1 Simplify meters per unit handling 2016-01-06 13:53:55 +01:00
Andreas Hocevar cde6dce939 Merge pull request #4574 from WeaveTeam/dragbox-config-pr
Added boxEndCondition to DragBoxOptions to replace the hardcoded chec…
2016-01-06 11:47:56 +01:00
Frédéric Junod 8c6d9c9e66 Merge pull request #4606 from fredj/ol.DragBoxEvent_MapBrowserEvent
Include originating MapBrowserEvent in ol.DragBoxEvent
2016-01-06 09:15:32 +01:00
Tim Schaub b8d69e0f3b Merge pull request #4614 from tschaub/one-fewer-interface
Remove checksum interface.
2016-01-05 11:16:34 -07:00
Philip "digitalfox" Kovac 10e2510f0f Added boxEndCondition to DragBoxOptions to replace the hardcoded check against DRAG_BOX_HYSTERESIS_PIXELS_SQUARED. 2016-01-05 13:14:30 -05:00
Andreas Hocevar 15be53e98c Merge pull request #4613 from ahocevar/select-self
Include own layer in layerFilter and only select unselected features
2016-01-05 17:48:20 +01:00
Tim Schaub aeffd48ccb Remove checksum interface 2016-01-05 07:07:45 -07:00
Petr Sloup ffd9ace84e Add option to load TileJSON via XHR 2016-01-05 13:40:20 +01:00
Guillaume Beraudo a1c72d8890 Add missing return type to GeoJSON format 2016-01-05 11:02:23 +01:00
Andreas Hocevar a65d2d4078 Include own layer in layerFilter and only select unselected features
When selecting an already selected feature, it will be on the Select
interaction's featureOverlay_. So we need to include that featureOverlay_
in the layer filter, regardless of what the user set as layer filter.

When in toggle mode, we need to make sure that we only select features that
are not already included in the selection.
2016-01-04 21:55:00 +01:00
Andreas Hocevar 9f43716723 Merge pull request #4596 from ahocevar/tile-key
Use consistent tile coordinate keys
2016-01-04 19:27:47 +01:00
Bart van den Eijnden cdf9a8e84d Add ol.proj.setProj4 function 2016-01-04 18:51:04 +01:00
Frederic Junod 7a364e0593 Include originating MapBrowserEvent in ol.DragBoxEvent 2016-01-04 13:29:26 +01:00
Alexandre Brault 3f16b340fc Accept string as color input 2016-01-01 12:16:50 -05:00
Alexandre Brault 5c70d37da6 Don't tint the icon if the image is tainted 2016-01-01 12:16:50 -05:00