Commit Graph

64 Commits

Author SHA1 Message Date
Frederic Junod
9e37aa796a Add new olx.format.KMLOptions#extractStyles property 2014-08-07 17:08:19 +02:00
Frederic Junod
7a86bf58bf Improve type annotation 2014-07-31 09:44:52 +02:00
Tim Schaub
4cf5ab4620 Use @api annotation instead of @todo api 2014-07-05 15:41:14 -04:00
Éric Lemoine
eafc2ac371 Change setValues to setProperties 2014-06-27 17:26:51 +02:00
Éric Lemoine
1ec25f3992 Remove the unused ol.format.KML.DOCUMENT_SEQUENCE_ 2014-06-27 10:59:31 +02:00
Éric Lemoine
ccd01fb874 Add ol.format.XSD.writeBooleanTextNode 2014-06-27 10:56:04 +02:00
Éric Lemoine
177188d732 Add ol.format.KML.SCHEMA_LOCATION_ 2014-06-26 15:13:04 +02:00
oterral
02b8ef1bb6 Fix nodes order in Placemark and IconStyle 2014-06-26 09:24:08 +02:00
oterral
5d8d936216 Use ol.xml.setAttributeNS for xmlns attributes 2014-06-26 09:07:22 +02:00
Éric Lemoine
384f2a0ecf Create valid KML documents
Thanks @bartvde.
2014-06-25 15:58:56 +02:00
Éric Lemoine
a4e95eb513 Add write support to KML format 2014-06-25 12:17:32 +02:00
oterral
67bd397c37 Make ol.format.KML#readName method exportable 2014-06-25 08:31:45 +02:00
Tim Schaub
2a42e7736a Merge pull request #2178 from probins/classdesc
Use @classdesc notation.
2014-06-09 11:18:14 -06:00
Peter Robins
41d9f0360a Add @classdesc to classes 2014-06-09 12:10:19 -04:00
oterral
0b17d9aeb5 Add parsing of gx:x, gx:y, gx:w and gx:h tags in KML format 2014-06-04 11:15:13 +02:00
Andreas Hocevar
fbdbbfb7a7 Get rid of stability annotations and document stability with api
This change adds a stability value to the api annotation, with
'experimental' as default value.

enum, typedef and event annotations are never exportable, but
api annotations are needed there to make them appear in the
docs.

Nested typedefs are no longer inlined recursively, because the
resulting tables get too wide with the current template.
2014-04-29 09:53:07 -06:00
Andreas Hocevar
c17ac0cae3 Greatly simplify and document the usage of JSDoc
This commit simplifies the exports.js plugin so it only relies
on the stability notes to generate the documentation, which
completely decouples it from the exportable API.

As a rule of thumb, whenever something has an 'api' annotation,
it should also have a 'stability' annotation. A more verbose
documentation of ol3 specific annotation usage is available in
the new 'apidoc/readme.md' file.

This commit also modifies all source files to implement these
usage suggestions.
2014-04-29 09:53:06 -06:00
Tim Schaub
fb497f5288 Annotations for exports 2014-04-29 09:53:05 -06:00
Frederic Junod
68773941d3 Use goog.array.contains instead of goog.array.indexOf 2014-04-26 08:31:40 +02:00
Tom Payne
369c20388e Use ol.array.safeExtend in ol.format.KML 2014-03-24 11:56:53 +01:00
Paul Spencer
a646577bd6 Add documentation for the KML format. 2014-03-11 20:53:21 -04:00
oterral
5028aa3bc3 Fix anchor origin calculation 2014-03-07 13:35:18 +01:00
Tom Payne
d2a52ba56d Fix KML anchor origin 2014-03-04 16:38:33 +01:00
Tom Payne
35349764d9 Merge pull request #1766 from twpayne/kml-style-url
Handle out-of-order and shared Styles and styleUrls in KML
2014-03-03 10:55:37 +01:00
Tom Payne
56b6913a01 Rename ol.format.XML to ol.format.XMLFeature 2014-02-28 13:13:11 +01:00
Tom Payne
7bbef0f0ea Read Icon hrefs as URIs 2014-02-26 17:37:49 +01:00
Tom Payne
b3c527166d Be more tolerant of out-of-spec KML files 2014-02-26 17:37:49 +01:00
Tom Payne
42c832154b Refactor KML style handling to handle shared Styles and StyleMaps 2014-02-26 17:37:49 +01:00
Bart van den Eijnden
9bade5ce87 Implement setPolygons on ol.geom.MultiPolygon 2014-02-21 11:28:18 +01:00
oterral
0a6390fb21 Add anchorOrigin option in ol.style.Icon 2014-02-21 09:09:59 +01:00
Tim Schaub
f4585331f2 Add setStyle and getStyle to ol.Feature
As with vector layers and feature overlays, feature style can be set by calling
setStyle.  Calling getStyle returns what was passed to setStyle.  Internally, we call getStyleFunction.
2014-02-13 10:25:17 -07:00
Tom Payne
0b4b6e2a75 Merge pull request #1639 from twpayne/kml-ie9
KML support for Internet Explorer
2014-02-05 14:23:07 +01:00
Hadrien Tulipe
b5fefc9ab3 Supprt parsing of kml:datetime (#1585)
This commit modifies the previous regex used to match following
datetimes:

- 2014
- 2014-02
- 2014-02-15

The new regex also matches dates that were matched by the previous
regex.

This commit also include a unit test for kml:dateTime parsing.
2014-02-04 22:36:42 +01:00
Tom Payne
91e9b82fe1 Use ol.xml.getLocalName in ol.format.KML 2014-02-04 22:20:45 +01:00
Tom Payne
17fba61bf2 Cope with undefined baseURI in ol.format.KML 2014-02-04 22:19:54 +01:00
Tom Payne
cd1355a699 Use ol.xml.isNode in ol.format.KML 2014-02-04 22:19:54 +01:00
Tom Payne
cd7df92891 Use ol.xml.isDocument in ol.format.KML 2014-02-04 22:19:53 +01:00
Tom Payne
34e75e2653 Use ol.xml.load in ol.format.KML 2014-02-04 17:36:56 +01:00
Tom Payne
608e3c43b1 Add stability annotation to ol.format.KML 2014-02-03 14:59:14 +01:00
oterral
63c321b980 Lets ol.style.Icon to define default values 2014-01-28 13:30:11 +01:00
Frederic Junod
295d4fbaa3 Use ol.format.XSD.readDecimal in ol.format.KML 2014-01-23 16:35:39 +01:00
Frederic Junod
7b09e04001 Rename ol.format.KML.readscale_ to ol.format.KML.readScale_ 2014-01-23 16:14:55 +01:00
Frederic Junod
401acc77f3 Remove unneeded 'ms' param from Date.UTC function 2014-01-23 16:14:50 +01:00
Frederic Junod
9fe5eff865 Use ol.format.XSD.readBoolean in ol.format.KML 2014-01-23 10:55:02 +01:00
Frederic Junod
827ae44a5f Use ol.format.XSD.readString in ol.format.KML 2014-01-23 10:43:47 +01:00
Tom Payne
5f5b37f1b6 Merge pull request #1558 from twpayne/push-parse-pop
Rename ol.xml.pushAndParse to ol.xml.pushParseAndPop
2014-01-20 08:28:27 -08:00
Tom Payne
432d10a457 Rename ol.xml.pushAndParse to ol.xml.pushParseAndPop 2014-01-20 16:47:56 +01:00
oterral
84be78b35a Add parsing of <gx:Track> in <Placemark> 2014-01-20 16:32:17 +01:00
Tom Payne
85217cdbb2 Improve RegExp for parsing coordinates, thanks @tschaub 2014-01-16 20:35:20 +01:00
Tom Payne
00286de2c8 Fix date calculation 2014-01-16 20:30:56 +01:00