Commit Graph

3338 Commits

Author SHA1 Message Date
Frederic Junod ca5960666d Be more strict with {Element} types 2013-11-12 13:53:37 +01:00
Frédéric Junod 1560fbace3 Merge pull request #1266 from fredj/input_checked
Set boolean value to HTMLInputElement.checked
2013-11-12 04:51:53 -08:00
ahocevar ed09173730 Deep clone geometry coordinates
Our geometries are mutable, so they can be modified without
creating garbage by changing coordinates in place and calling
setGeometry afterwards. But this also means that we need to
create a deep clone of the coordinates.
2013-11-12 11:36:40 +01:00
Frederic Junod 7613eaeef1 Export ol.proj.Projection#getCode 2013-11-12 11:17:03 +01:00
Frederic Junod d3be7d9d18 Set boolean value to HTMLInputElement.checked
See http://www.whatwg.org/specs/web-apps/current-work/multipage/the-input-element.html#attr-input-checked
2013-11-12 10:24:36 +01:00
ahocevar 1d23229d98 Allow to set the layer style
By firing a simple CHANGE event, we can redraw the layer when
a style is assigned.
2013-11-12 01:47:43 +01:00
Tim Schaub 61741669f6 Unregister for feature events when removing features 2013-11-11 16:17:33 -07:00
ahocevar 382b2707df Merge pull request #1256 from ahocevar/simplify-select
Simplify Select interaction and prepare for programmatic feature selection without interaction
2013-11-11 13:19:57 -08:00
ahocevar 0ed208b710 Make renderIntent private and add a getter 2013-11-11 22:07:18 +01:00
ahocevar 299d729936 Make filter optional 2013-11-11 21:52:19 +01:00
ahocevar 467bcc8b62 Protect from features without geometry 2013-11-11 21:51:58 +01:00
Tim Schaub 85500fb616 Merge pull request #1252 from tschaub/expose-down
Add a getter for the most recent down event.
2013-11-11 11:27:19 -08:00
Bart van den Eijnden 3f7c40b1ad add an example of how to use a WKT string in a vector source 2013-11-11 12:45:06 +01:00
Éric Lemoine fdad53c619 Merge pull request #1231 from oterral/mouse_events
Fix touch events on IE10
2013-11-10 02:44:12 -08:00
ahocevar 03e20ce6f1 Do not fail on non-vector layers 2013-11-09 16:12:13 +01:00
ahocevar 26c8c954c3 Make selectedFeaturesFilter available to other components 2013-11-09 16:03:30 +01:00
ahocevar 97d38820fb Removing no longer used getFeatureWithUid method 2013-11-09 14:44:40 +01:00
ahocevar d9fd459654 Do not use a temporary layer for selected features 2013-11-09 14:15:35 +01:00
ahocevar 9fca2c407d Add a getFeatures method on the vector layer 2013-11-09 14:15:35 +01:00
ahocevar 7cf636147b Call setRenderIntent on the feature, not the layer 2013-11-09 14:15:35 +01:00
Olivier Terral 67d3b4527a Modify comments 2013-11-08 17:15:58 +01:00
Olivier Terral 726a04ce3e Forbid right click to trigger singleclick events on IE10 2013-11-08 13:30:58 +01:00
Olivier Terral d0b0d0470b Fix singleclick and doubleclick on windows Surface 2013-11-08 13:30:58 +01:00
Tim Schaub 009f7b53a1 Make interactions event targets 2013-11-07 16:39:05 -07:00
Frédéric Junod 7fb7a472b7 Merge pull request #1249 from fredj/apidoc_function
More precise {function} jsdoc definition
2013-11-07 13:22:30 -08:00
Tim Schaub 22fb418236 Provide a method to get the most recent down type event
This will allow interactions to conditionally handle later events based on the down event.
2013-11-07 11:21:01 -07:00
Tim Schaub 812cb7fb12 Leave the down_ event set
The other "up" type listeners (for touch and pointer) do not set this to null.  This event can be of use to a click listener that might want to compare the down position to the click event's position.
2013-11-07 11:02:04 -07:00
Tim Schaub dbc3109ddb Only call expireTiles_ if already rendered 2013-11-07 10:30:58 -07:00
Frederic Junod 01cc19af80 More precise {function} jsdoc definition 2013-11-07 16:03:19 +01:00
Frederic Junod 09e4c985a0 Export ol.coordinate.rotate 2013-11-06 08:58:06 +01:00
Frederic Junod a31a28278d Sort exports alphabetically 2013-11-06 08:57:15 +01:00
Tom Payne ee53fa7174 Merge pull request #1230 from glennvorhes/for_loop_iter
Remove declared iteration variables before for-loop
2013-11-05 02:00:23 -08:00
Glenn Vorhes 0fc727f989 Remove declared iteration variables before for-loop 2013-11-04 22:31:04 -06:00
Tim Schaub dcf510fe48 The code generated from objectliterals.jsdoc requires name on same line
Without this change, the `interactions` property is renamed on map options (see #1210).
2013-11-04 17:17:43 -07:00
Tim Schaub e207e80257 Merge pull request #1226 from tschaub/dirty-buffer
Buffer dirty extent when rendering,
2013-11-04 14:28:46 -08:00
ahocevar 32bf851957 Merge pull request #1225 from ahocevar/closest-on-segment
squaredDistanceToSegment and footOfPerpendicularToSegment
2013-11-04 13:43:42 -08:00
Tim Schaub b355c1f412 When expiring tiles, consider max symbol size
When an extent is invalidated, we have to expire tiles outside of that extent to account for symbolizer size.
2013-11-04 13:21:23 -07:00
Tim Schaub b0cea7139b Function to buffer an extent 2013-11-04 13:21:11 -07:00
ahocevar e9b934d041 Let closestOnSegment return nothing more than a coordinate
Since we do not use the 'along' property anywhere, and the
resulting array returned by closestOnSegment could cause trouble
when working with 3d coodinates, now only the closest point is
returned, and the squared distance to the segment is calculated
by squaredDistanceToSegment instead.
2013-11-04 20:54:07 +01:00
Tom Payne bfd40bd43d Merge pull request #1224 from twpayne/faster-object-getkeys
Make ol.Object#getKeys about 10x faster
2013-11-04 10:40:23 -08:00
ahocevar 1670b31142 Moving squaredDistanceToSegment to the coordinate package 2013-11-04 19:19:54 +01:00
Tom Payne 60245a57d8 Make ol.Object#getKeys about 10x faster 2013-11-04 18:18:31 +01:00
Bart van den Eijnden 01c9448c3c do not hard-code the namespaceURIs multiple times 2013-11-04 14:26:20 +01:00
Bart van den Eijnden 429a2e455b Add a separate test case for write 2013-11-04 14:26:11 +01:00
Bart van den Eijnden 91e834674c deal with elseFilter, some cleanup 2013-11-04 14:26:05 +01:00
Bart van den Eijnden a7fe89c05d better write support for PointSymbolizer 2013-11-04 14:26:05 +01:00
Bart van den Eijnden 5c8fb35227 get rid of the readers we don't support in ol3 symbology as yet 2013-11-04 14:26:05 +01:00
Bart van den Eijnden c75082c75d add name and title to ol.style.Rule 2013-11-04 14:26:05 +01:00
Bart van den Eijnden 9a6c1feddc Add more changes to the halo functionality, introduce SLD defaults for symbolizers conform the SLD spec 2013-11-04 14:25:25 +01:00
Bart van den Eijnden 924e9c6fce write out string concatenation in the more common way 2013-11-04 14:24:43 +01:00