Commit Graph

826 Commits

Author SHA1 Message Date
Tim Schaub b0cea7139b Function to buffer an extent 2013-11-04 13:21:11 -07: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
Tim Schaub 626a319222 Accessor for polygon rings 2013-10-03 12:28:34 -06:00
ahocevar 4937f08971 Adding counter expression function
This function can e.g. be used to get a symbolizer literal with
an ever increasing zIndex.
2013-10-03 11:41:02 -06:00
ahocevar 87e755e9e4 Sort symbolizer groups by zIndex
Now rendering order can be controlled by setting the zIndex
symbolizer property.
2013-10-03 09:37:08 -06:00
Bart van den Eijnden 17356bc3ee Merge pull request #1063 from oterral/parsing_stylemap
Parsing styleMap (r=@bartvde)
2013-10-03 08:01:56 -07:00
ahocevar c03e690882 Merge pull request #1089 from ahocevar/no-geometry-type-groups
No longer group features by geometry type
2013-10-03 07:35:14 -07:00
ahocevar dbb9525515 No longer group features by geometry type
With symbolizer literals now being geometry type specific, we no
longer need the overhead to query the RTree separately for each
geometry type and render symbolizer groups by geometry type.

The geometry type index of the FeatureCache is no longer needed.

The filtering functionality of the FeatureCache's
getFeaturesObject method can be removed because it is no longer
used.
2013-10-03 08:35:11 -06:00
Tim Schaub bfa257eac1 Default value for zIndex 2013-10-02 17:31:42 -06:00
Tim Schaub 43c581ef5f Optional zIndex for text symbolizers 2013-10-02 17:31:33 -06:00
Tim Schaub b9a44d2db5 Optional zIndex for shape symbolizers 2013-10-02 15:51:14 -06:00
Tim Schaub b7cb21dc4a Optional zIndex for icon symbolizers 2013-10-02 15:26:17 -06:00
Tim Schaub 33cacab11c Optional zIndex for stroke symbolizers 2013-10-02 15:12:22 -06:00
Tim Schaub 04a23d0e45 Optional zIndex for fill symbolizers 2013-10-02 15:10:42 -06:00
Tom Payne 167b309242 Replace source ready flag with loading/ready/error enum 2013-09-30 13:30:54 +02:00
Tim Schaub 1aa83e133b Remove dimension property from geometries
This was only necessary when using the shared vertices structure.
2013-09-27 23:18:34 +01:00
Tim Schaub 3aff5e19f1 Remove shared vertices 2013-09-27 23:18:34 +01:00
Tim Schaub 33457c48de Add transform method to geometries
In the typical sequence of parse-transform-render the most efficient place to transform coordinate values is deep within the parser immediately after values have been read (this would avoid a second pass over whatever structure is used to back geometries).  To accomplish this transform during parsing, we could add back parser read options to pass the transform function around.

Until then, a transform method on geometries is straightforward to implement.  This means we do a second pass through coordinate structures to transform, but this is typically done only once immediately after parsing.
2013-09-27 23:18:34 +01:00
Tim Schaub e1ba1d8887 Remove use of shared structures in feature parsers 2013-09-27 23:18:34 +01:00
Tim Schaub 2850c761cf Remove use of shared vertices in geom package 2013-09-27 23:18:17 +01:00
Tim Schaub bbef15e50e Consider resolution when applying rules 2013-09-27 11:46:48 +02:00
Tim Schaub 78c54addb3 Add min/maxResolution properties to rule options 2013-09-27 11:45:43 +02:00
Olivier Terral a35219545e Add new line at the end of file 2013-09-26 17:26:43 +02:00
Olivier Terral 5c128abc5d Add kml file for test 2013-09-26 09:50:46 +02:00
Olivier Terral 67a6703e50 Remove space 2013-09-26 09:24:30 +02:00