Tim Schaub
b9a4ae5e77
Merge pull request #1273 from tschaub/select-layers
...
Rename layerFilter option to layers and accept array for select interaction.
2013-11-13 06:35:17 -08:00
Tim Schaub
a2b55b04e8
Rename layerFilter option to layers and accept array
2013-11-12 22:08:59 -07:00
Tim Schaub
7b69373985
Remove ol.geom2
2013-11-12 19:27:02 -07:00
Tim Schaub
05b9922861
Tests for draw interaction
...
The tests revealed that polygons can be drawn with counter-clockwise exterior ring order. In the polygon constructor, we enforce clockwise winding for exterior rings. So after drawing, we pass polygon coordinates back to the constructor before adding feature to the target layer.
2013-11-12 16:06:42 -07: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
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
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
ahocevar
d9fd459654
Do not use a temporary layer for selected features
2013-11-09 14:15:35 +01:00
Bart van den Eijnden
ba4d90bac1
Merge pull request #1254 from bartvde/parsertests
...
change the afterLoad utility test functions (r=@elemoine,@tschaub)
2013-11-08 12:23:39 -08:00
Bart van den Eijnden
ffc2277c68
make tests pass in the test runner as well by not checking for status code
2013-11-08 20:59:58 +01:00
Bart van den Eijnden
cc4c0bda60
use plain XMLHttpRequest instead of goog.net.XhrIo
2013-11-08 20:34:03 +01:00
Bart van den Eijnden
dc0dc32d6b
make some minor fixes to the parser test cases, such as using afterLoadXml everywhere and making sure done is used in all async tests
2013-11-08 11:27:58 +01:00
Tim Schaub
009f7b53a1
Make interactions event targets
2013-11-07 16:39:05 -07: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
Frederic Junod
116b107cb2
Add tests for ol.coordinate.format
2013-11-06 09:23:13 +01:00
Frederic Junod
db5986fcc1
Use describe instead of describe.only
2013-11-05 09:50:19 +01: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
f317016505
Add tests
2013-11-04 22:14:34 +01:00
Tim Schaub
b0cea7139b
Function to buffer an extent
2013-11-04 13:21:11 -07: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
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
ee7d46cea1
Add initial pass of write support, always write out ol.style.Stroke as LineSymbolizer
2013-11-04 14:24:01 +01:00
Bart van den Eijnden
76454516f5
Add skeleton for SLD parser
2013-11-04 14:22:42 +01:00
Tim Schaub
10b6b5f2c5
Merge pull request #1173 from tschaub/map-interaction
...
Give interactions a reference to their map.
2013-11-01 15:30:19 -07:00
Tom Payne
9442f2d209
Test that ol.Collection#extend fires events
2013-10-31 20:28:02 +01:00
Tim Schaub
7fb56579c5
Add addInteraction and removeInteraction methods to the map
...
This is in line with how we add/remove controls and overlays.
2013-10-31 09:26:28 -06:00
Tim Schaub
7d2d68c011
Give interactions a reference to the map
...
This is in line with what we do for controls and overlays. A follow-up change will add calls to `setMap` when interactions are added to a map.
2013-10-31 09:25:52 -06:00
Éric Lemoine
d211f65203
Merge pull request #1195 from elemoine/click
...
Emulated click events on mouse devices
2013-10-31 01:50:34 -07:00
Éric Lemoine
8402eee0c3
Map "click" event renamed to "singleclick"
...
As discussed with @tschaub in #1195 .
2013-10-31 09:37:16 +01:00
Éric Lemoine
6ab88aad72
Add tests for emulated clicks
2013-10-30 13:16:09 +01:00
Tim Schaub
370bb964ab
Tests for the image wms source
2013-10-29 14:18:14 -06:00
Tim Schaub
dd67c7d8c3
Merge pull request #1111 from tschaub/font-weight
...
Add fontWeight property to TextSymbolizer.
2013-10-09 13:20:47 -07:00
Tim Schaub
2ee776d9f6
Support fontWeight in text symbolizer
2013-10-09 11:59:30 -06:00
Tim Schaub
d5ab5ec1d2
Shape symbolizer extends point symbolizer
2013-10-09 09:01:51 -06:00
Tim Schaub
e36c53dd23
Icon symbolizer extends point symbolizer
2013-10-09 09:01:30 -06:00
Tim Schaub
539ecbdd9c
Add stroke support for text symbolizers
2013-10-07 16:17:38 -06:00
Tim Schaub
5e86ffcca5
Add stroke properties to text symbolizer literal
2013-10-07 16:09:20 -06:00
Tim Schaub
0296ee846a
Avoiding unhandled errors
...
These tests were generating errors that were not caught because they were outside the `it` functions.
2013-10-07 09:47:41 -06:00
ahocevar
52552c9b18
Fire change events for multi-part geometries
2013-10-04 23:36:16 -06:00
Tim Schaub
703564fcbb
Merge pull request #1096 from tschaub/editable-features
...
Editable geometries and features.
2013-10-03 19:22:30 -07:00
Tim Schaub
67fab12fef
Listen for feature events and fire layer events
2013-10-03 15:51:00 -06:00
Tim Schaub
adf99d592a
Listen for geometry events and fire feature events
2013-10-03 15:50:23 -06:00
ahocevar
00a73a6188
More test fixes (see #1093 )
2013-10-03 14:39:30 -06:00
ahocevar
62134f6ee2
Fixing tests (see #1093 )
2013-10-03 14:37:02 -06:00
ahocevar
de999b9463
Merge pull request #1093 from ahocevar/symbolizer-id
...
Adding counter expression function
2013-10-03 12:16:02 -07:00
Tim Schaub
b821619368
Change event for polygons
2013-10-03 12:28:35 -06:00
Tim Schaub
30b2e3930b
Add setCoordinates for linestring and dispatch change event
2013-10-03 12:28:35 -06:00
Tim Schaub
e78690c2d2
Add setCoordinates for point and dispatch change event
2013-10-03 12:28:35 -06:00
Tim Schaub
9b47c15bd8
Make geometries event targets
...
Previously, the tests were using eql to make assertions about matching geometries. This is inappropriate for structures with circular references (as with goog.events.EventTarget);
2013-10-03 12:28:34 -06:00