Commit Graph

4157 Commits

Author SHA1 Message Date
Éric Lemoine fd438f232b Add gutter option to ol.source.TileWMS 2013-12-12 10:59:31 +01:00
Tim Schaub 69385f4ff0 More consistent event types 2013-12-11 16:54:01 -07:00
Tim Schaub 625007f364 Make enum property name like its value
Where an enum value is used as an event type, it should be alllowercase (to follow DOM events).  Property names should be ALLUPPERCASE in this case (just as camelCase and PascalCase are converted to CONSTANT_CASE).
2013-12-11 16:54:01 -07:00
Tim Schaub c8985b9906 Using unique event type values for distinct events
Any event target can be used to dispatch generic goog.events.Event instances with an arbitrary type.  In cases where we dispatch custom events, we should not use type values that collide with those used for generic events (at least internally).  This allows listeners a better chance of knowing what kind of argument they will receive.

As subsequent change will clean up the enumeration and add a bit more consistency.
2013-12-11 16:53:52 -07:00
Tom Payne e4d85e27b1 Merge pull request #1358 from twpayne/vector-api-geometry-collection
[vector-api] Add ol.geom.GeometryCollection
2013-12-11 13:07:05 -08:00
Tim Schaub 17e91feb52 Listen for property changes in layer group
This avoids a future bug when the ol.ObjectEventType.CHANGE value becomes something different than the goog.events.EventType.CHANGE value.
2013-12-11 12:23:05 -07:00
Tim Schaub 153cb307e0 Handle beforechange events for bound properties 2013-12-11 11:25:51 -07:00
Tim Schaub 9d3a4e3c6c Add beforechange event type and provide key with change events
If you know ahead of time that you only want to listen for changes for a specific property, the foo:change type events can be useful.  If you want to listen for changes on all properties, the change event becomes more useful if it provides information on what changed.  And the beforechange event allows listeners to access values before they change.
2013-12-11 11:25:50 -07:00
Tom Payne bde17b2ac8 Add ol.geom.GeometryCollection support to ol.format.GeoJSON 2013-12-11 17:28:00 +01:00
Tom Payne 4205c01414 Add ol.geom.GeometryCollection rendering 2013-12-11 16:49:47 +01:00
Tom Payne d7eb4db69e Add ol.geom.GeometryCollection 2013-12-11 16:49:47 +01:00
Tom Payne 802d1644bb Implement clone for simple geometries 2013-12-11 16:49:47 +01:00
Tom Payne 6295fa6088 Add ol.geom.Geometry#clone 2013-12-11 16:49:47 +01:00
Tom Payne 76a6e08ec1 Factor out ol.geom.SimpleGeometry 2013-12-11 16:49:47 +01:00
Éric Lemoine 829381fd43 Always fill polygons for hit detection 2013-12-11 16:16:02 +01:00
Éric Lemoine ac2a3cd1e8 Rename replayForward functions to replay 2013-12-11 16:16:02 +01:00
Éric Lemoine 8712509300 Rename replayBackward functions to replayHitDetection 2013-12-11 16:16:02 +01:00
Éric Lemoine 3019933cb6 Rename reverseInstructions_ function to reverseHitDetectionInstructions_ 2013-12-11 16:16:02 +01:00
Éric Lemoine 86995a8cb4 Rename reversedInstructions array to hitDetectionInstructions 2013-12-11 16:16:02 +01:00
Éric Lemoine 12e610e374 Merge pull request #1354 from elemoine/vector-api-hit-rotation
[vector-api] hit detect rotated features
2013-12-11 07:15:46 -08:00
Éric Lemoine fda2217166 Hit detect rotated features 2013-12-11 15:01:58 +01:00
Tom Payne df975aa558 Add ol.source.GeoJSON 2013-12-11 14:14:32 +01:00
Tom Payne 28c7ecc014 Add ol.source.VectorFile 2013-12-11 14:14:32 +01:00
Tim Schaub 5a5d1dec40 Remove unused handleLayerVisibleChange 2013-12-11 01:38:44 -07:00
Tim Schaub a792a224f6 Avoid duplicate change event on visibility change 2013-12-11 01:28:55 -07:00
Tim Schaub 858fe14163 No need for handleLayerChange in base layer 2013-12-11 01:23:51 -07:00
Tim Schaub 8fbfac52d4 Avoid firing duplicate change events in ol.layer.Layer 2013-12-11 01:20:07 -07:00
Tim Schaub 3e905d804c Merge pull request #1335 from tschaub/geometry-type
Change geometry type enum and mark as stable.
2013-12-10 08:50:54 -08:00
Tom Payne ecf9ace190 Add ol.format.GeoJSON 2013-12-10 15:35:50 +01:00
Tom Payne aa0002d880 Add ol.format.XML 2013-12-10 14:43:45 +01:00
Tom Payne 8c7ff29470 Add ol.format.Text 2013-12-10 14:43:45 +01:00
Tom Payne 409cde83bf Add ol.format.JSON 2013-12-10 14:43:45 +01:00
Tom Payne 1187466ebf Add ol.format.Format 2013-12-10 12:55:22 +01:00
Tom Payne 6d96fbf44d Remove experimental ol.format code 2013-12-10 12:55:22 +01:00
Tom Payne ed5b8b6512 Merge remote-tracking branch 'openlayers/master' into vector-api 2013-12-10 12:54:27 +01:00
Éric Lemoine fafb7e487e Add ol.render.FeaturesOverlay 2013-12-10 11:03:10 +01:00
Tom Payne 496c9c4250 Add and improve comments 2013-12-09 18:56:34 +01:00
Tom Payne b4c6a36a4f Fix and accelerate ol.source.Vector#getClosestFeatureToCoordinate
The previous implementation contained a bug (the reduced extent was
calculated around the closest point found, it should have been
calculated around the coordinate being searched for).  This allows a
speed-up that requires only a single traversal of the R-Tree (as opposed
to many traversals).
2013-12-09 18:45:16 +01:00
ahocevar 211e288f33 Remove original handling on ol.Feature
This is another attempt to bring master closer to the
vector-api branch. In anticipation of the ability to keep track
of modifications on ol.Object through a beforechange event
(d7e4be0), we will be able to manage originals on the
application level or in a separate component outside of
ol.Feature.
2013-12-09 18:33:34 +01:00
ahocevar d53ad07279 Merge pull request #1346 from ahocevar/set-srsname
Set the srs name when writing GetFeature
2013-12-09 08:28:14 -08:00
ahocevar 2fc89b967a Define type for applyWriteOptions call 2013-12-09 17:19:03 +01:00
ahocevar 8328db26d4 Set the srs name when writing GetFeature
Also make clear that srsName is only optional for WFS 1.0.0.
2013-12-09 16:57:11 +01:00
Tom Payne f4fe0046b2 Check closest point against extent 2013-12-09 16:40:55 +01:00
Tom Payne 66f1826358 Add ol.extent.closestSquaredDistanceXY 2013-12-09 16:40:54 +01:00
Tom Payne 3178331bab Reduce garbage generation 2013-12-09 16:40:54 +01:00
Tom Payne 1076c5cad1 Add ol.source.Vector#getClosestFeatureToCoordinate 2013-12-09 16:40:54 +01:00
Tom Payne 77a658ddee Add ol.geom.MultiPolygon#closestPointXY 2013-12-09 16:40:54 +01:00
Tom Payne 128e174ee2 Add ol.geom.MultiLineString#closestPointXY 2013-12-09 16:40:54 +01:00
Tom Payne 99042c956a Add ol.geom.MultiPoint#closestPointXY 2013-12-09 16:40:54 +01:00
Tom Payne cf659f0753 Add ol.geom.Polygon#closestPointXY 2013-12-09 16:40:53 +01:00