Commit Graph

213 Commits

Author SHA1 Message Date
Bart van den Eijnden 2d74a6b10f Use lineDash in ol.style.Circle's and ol.style.RegularShape's stroke 2014-11-28 13:11:25 +01:00
Yannick a1dded3c27 Add ol.style.RegularShape 2014-11-03 13:24:30 +01:00
Éric Lemoine ddbc1d260c Mark ol.style.Image#getImage with @api 2014-09-30 12:26:07 +02:00
Éric Lemoine af7944ef42 Mark ol.style.Image with @api
This is to be able to do `imageStyle instanceof ol.style.Image` in applications.
2014-09-30 12:26:06 +02:00
Éric Lemoine 4c0bfd8905 More restrictive type for ol.style.Icon#getImage 2014-09-30 12:26:06 +02:00
Éric Lemoine c7ac9502bd More restrictive type for ol.style.Circle#getImage 2014-09-30 12:26:06 +02:00
Andreas Hocevar 3da9a67162 Merge pull request #2678 from ahocevar/mutable-styles
Mutable symbolizer properties for styles
2014-09-11 13:14:43 -07:00
Andreas Hocevar 267a950435 Mention the need to re-render in a single place only 2014-09-11 13:13:17 -07:00
Andreas Hocevar 0e14639633 Update docs for changes proposed in #2684 2014-09-04 21:01:50 -06:00
Andreas Hocevar 88c30795d3 Doc improvements 2014-09-04 13:20:25 -06:00
Andreas Hocevar 0c36d7606b No need to have a mutable_ flag
Instead, educate users to call setStyle.
2014-09-04 11:47:32 -06:00
Andreas Hocevar 13d84e75ad Additional documentation 2014-09-03 18:31:01 -06:00
Andreas Hocevar a50f6d7a2f Mutable symbolizer properties for style functions
This change adds setters for symbolizer properties. In addition, it
introduces a mutable flag on all styles. By default, this is set to
true. ol.style.createStyleFunction sets it to false for all static
styles.

The new setters assert that the mutable flag is true, so whenever an
application tries to set a symbolizer property on a style that was
assigned to a vector layer or feature overlay, the assertion will fail.
2014-09-03 16:57:50 -06:00
Guillaume Beraudo 9adb12846c Add TextStyle offsets getters to API.
The other properties getters are in the API already.
2014-09-03 17:21:27 +02:00
Peter Robins 4005c986f6 Minor improvement to comment in style/style 2014-08-26 17:34:05 +01:00
Éric Lemoine 0d92d7abc1 Better comments in ol.style.defaultStyleFunction 2014-08-26 17:10:07 +02:00
Éric Lemoine 89019ea233 Fix ol.style.defaultStyleFunction signature 2014-08-26 17:09:43 +02:00
Éric Lemoine d906efa24c Merge pull request #2509 from probins/apimismatch
Fix missing API docs
2014-08-20 15:40:25 +02:00
Peter Robins ed2f2befdf Move createDefaultEditingStyles() to ol.style 2014-08-11 15:39:21 +00:00
Peter Robins d9976ca207 Fix missing API docs 2014-08-11 09:35:16 +00:00
Peter Robins bf3770a9da Improve docs for style 2014-08-05 09:04:35 +00:00
Antoine Abt 4b8ceca8eb Move defaults style into style.js 2014-07-25 09:50:53 +02:00
Antoine Abt 60f1874766 Give precedence to feature style 2014-07-16 11:25:16 +02:00
Tim Schaub 4cf5ab4620 Use @api annotation instead of @todo api 2014-07-05 15:41:14 -04:00
Éric Lemoine 8dc9618adb Add ol.style.Icon#getImageSize 2014-06-25 12:16:22 +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 71951b8bbd Add offset and offsetOrigin in ol.style.Icon 2014-06-04 11:15:13 +02:00
Éric Lemoine 4981cde729 Add "img" option to ol.style.Icon 2014-06-02 07:56:34 +02:00
Andreas Hocevar 605b8278ea Do not make ol.style.Image exportable
Application developers should use its subclasses.
2014-05-26 19:26:58 +02:00
Frederic Junod 2f918ea2a4 Remove unused goog.require 2014-05-21 16:06:32 +02:00
Éric Lemoine 6cd403945a Set snapToPixel defaut value to true 2014-05-07 09:58:56 +02:00
Éric Lemoine c974612cc5 Use actual circle canvas size 2014-05-06 16:38:07 +02:00
Éric Lemoine a62fd53d36 Add "origin" option to ol.style.Image 2014-05-05 09:30:35 +02:00
Frédéric Junod 0cd33ebfe9 Merge pull request #1926 from fredj/cache-anchor
Compute anchor value only once
2014-05-01 23:23:18 +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 55de0a54b9 Add ol.dom.createCanvasContext2D function 2014-04-02 09:37:41 +02:00
Frederic Junod fa640cf094 Compute anchor value only once 2014-03-31 10:20:52 +02:00
Frederic Junod 4a893f7837 Add offsetX and offsetY properties to ol.style.Text 2014-03-11 14:06:51 +01:00
oterral 5028aa3bc3 Fix anchor origin calculation 2014-03-07 13:35:18 +01:00
Tom Payne fb1c66525c Catch CORS exceptions when loading icons 2014-03-01 13:56:44 +01:00
Tom Payne 7a34929b15 Rename rotateWithMap to rotateWithView 2014-02-21 14:32:06 +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
Frederic Junod 430ff9c850 Add opacity property to ol.style.Image 2014-02-19 11:40:40 +01:00
oterral 3a7c80dfda Remove exports from ol.style.Image 2014-02-11 13:13:51 +01:00
oterral 8edcc7e161 Add exports for ol.style.Text 2014-02-11 12:33:12 +01:00