Commit Graph

1294 Commits

Author SHA1 Message Date
Éric Lemoine cdbc1a07be Add ol.geom.flat.intersectsextent
Includes functions for testing if an extent and a geometry intersect.
2014-09-17 12:17:31 +02:00
Éric Lemoine 3ce6229d34 Add ol.geom.flat.segments.forEach 2014-09-17 12:17:31 +02:00
Guillaume Beraudo d67cefdf3a Consistent circle transform
Depending on compilation flags, applying a transform used to either:
- work;
- fail throwing an abstract method not implemented message;
- fail silently.

Now it should consistently work, like the other geometries.

Adding a polygon factory method creating an approximation of a circle on
a plane would be useful for users wanting the circle to be deformed.
It would be similar to the `circular` function which creates an
approximation of a circle on a sphere.
2014-09-16 13:41:17 +02:00
Andreas Hocevar 3da9a67162 Merge pull request #2678 from ahocevar/mutable-styles
Mutable symbolizer properties for styles
2014-09-11 13:14:43 -07:00
Bart van den Eijnden 19319356d7 Auto configure ol.format.GML if not configured with a featureNS/featureType 2014-09-11 20:03:02 +02:00
Andreas Hocevar ec00cd3222 Make tileSize a config option for ol.source.XYZ 2014-09-04 11:59:43 -06:00
Andreas Hocevar 0c36d7606b No need to have a mutable_ flag
Instead, educate users to call setStyle.
2014-09-04 11:47:32 -06:00
Andreas Hocevar a50f6d7a2f Mutable symbolizer properties for style functions
This change adds setters for symbolizer properties. In addition, it
introduces a mutable flag on all styles. By default, this is set to
true. ol.style.createStyleFunction sets it to false for all static
styles.

The new setters assert that the mutable flag is true, so whenever an
application tries to set a symbolizer property on a style that was
assigned to a vector layer or feature overlay, the assertion will fail.
2014-09-03 16:57:50 -06:00
Éric Lemoine 9cc0841efb Allow passing undefined to ol.layer.Vector#setStyle 2014-08-27 12:26:10 +02:00
Tim Schaub 947b049799 Rename ol.browserfeature to ol.has 2014-08-22 07:34:35 -06:00
Éric Lemoine 58a77478a3 Merge pull request #2582 from elemoine/wmsgfi
Support for "Stateless GetFeatureInfo"
2014-08-21 18:07:39 +02:00
Tobias Sauerwein a231086a8b Merge pull request #2407 from ahocevar/format-projection
Options for feature readers and writers to support transforms
2014-08-21 17:58:10 +02:00
Éric Lemoine d1bb2724a5 Stateless GetFeatureInfo for ol.source.ImageWMS 2014-08-21 11:29:44 +02:00
Tim Schaub 63ad916ca7 Function for creating tile grids from extents 2014-08-18 17:10:26 -06:00
Tim Schaub dd5e7693da General purpose getCorner function for extents 2014-08-18 14:55:49 -06:00
Éric Lemoine e53213d730 Merge pull request #2537 from probins/browserfeature
Rename BrowserFeature to browserfeature
2014-08-18 16:23:28 +02:00
tsauerwein 539e4a23b9 Introduce defaultDataProjection for formats 2014-08-18 15:31:06 +02:00
Éric Lemoine 9072fb1f2f Merge pull request #2543 from elemoine/foreachfeature
Do not hit-detect the same feature multiple times
2014-08-18 10:38:38 +02:00
Éric Lemoine c81dfdc69b Do not hit-detect the same feature multiple times
In other words forEachFeatureAtPixel should not call the user-provided callback more than once for a given feature.
2014-08-18 10:24:12 +02:00
Éric Lemoine ba035abb1f Change ol.TileCoord to an Array 2014-08-18 09:33:24 +02:00
Peter Robins e35531e7c6 Rename BrowserFeature to browserfeature 2014-08-15 13:53:20 +00:00
tsauerwein 3ff180b224 Implement read transforms for ol.format.WFS 2014-08-11 12:22:29 +02:00
tsauerwein 48ed2e861e Implement read/write transforms for ol.format.Polyline 2014-08-11 11:59:27 +02:00
tsauerwein f8560df793 Implement read transforms for ol.format.IGC 2014-08-11 10:51:34 +02:00
tsauerwein 9bc70f3459 Implement read/write transforms for ol.format.WKT 2014-08-11 10:17:31 +02:00
tsauerwein bfb6c2e3b8 Implement read transforms for ol.format.OSMXML 2014-08-08 17:25:05 +02:00
tsauerwein b05f880f7c Implement read/write transforms for ol.format.KML 2014-08-08 17:10:11 +02:00
tsauerwein 31dbbc6a8c Implement read/write transforms for ol.format.GPX 2014-08-08 15:50:55 +02:00
tsauerwein e446738491 Implement read transforms for ol.format.TopoJSON 2014-08-08 11:43:53 +02:00
tsauerwein 3090a0af37 Fix GeoJSON.readFeaturesFromObject
Only feature collections worked properly.
2014-08-08 11:14:03 +02:00
tsauerwein 281fd3c6a9 Implement GML.readProjectionFromNode() 2014-08-08 10:54:40 +02:00
Marc Jansen b60609d93c Make stroke style of the graticule configurable 2014-08-08 08:28:34 +02:00
Andreas Hocevar 410b274b6a Add unit test for greedy template replacement 2014-08-07 12:18:03 +02:00
Andreas Hocevar 65346d716d Add GeoJSON tests for write transforms 2014-07-31 17:55:43 +02:00
Andreas Hocevar c4fdbacc12 Make options complete in ol.format.Feature already 2014-07-31 17:55:43 +02:00
Andreas Hocevar 4825cba48a Implement ReadOptions and WriteOptions for ol.format.GML 2014-07-31 17:55:43 +02:00
Andreas Hocevar b8a834b437 Add transform tests for GeoJSON readFeatures 2014-07-31 17:54:41 +02:00
Frederic Junod 06df648733 Add ol.source.Cluster
Initial code by @kenny806
2014-07-29 12:29:43 +02:00
Marc Jansen 2e37a34459 Fix typo in ol.Map test. 2014-07-28 09:35:23 +02:00
Bart van den Eijnden 2814abc59d Merge pull request #2420 from gingerik/gpx-extensions
PR for GPX: read extensions tags
2014-07-25 20:15:43 +02:00
Bart van den Eijnden f468239e71 Merge pull request #2394 from tonio/style_order
Give precedence to feature styles
2014-07-25 11:34:24 +02:00
Antoine Abt 4b8ceca8eb Move defaults style into style.js 2014-07-25 09:50:53 +02:00
Marc Jansen f5bb790509 Merge pull request #2167 from elemoine/graticule
Add a Graticule component
2014-07-24 19:13:26 +02:00
Tim Schaub caa0b568ad Remove extent option for sources
Most of our uses of source extent were cargo cult programming.  The source extent was seldom and inconsistently used.  Instead, layers can now be configured with an extent, and layer renderers limit rendering (and data requests) to the layer extent.

For vector sources, the `getExtent` method returns the extent of currently loaded features (this was the case before and after this change).  For tile based sources, we will likely want to allow easy construction of tile grids based on an extent (this is not possible before or after this change, but could be added later).
2014-07-24 10:30:06 -06:00
Tim Schaub 7bbd27e68e ol.tilegrid.TileGrid doesn't accept an extent option
Tile grids cannot currently be constructed with an extent (though we should perhaps provide a function that allows this - see https://github.com/tschaub/ol3/commit/68815dca10ef006294c767efe9592b682c48dc5f for an example).
2014-07-24 10:26:07 -06:00
Tim Schaub 1daf36956c Layer extent option
If provided, the layer extent will be used to limit data requests and rendering.  If undefined, to limit will be imposed.
2014-07-24 10:26:07 -06:00
Tim Schaub 42f953d08d Function for getting extent intersection 2014-07-24 10:26:07 -06:00
Éric Lemoine 9bd1ab78fc Add Graticule component 2014-07-24 17:59:56 +02:00
Andreas Hocevar 16cdd35f6d Test to make sure that feature styles take prececence 2014-07-24 14:37:45 +02:00
Andreas Hocevar c1d49a8cef Update to use the correct default style function namespace 2014-07-24 14:31:12 +02:00