Commit Graph

8418 Commits

Author SHA1 Message Date
Andreas Hocevar 4be106d014 Merge pull request #3673 from ahocevar/draw-regular-polygon
More control over ol.interaction.Draw, to allow e.g. square drawing
2015-05-20 12:08:15 +02:00
Andreas Hocevar 100020fd59 Refactoring for more consistency
* Min and max number of points configurable for lines and polygons
* Polygons from custom geometryFunction now have a sketch line
* The example shows how to use a custom geometryFunction
2015-05-20 10:28:16 +02:00
Marc Jansen 2b76bc05a5 Add support for scientific notation to WKT format 2015-05-18 11:27:39 +02:00
Andreas Hocevar 19c91235ce Add convenience function to create a regular polygon geometryFunction 2015-05-14 23:24:29 +02:00
Andreas Hocevar 901a0f6d8e Add functions to create regular polygons 2015-05-14 23:24:29 +02:00
Andreas Hocevar 250221cded Add new geometryFunction option
This allows applications to control the geometry that is created from the
drawing sketch. Will e.g. be useful to create a regular polygon instead of
a circle when in Circle mode.
2015-05-14 23:24:29 +02:00
Andreas Hocevar 4e94908440 Define getCoordinates and setCoordinates in the base class
Since these methods are implemented by all subclasses, it makes sense to
define them in the base class as abstract method.
2015-05-14 23:24:29 +02:00
Bart Nagel b606f4996b Fix ol.extent.containsExtent documentation
The `ol.extent.containsExtent` documentation had its arguments backwards
(or the implementation did).

The documentation said "the first extent is contained by or on the edge
of the second", but the function checked the opposite.

The wording was also a little strange, since from the name of the
function alone `containsExtent` I'd guess that the first argument would
be the (potential) container, and the second would be the (potentially)
contained. But the documentation has the wording "check if one extent is
*contained by* or on the edge of another", suggesting the first argument
is the contained and the second the container.

This patch keeps the current functionality but clarifies the
documentation.
2015-05-13 12:10:06 -07:00
Peter Robins a243149d02 Fix WMTS.optionsFromCapabilities if no OperationsMetadata section 2015-05-13 12:43:12 +00:00
Bart van den Eijnden 2724292de1 Add a note about using the collection in addLayer 2015-05-10 12:20:02 +02:00
Andreas Hocevar 32efd99397 Do not require projection extent for WMTS bbox validity check 2015-05-05 18:52:33 +02:00
Andreas Hocevar b05193fa45 Replace ol.tilegrid.XYZ with an ol.tilegrid.createXYZ function 2015-05-05 18:52:33 +02:00
Andreas Hocevar a116878a57 Allow extents to restrict tile ranges requested from the server
The addition of full extent tile ranges also allows us to simplify wrapX
handling for tile layers. By limiting wrapX to true and false as possible
values, we can remove a lot of guessing logic.
2015-05-05 18:52:33 +02:00
Andreas Hocevar 700903ca5c Add tests for ol.tilegrid.TileGrid
These tests are taken from ol.tilegrid.XYZ, to make sure that
ol.tilegrid.TileGrid works the same way. The additional tests show that the
#getTileCoordForXYAndResolution_() method do not handle coordinates at
tile boundaries properly, so this is fixed.
2015-05-05 18:52:32 +02:00
Frederic Junod bb6192bc10 Revert "Implement ol.renderer.Layer#forEachFeatureAtCoordinate"
This reverts commit dd07fd7977.
2015-05-05 09:38:50 +02:00
Frédéric Junod 56e8575e41 Merge pull request #3637 from fredj/forEachFeatureAtCoordinate
Implement ol.renderer.Layer#forEachFeatureAtCoordinate
2015-05-05 07:48:54 +02:00
Frederic Junod dd07fd7977 Implement ol.renderer.Layer#forEachFeatureAtCoordinate
And remove identical implementation in children classes.
2015-04-28 14:08:45 +02:00
Éric Lemoine 3a03e9f76a Add ol.source.WMTS#getRequestEncoding 2015-04-27 16:40:01 +02:00
Éric Lemoine 2a2fea379e Add ol.source.WMTS#getUrls 2015-04-27 16:40:01 +02:00
Andreas Hocevar 1d6530ce9c Merge pull request #3616 from ahocevar/freehand-drawing
Add support for freehand drawing to the Draw interaction
2015-04-27 11:27:10 +02:00
Frederic Junod 4b5f8cd60e Remove unused local variable 2015-04-27 09:56:01 +02:00
Tobias Sauerwein 8e4063d905 Merge pull request #3629 from tsauerwein/snap-xyz
Problems with XYZ coordinates in snap interaction
2015-04-27 08:53:34 +02:00
Marc Jansen a6cddce92f Merge pull request #3624 from marcjansen/one-sentence
Add a one sentence summary for several exportable symbols
2015-04-25 20:08:39 +02:00
tsauerwein 77f16c7fd6 Fix XYZ coordinates in snap interaction 2015-04-24 09:26:31 +02:00
Marc Jansen 96f0374b2f Add basic docs for mapbrowserevent 2015-04-23 20:49:36 +02:00
Marc Jansen b70a39b59d Add basic docs for zoomslidercontrol 2015-04-23 20:27:41 +02:00
Marc Jansen 63a4a0c1d9 Add basic docs for scalelinecontrol 2015-04-23 20:27:28 +02:00
Marc Jansen 346ead1b55 Add basic docs for rotatecontrol 2015-04-23 20:27:15 +02:00
Marc Jansen 0d5fcf6411 Add basic docs for overviewmapcontrol 2015-04-23 20:27:01 +02:00
Marc Jansen d8622c6511 Add basic docs for mousepositioncontrol 2015-04-23 20:26:49 +02:00
Marc Jansen a433f1abbe Add basic docs for attributioncontrol 2015-04-23 20:26:37 +02:00
Bart van den Eijnden f0bef58ba3 Do not overwrite FORMAT_OPTIONS if it is present already 2015-04-23 20:03:33 +02:00
Marc Jansen cbc0ae730a Add basic docs for events.condition.* 2015-04-23 14:58:18 +02:00
Marc Jansen 52ad0bc62f Add basic docs for wktformat 2015-04-23 13:31:50 +02:00
Marc Jansen 4fc7672089 Add basic docs for wfsformat 2015-04-23 13:31:39 +02:00
Marc Jansen 4c6289278b Add basic docs for kmlformat 2015-04-23 13:31:26 +02:00
Pierre GIRAUD 84d22266d6 Fix typo in documentation comment 2015-04-23 11:20:28 +02:00
Bart van den Eijnden a2f0015b2e Merge pull request #3614 from bartvde/gml-wfs-fix
GML2 parser does not parse all features
2015-04-23 08:36:38 +02:00
Bart van den Eijnden c74293335c Make sure ol.format.GML2 is usable for WFS 1.0 requests as well 2015-04-23 08:24:59 +02:00
Marc Jansen 9d4db1806a Merge pull request #3619 from marcjansen/one-sentence-geom
Add a one sentence summary for ol.geom.* exportable symbols
2015-04-23 00:11:03 +02:00
Tim Schaub 99818e63aa Merge pull request #3618 from tschaub/breaking-whitespace
Replace non-breaking space (U+00A0) with regular space (U+0020).
2015-04-22 15:50:56 -06:00
Marc Jansen 77a06433be Add basic docs for geom.simplegeometry 2015-04-22 21:10:00 +02:00
Marc Jansen 1252867f69 Add basic docs for geom.polygon 2015-04-22 21:09:59 +02:00
Marc Jansen 5c19415577 Add basic docs for geom.point 2015-04-22 21:09:59 +02:00
Marc Jansen 4f5982b9d0 Add basic docs for geom.multipolygon 2015-04-22 21:09:59 +02:00
Marc Jansen f0c235d352 Add basic docs for geom.multipoint 2015-04-22 21:01:07 +02:00
Marc Jansen 4e448dddd6 Add basic docs for geom.multilinestring 2015-04-22 21:00:54 +02:00
Marc Jansen 144c262a9e Add basic docs for geom.linestring 2015-04-22 21:00:41 +02:00
Marc Jansen 6b1bccfcdd Add basic docs for geom.linearring 2015-04-22 21:00:29 +02:00
Marc Jansen 7e7c03820a Add basic docs for geom.geometrycollection 2015-04-22 21:00:16 +02:00