Alexandre Brault
3f16b340fc
Accept string as color input
2016-01-01 12:16:50 -05:00
Alexandre Brault
5c70d37da6
Don't tint the icon if the image is tainted
2016-01-01 12:16:50 -05:00
Alexandre Brault
c0b6eac0c2
Add color option to ol.style.Icon
2016-01-01 12:16:50 -05:00
Andreas Hocevar
abb680d28f
Accept HTMLCanvasElement for an icon's img
2015-12-04 14:14:01 +01:00
Andreas Hocevar
749dacc749
Allow '' for crossOrigin (as Anonymous alias)
...
This fixes a regression introduced by the goog.isDef removal.
From the HTML 5 spec: "The empty string is also a valid keyword, and
maps to the Anonymous state"
2015-11-17 12:55:48 +01:00
Andreas Hocevar
faff14c44c
Merge pull request #4164 from spatialillusions/patch-1
2015-10-02 11:11:08 +02:00
Andreas Hocevar
2d7d002c85
Fix coding style
2015-10-02 11:05:19 +02:00
Marc Jansen
f9b07991e1
Remove goog.isNull in style classes
2015-10-01 09:18:53 +02:00
Frederic Junod
496cece074
Remove use of goog.array.forEach
2015-09-29 10:55:17 +02:00
Tim Schaub
83c59ee255
Inline goog.isDef() calls for properties
2015-09-27 10:40:20 -06:00
Tim Schaub
e3951fa3c6
Inline simple goog.isDef() calls
2015-09-27 10:34:44 -06:00
Tim Schaub
a86c270f6a
Inline simple !goog.isDef() calls
2015-09-27 10:31:16 -06:00
Tim Schaub
cf5eadebaa
Define options
2015-09-27 10:11:30 -06:00
Måns Beckman
0a28c4282e
Adding check to see if already loaded images taints the canvas
2015-09-23 20:03:33 +02:00
Guillaume Beraudo
464ce13b13
Mark ol.style.Icon#load() @api
...
We currently rely on the renderer to load the styles it intents to use.
In Ol3-Cesium we want to allow different styles for 3D and for 2D.
This commit fixes the issue by allowing application code to explicitely
initiate the loading process.
2015-08-07 15:56:07 +02:00
Tim Schaub
50f71655e5
Style docs
2015-04-04 17:38:03 +02:00
tsauerwein
ed1d9cc8fc
Add imgSize to Icon options
2015-04-02 19:18:38 +02:00
Marc Jansen
fb9ba22c30
Add message to assertions.
2015-03-30 22:53:03 +02:00
Frederic Junod
e2f8c01c42
Fix jsdoc type for arrays of listening keys
2015-02-26 11:45:15 +01:00
tsauerwein
da7f38635b
Remove hitDetectionOrigin
2015-01-08 15:38:00 +01:00
tsauerwein
82ef80cf60
Add imageSize and origin for hit-detection image
2014-11-21 09:39:38 +01:00
Éric Lemoine
4c0bfd8905
More restrictive type for ol.style.Icon#getImage
2014-09-30 12:26:06 +02:00
Peter Robins
d9976ca207
Fix missing API docs
2014-08-11 09:35:16 +00: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
Éric Lemoine
6cd403945a
Set snapToPixel defaut value to true
2014-05-07 09:58:56 +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
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
Éric Lemoine
c2d0cab07a
Add tests for ol.style.IconImageCache
2014-02-06 12:59:39 +01:00
Éric Lemoine
c2fe25ee26
Use the icon image cache
2014-02-06 12:59:39 +01:00
Éric Lemoine
065663b242
Introduce an icon image cache
2014-02-06 12:59:38 +01:00
Éric Lemoine
3626ff5b16
Icon images are handled by a separate class
2014-02-06 12:59:38 +01:00
Éric Lemoine
49120e4761
Icon anchors are Array.<number>
2014-01-08 10:07:01 +01:00
Éric Lemoine
a0a94414dd
Add anchorXUnits and anchorYUnits options to ol.style.Icon
2014-01-08 00:24:55 +01:00