Commit Graph

13369 Commits

Author SHA1 Message Date
ahocevar
791cb2415b Simplify annotations 2014-02-21 20:22:44 +01:00
ahocevar
1354d8ce78 Added rte serialization for ol.format.GPX 2014-02-21 16:55:48 +01:00
ahocevar
13b4f07cd9 New makeChildrenAppender function and Node factory refactoring
The makeChildAppender function is used for adding a node of a
type with maxOccurs=1. For adding nodes of a type with
maxOccurs>1, the new makeChildrenAppender function was added.

With this new function, it turned out that more convenience for
creating node factories is required. The makeChildNodeFactory
function was renamed to makeSimpleNodeFactory, and it now can
create node factories where not only the namespace, but also the
node name can be fixed.
2014-02-21 16:55:05 +01:00
Tom Payne
3c32bbdce3 Document rotateWithView option 2014-02-21 14:32:15 +01:00
Tom Payne
7a34929b15 Rename rotateWithMap to rotateWithView 2014-02-21 14:32:06 +01:00
Antoine Abt
a971928bbe Add features option to draw interaction 2014-02-21 13:41:07 +01:00
Tom Payne
a17055a419 Activate rotateWithMap option in ol.render.canvas.Immediate 2014-02-21 12:57:34 +01:00
Tom Payne
0e90cf02ad Pass view rotation to ol.render.canvas.Immediate 2014-02-21 12:57:09 +01:00
Antoine Abt
ec832bdf6e Modify interaction takes style & features options
Instead of a FeatureOverlay
2014-02-21 12:35:30 +01:00
Tom Payne
1d2c88efb9 Merge pull request #1717 from twpayne/binary-format
Add ol.format.Binary
2014-02-21 12:27:13 +01:00
Bart van den Eijnden
591e4b56df Merge pull request #1737 from bartvde/multipolygon
Implement setPolygons on ol.geom.MultiPolygon (r=@twpayne)
2014-02-21 12:24:13 +01:00
Antoine Abt
7cea6f3240 Make select interaction create its FeatureOverlay
You can now configure it with a `style` option.
2014-02-21 11:59:43 +01:00
Tom Payne
222fafcb77 Activate rotateWithMap option in ol.render.canvas.Replay 2014-02-21 11:57:11 +01:00
Tom Payne
fe420ce1eb Pass view rotation to replay 2014-02-21 11:56:34 +01:00
Bart van den Eijnden
9bade5ce87 Implement setPolygons on ol.geom.MultiPolygon 2014-02-21 11:28:18 +01:00
Tom Payne
27c5ab0312 Replace subtractViewRotation with rotateWithMap 2014-02-21 11:21:20 +01:00
Éric Lemoine
fe159aa7fa Merge pull request #1726 from oterral/fix_anchororigin
Add anchorOrigin option in ol.style.Icon
2014-02-21 09:24:23 +01:00
oterral
0a6390fb21 Add anchorOrigin option in ol.style.Icon 2014-02-21 09:09:59 +01:00
ahocevar
b4043398eb Added wpt serialization for ol.format.GPX 2014-02-21 07:18:42 +01:00
ahocevar
45860f4552 Framework for serializing structures to XML
This adds several helper functions for serializing to XML:

* ol.xml.serialize: Counterpart to ol.xml.parse. By splitting
  the serialization process up into a node factory and a node
  writer, note writers can easily be used for different
  namespaces.

* ol.xml.pushSerializeAndPop: Counterpart to
  ol.xml.pushParseAndPop.

* ol.xml.makeStructureNS: Works like ol.xml.createParsersNS,
  but works for arbitrary structures.

* ol.xml.makeChildAppender: If the top item of the stack has
  the new ol.xml.NodeStackItem type, this helper function
  can be used to create a serializer that appends the current
  node to its designated parent.

* ol.xml.makeChildNodeFactory: Creates a node factory which
  produces child nodes from an array of node names which are
  passed to ol.xml.serialize.

* ol.xml.makeSequence: A convenience function for creating
  xsd:sequence structures. Takes an object literal and an
  ordered list of the keys, and returns an array that can be
  passed as values to ol.xml.serialize.

* ol.xml.makeSimpleTypeWriter: Using e.g. the new write*TextNode
  functions from ol.format.XSD, this function creates a node
  writer that writes simple type nodes for values like strings
  or numbers.

The following commits will be using this new framework for
implementing ol.format.GPX.writeFeatures, and prose
documentation with instructions based on what was said above
will be added.
2014-02-21 07:18:36 +01:00
Tim Schaub
8a9fdbdeb7 Merge pull request #1734 from tschaub/unused-types
Remove unused types from objectliterals.jsdoc.
2014-02-20 16:15:21 -07:00
Tom Payne
dd3f4b9c00 Merge pull request #1733 from twpayne/zoomify-clean-ups
Zoomify clean-ups
2014-02-20 23:49:10 +01:00
Tim Schaub
4cc4c157fb No WFS parser currently 2014-02-20 15:32:18 -07:00
Tom Payne
c4786304b7 Only render overlays if the map is rendered 2014-02-20 19:56:42 +01:00
Tom Payne
443e7d9a8c Add ol.Map#isRendered 2014-02-20 19:56:22 +01:00
Tom Payne
710d0c1bd8 Handle asynchronous rendering in tests 2014-02-20 19:44:29 +01:00
Tom Payne
316c146613 Switch to asynchronous rendering by default 2014-02-20 19:42:00 +01:00
Tom Payne
a773ab256c Use a switch to select tier size calculation 2014-02-20 19:30:47 +01:00
Tom Payne
00eff70ae6 Use an enum for Zoomify tier size calculation option 2014-02-20 19:29:56 +01:00
Tom Payne
bf798ea766 Document tierSizeCalculation property 2014-02-20 19:28:43 +01:00
Tim Schaub
0692db7bc3 Merge pull request #1669 from tschaub/default-style
Provide a useful default style.
2014-02-20 11:09:12 -07:00
Antoine Abt
b6005fc834 Merge pull request #1725 from tonio/a11y-enhanced-zoomcontrol
Enhance controls accessibility
2014-02-20 17:15:12 +01:00
Tom Payne
5ce6ad99bb Merge pull request #1731 from felixgirault/ol.source.zoomify
Add an alternative algorithm for zoomify tier size calculation
2014-02-20 17:12:17 +01:00
Tim Schaub
0015331273 Provide a default style function 2014-02-20 08:57:11 -07:00
Tom Payne
a8f932fa07 Rename ol.Map#requestRenderFrame to ol.Map#render 2014-02-20 16:54:20 +01:00
Antoine Abt
ae3ad24928 Reorder default controls 2014-02-20 16:52:09 +01:00
Antoine Abt
3e21ad6dd2 Wording in description 2014-02-20 16:47:34 +01:00
Antoine Abt
30bc97755a Restore preventDefault call that shouldn’t have been removed 2014-02-20 16:47:34 +01:00
Antoine Abt
2a48197234 Css tweaks for touch devices 2014-02-20 16:47:34 +01:00
Antoine Abt
fd9b4a7ee9 Use «em» based positioning 2014-02-20 16:47:34 +01:00
Antoine Abt
ed8e0e8552 Minor cleanups 2014-02-20 16:47:34 +01:00
Antoine Abt
d52f62fb5a Make Fullscreen control use <button> instead of <a> 2014-02-20 16:47:33 +01:00
Félix Girault
a045a62651 Use shorter syntax for integer division by 2 2014-02-20 16:45:08 +01:00
Éric Lemoine
dc5c713536 Merge pull request #1730 from elemoine/colorcache
Fix handling of the color cache
2014-02-20 13:33:39 +01:00
Éric Lemoine
9428fb109f Fix handling of the color cache 2014-02-20 11:26:02 +01:00
Félix Girault
ac785459da Add an alternative algorithm for zoomify tier size calculation
Zoomify uses a different algorithm than ol3 to calculate the number of
tiles per tier.
These algorithms are compatible in most cases, but they will lead to
different results with some particular image sizes.

This update provides an option for the zoomify source to use one of
these two algorithms.
2014-02-20 11:17:16 +01:00
Frédéric Junod
3b79e2f4c7 Merge pull request #1727 from fredj/drop-fontawesome
Remove Font Awesome
2014-02-20 09:04:30 +01:00
Tom Payne
ebdb5dce22 Rename ol.Map#render to ol.Map#renderSync 2014-02-20 03:05:31 +01:00
Tim Schaub
29e894f913 Merge pull request #1728 from tschaub/set-values
Make setValues behave like multiple calls to set.
2014-02-19 12:00:54 -07:00
Tim Schaub
59cbe7c23a Safer feature constructor
Calling setValues now behaves like calling set (closes #1672)
2014-02-19 10:20:57 -07:00