Commit Graph

6057 Commits

Author SHA1 Message Date
Bart van den Eijnden
041479f1b7 Add more typedefs for return objects 2014-03-10 16:40:00 +01:00
Bart van den Eijnden
431a4d1725 Restore the exports 2014-03-10 15:40:55 +01:00
Bart van den Eijnden
6800a3290b Port over test case for multiple Query elements 2014-03-10 15:37:29 +01:00
Bart van den Eijnden
33abbfced1 Add support for writing Native 2014-03-10 15:24:00 +01:00
Bart van den Eijnden
4e5e75f525 Add write support for Transaction 2014-03-10 14:58:03 +01:00
Tom Payne
022a7a03e0 Use oli.FrameState instead of ol.FrameState 2014-03-10 14:48:23 +01:00
Tom Payne
586c4b9cd2 Merge pull request #1746 from sbrunner/fitcoordinates
Fit coordinates on visible map, Center coodinate on positions
2014-03-10 14:08:47 +01:00
Andreas Hocevar
97da6b4874 Merge pull request #1824 from ahocevar/replay-hit-detection
Iterating through the hit detection replay batch fails when geometryRenderFunction returns false
2014-03-10 12:38:25 +01:00
ahocevar
c6ba9787b5 Update the pointer to the next block when reversing
Just reversing the array is not enough, the pointers to the
beginning of the next block must be changed to the reversed
array index.
2014-03-10 12:37:45 +01:00
Éric Lemoine
6047a4dcf6 Use default style function in FeatureOverlay 2014-03-10 11:32:36 +01:00
Tim Schaub
f3c06989b6 Merge pull request #1822 from tschaub/append-first
Always add first segment when appending coordinates.
2014-03-07 11:53:49 -07:00
Tom Payne
f32d491d45 Fix calculation of ends in ol.geom.MultiPolygon#getPolygons 2014-03-07 19:49:38 +01:00
Tim Schaub
8317317127 Always add first segment when appending coordinates
When we have only a single point, we want to make sure it gets added (fixes #1821).

Because this code doesn't differentiate coordinates that are part of a linestring or linearring from those that are independent points, we always add the first segment (or pair of points).  In addition, coordinates for segments are appended whenever they represent a change in relationship with respect to the extent.  This keeps the code simpler for handling fills and properly capturing intersection points for linestrings.  This could be modified to save a few extra coordinates, but it provides for simpler code at a very minimal cost.
2014-03-07 11:02:25 -07:00
Bart van den Eijnden
2ce92ac6a2 Add write support for BBOX filter 2014-03-07 16:44:24 +01:00
Tom Payne
7da18bd144 Merge pull request #1819 from oterral/fix_anchor
Fix anchor origin calculation
2014-03-07 14:49:14 +01:00
oterral
5028aa3bc3 Fix anchor origin calculation 2014-03-07 13:35:18 +01:00
ahocevar
bc79b89c5e Limit shared segment editing
To avoid surprises, we enable shared segment editing only on
segments that have the same vertex coordinates.
2014-03-07 10:52:50 +01:00
ahocevar
42935408fb Keep track of intersecting segments
Because we have nodes sorted by segment distance from the
editing vertex in #handleMouseAtPixel(), it is cheap to create a
hash of intersecting segments there. Now in #handleDragStart(),
we do not need to measure the distance of the vertex to the
segment. Instead, we just test if the segment is in the hash.
2014-03-07 10:52:49 +01:00
Bart van den Eijnden
c05e8d0292 Read the metadata of a FeatureCollection 2014-03-07 10:32:17 +01:00
Austin Hyde
0e21d2c99d Lazily create ol.defaultFeatureStyleFunction
Besides the slight performance benefit of not prerendering the default
circle style until we need to, this change also allows loading OL3
in browsers that don't support the canvas API (IE 7-8). If the circle
style is rendered on load, the lack of HTMLCanvasElement#getContext
causes IE 7-8 to bomb, regardless of if vector styles are used at all.
2014-03-06 15:31:26 -05:00
Bart van den Eijnden
2310ccdb91 Add reading of TransactionResponse 2014-03-06 19:04:23 +01:00
Tim Schaub
1f30a5f40d Merge pull request #1662 from tschaub/drawing-rings
Add `minPointsPerRing` option to the draw interaction.  By default, polygon drawing cannot be finished until three points have been added.  To allow polygon drawing to finish after only two points have been added, set `minPointsPerRing: 2`.
2014-03-06 09:39:45 -07:00
Tim Schaub
36204faf2f Merge pull request #1754 from tschaub/clip
Track max extent for replay and limit draw instructions outside that extent.
2014-03-06 09:37:43 -07:00
Frédéric Junod
68f5adc284 Merge pull request #1687 from fredj/ol.layer.Heatmap
Add ol.layer.heatmap
2014-03-06 15:00:13 +01:00
Tom Payne
e5ee44f8ad Rename ol.structs.RBush#getAllInExtent to getInExtent 2014-03-06 14:30:56 +01:00
Frederic Junod
3bc0a6e6f0 Don't use Uint32Array for IE compatibility 2014-03-06 13:28:18 +01:00
Stéphane Brunner
015c660386 Add ol.View2D#centerOn 2014-03-06 10:54:15 +01:00
Stéphane Brunner
9984ca109c Add ol.View2D#fitGeometry 2014-03-06 10:54:04 +01:00
Bart van den Eijnden
7ebf97406d Add support for writing WFS GetFeature 2014-03-06 09:24:39 +01:00
Frederic Junod
c32d8a2e53 Add ol.layer.Heatmap class and example 2014-03-06 09:14:03 +01:00
Frederic Junod
9d05e08b49 Dispatch 'render' event in renderer.canvas.VectorLayer
The context property of the event only contains the vector rendering.
2014-03-06 09:14:03 +01:00
Frederic Junod
f0f2a2d2b0 Set control map in 'add' and 'remove' event handler 2014-03-06 09:03:38 +01:00
Frederic Junod
3dc9d296eb Set interaction map in 'add' and 'remove' event handler 2014-03-06 09:01:50 +01:00
Frederic Junod
9d8243a772 Set overlay map in 'add' and 'remove' event handler 2014-03-06 09:00:00 +01:00
Tim Schaub
50001132be Transform extent coordinates before clipping 2014-03-05 13:27:40 -07:00
Tim Schaub
a18593ee10 Support minPointsPerRing and default to 3 2014-03-05 12:58:03 -07:00
Tim Schaub
2e47777794 Rename getAllFeaturesAtCoordinate to getFeaturesAtCoordinate 2014-03-05 12:32:09 -07:00
Tim Schaub
30dc8195ca Rename getAllFeatruesInExtent to getFeaturesInExtent 2014-03-05 12:31:09 -07:00
Tim Schaub
333e4a9625 Rename getAllFeatures to getFeatures 2014-03-05 12:29:24 -07:00
Bart van den Eijnden
dd9311e79e Revert to cloning the context object 2014-03-05 16:44:01 +01:00
Bart van den Eijnden
75f139bb27 Use a single node factory for more multi geometries 2014-03-05 16:44:01 +01:00
Bart van den Eijnden
e1b2af6cde Combine surface/polygon and linestring/curve writers 2014-03-05 16:44:01 +01:00
Bart van den Eijnden
718b54c292 Do not clone the context for every feature 2014-03-05 16:44:01 +01:00
Bart van den Eijnden
ba2d35fc57 Cache serializers on the context 2014-03-05 16:44:01 +01:00
Bart van den Eijnden
d7f40c11e8 Do not use ol.xml.pushSerializeAndPop for single items 2014-03-05 16:44:01 +01:00
Bart van den Eijnden
16a09930fb Use ol.format.XSD.readNonNegativeIntegerString instead of parseInt 2014-03-05 16:44:01 +01:00
Bart van den Eijnden
64060795ce Use const for schema location 2014-03-05 16:44:00 +01:00
Bart van den Eijnden
2bc5e462d1 Use more intelligent node factories, less duplicate code 2014-03-05 16:44:00 +01:00
Bart van den Eijnden
9b4fc06a5b Finish write support for features 2014-03-05 16:44:00 +01:00
Bart van den Eijnden
8dce3249d6 Implement writeFeatures 2014-03-05 16:44:00 +01:00