Commit Graph

6057 Commits

Author SHA1 Message Date
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
Tom Payne
dd3f4b9c00 Merge pull request #1733 from twpayne/zoomify-clean-ups
Zoomify clean-ups
2014-02-20 23:49:10 +01: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
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
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
30bc97755a Restore preventDefault call that shouldn’t have been removed 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
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
Tom Payne
ebdb5dce22 Rename ol.Map#render to ol.Map#renderSync 2014-02-20 03:05:31 +01:00
Tim Schaub
6344b8e06c Make setValues consistent with repeated calls to set 2014-02-19 10:17:39 -07:00
Frédéric Junod
f88703053a Merge pull request #1724 from fredj/ol.dom.input
ol.dom.Input cleanups
2014-02-19 15:14:11 +01:00
Frederic Junod
a445e81115 Handle image opacity in ol.render.canvas.Immediate 2014-02-19 11:40:40 +01:00
Frederic Junod
fca0942c30 Handle image opacity in ol.render.canvas.ImageReplay 2014-02-19 11:40:40 +01:00
Frederic Junod
430ff9c850 Add opacity property to ol.style.Image 2014-02-19 11:40:40 +01:00
Frederic Junod
03b979c30a Listen to 'input' and 'change' events 2014-02-19 11:37:05 +01:00
Frederic Junod
4e7d697273 Add missing function arguments 2014-02-19 11:37:05 +01:00
Frederic Junod
c9e9cbc7c8 Change ol.dom.Input target param from Element to HTMLInputElement 2014-02-19 11:37:05 +01:00
Frederic Junod
1e0ce96e9f Remove 'valueAsNumber' property from observable list
The property was removed in a0bea641d1
2014-02-19 09:53:46 +01:00
Antoine Abt
b3abc166a4 Make zoomToExtent control use <button> instead of <a> 2014-02-19 09:34:04 +01:00
Éric Lemoine
aee620d2d9 Initialize properties in the constructor 2014-02-19 00:13:39 +01:00
Antoine Abt
b6052320ad Coding style 2014-02-18 15:49:45 +01:00
Antoine Abt
1a44fb2ff3 Make zoom control tip texts configurable 2014-02-18 15:25:58 +01:00
Tom Payne
e40b9adde0 Add binary support to ol.source.VectorFile 2014-02-17 17:44:28 +01:00
Tom Payne
ef82965c0a Add ol.format.Binary 2014-02-17 17:44:28 +01:00
Tom Payne
cd2200b4af Add ol.binary 2014-02-17 17:44:28 +01:00
Tom Payne
399116ed82 Add binary support to ol.format.Format 2014-02-17 17:44:24 +01:00
Tom Payne
2d0b90a845 Add ol.BrowserFeature.HAS_ARRAY_BUFFER 2014-02-17 17:37:55 +01:00
Mark Prins
18c2ffe522 use button elements instead of anchor elements and add tooltips to zoomcontrol 2014-02-17 14:57:15 +01:00
Mark Prins
9adf8b01f6 use button elements and add tooltips to zoomcontrol 2014-02-17 14:57:15 +01:00
Frédéric Junod
497a71ca6e Merge pull request #1715 from fredj/apidoc
Minor jsdoc fixes
2014-02-17 14:46:58 +01:00
Frederic Junod
d2c2ba3921 Add geom.jsdoc 2014-02-17 14:31:28 +01:00
Éric Lemoine
9619e2832a Merge pull request #1702 from igrcic/tileWMS-extents-1701
Do not request tiles outside of extents for TileWMS source
2014-02-17 14:17:27 +01:00
Éric Lemoine
2311213136 Merge pull request #1713 from elemoine/zoomcontrol
Use minus sign as zoom out label
2014-02-17 12:15:09 +01:00
Éric Lemoine
4b4c2d7deb Merge pull request #1711 from elemoine/modify
Modify interaction doesn't need to store styles
2014-02-17 12:14:29 +01:00
Antoine Abt
a658435e38 Merge pull request #1705 from tonio/geojson_null_geometry
Allow GeoJSON features to have `null` geometries.
2014-02-17 08:23:05 +01:00
Antoine Abt
04f1f2120b Merge pull request #1697 from tonio/remove_renderer_guess
Remove `ol.RendererHints.createFromQueryData` from the library
2014-02-17 08:21:18 +01:00
Ivan Grcic
34d5f24816 Do not load tiles outside extents for TileWMS source 2014-02-17 01:23:23 +01:00