Compare commits

...

379 Commits

Author SHA1 Message Date
Éric Lemoine
5df0b4ec3b Merge pull request #2641 from elemoine/sphere
Add @api to ol.Sphere
2014-08-29 12:10:00 +02:00
Éric Lemoine
f7f4c7b686 Remove @api annotation from ol.sphere.WGS84 2014-08-29 11:57:44 +02:00
Éric Lemoine
ad8a1f5fb6 Make tissot example use ol.Sphere 2014-08-29 11:57:44 +02:00
Éric Lemoine
f452f5545a Add @classdesc to ol.Sphere 2014-08-29 11:57:44 +02:00
Éric Lemoine
91b567293e Merge pull request #2652 from fredj/collection-doc
Improve ol.Collection documentation
2014-08-29 11:49:28 +02:00
Éric Lemoine
40fb661864 Add @api to ol.Sphere 2014-08-29 11:22:08 +02:00
Andreas Hocevar
90604fab2a Merge pull request #2644 from ahocevar/extends-externs
Add @extends annotations to generated externs
2014-08-29 10:49:42 +02:00
Éric Lemoine
5c88d8d84e Merge pull request #2655 from tschaub/new-domain
Using the openlayers.org domain
2014-08-29 08:16:12 +02:00
Frederic Junod
aa40504dd5 Improve ol.Collection documentation 2014-08-29 07:27:35 +02:00
Tim Schaub
fc13499f31 Using the openlayers.org domain 2014-08-28 16:15:41 -06:00
Andreas Hocevar
f724cb65bc Add base classes to info.json and generated externs
This ensures that the inheritance chain is intact, even if the base
class is not exportable.
2014-08-28 19:02:49 +02:00
Éric Lemoine
41ee554969 Merge pull request #2629 from elemoine/apistable-format
Add @api stable annotations to ol.format
2014-08-28 17:37:06 +02:00
Éric Lemoine
00bf5462ba Merge pull request #2609 from elemoine/view-stability
Annotate stable view functions and options
2014-08-28 17:36:49 +02:00
Éric Lemoine
1152b0327b Merge pull request #2612 from elemoine/proj-stability
Add @api stable annotations to ol.proj
2014-08-28 17:19:24 +02:00
Éric Lemoine
7c9c4c6462 Merge pull request #2614 from elemoine/tilegrid-stability
Add @api stable annotations tilegrid functions and options
2014-08-28 17:16:18 +02:00
Éric Lemoine
b099ac8e32 Merge pull request #2622 from elemoine/apistable-condition
Add @api stable annotations to ol.events.condition
2014-08-28 17:13:03 +02:00
Éric Lemoine
f8b9896dd3 Add @api stable annotations to Feature format 2014-08-28 17:10:25 +02:00
Éric Lemoine
52c5897ccc Add @api stable annotations to olx.format.WriteOptions 2014-08-28 17:10:25 +02:00
Éric Lemoine
3338d56792 Add @api stable annotations to olx.format.ReadOptions 2014-08-28 17:10:25 +02:00
Éric Lemoine
c8c59c3657 Add @api stable annotations for WKT format 2014-08-28 17:10:24 +02:00
Éric Lemoine
5eced4a015 Add @api stable annotations for WFS format 2014-08-28 17:10:24 +02:00
Éric Lemoine
de4131f207 Add @api stable annotations for TopoJSON format 2014-08-28 17:10:24 +02:00
Éric Lemoine
ceb0cc54ce Add @api stable annotations for Polyline format 2014-08-28 17:10:23 +02:00
Éric Lemoine
a09b5d61ae Add @api stable annotations for OSMXML format 2014-08-28 17:10:23 +02:00
Éric Lemoine
e0c173bd24 Add @api stable annotations for KML format 2014-08-28 17:10:23 +02:00
Éric Lemoine
5120248188 Add @api stable annotations for GPX format 2014-08-28 17:10:23 +02:00
Éric Lemoine
1f9ab58623 Add @api stable annotations for GML format 2014-08-28 17:10:22 +02:00
Andreas Hocevar
bc2044d48b Walk up the inheritance chain to an exportable constructor 2014-08-28 15:11:09 +02:00
Andreas Hocevar
a0c76aa5ee Do not extend goog.* types 2014-08-28 15:11:09 +02:00
Andreas Hocevar
80ea1772e2 Add @extends annotations to generated externs 2014-08-28 15:11:09 +02:00
Frédéric Junod
507dd4d534 Merge pull request #2630 from fredj/misc
Improve ol.structs.LRUCache type annotation
2014-08-28 13:59:30 +02:00
Andreas Hocevar
d2eceab25e Merge pull request #2643 from ahocevar/interface-externs
Handle interfaces in the generate-externs task
2014-08-28 13:22:15 +02:00
Éric Lemoine
99071b2bef Merge pull request #2638 from elemoine/setstyle
Allow passing undefined to ol.layer.Vector#setStyle
2014-08-28 12:12:38 +02:00
Andreas Hocevar
4d933f0764 Merge pull request #2645 from ahocevar/nullable-externs
Support nullable params and returns in generated externs
2014-08-28 11:52:26 +02:00
Andreas Hocevar
663fef3dfd Support nullable params and returns in generated externs 2014-08-27 18:18:49 +02:00
Andreas Hocevar
e560f529c6 Handle interfaces in the generate-externs task 2014-08-27 16:13:12 +02:00
Frédéric Junod
4e8abb62f9 Merge pull request #2639 from fredj/osmxml-options
Fix ol.source.OSMXML options
2014-08-27 15:11:03 +02:00
Frédéric Junod
95ba8c76e3 Merge pull request #2640 from fredj/geom-clone-return
Improve ol.geom.*.clone() return type annotation
2014-08-27 15:10:13 +02:00
Éric Lemoine
56d4d68459 Mark all WMTS functions/options as experimental 2014-08-27 14:44:21 +02:00
Frederic Junod
42312c6c73 Improve ol.geom.*.clone() return type annotation 2014-08-27 13:30:06 +02:00
Frederic Junod
eaca8c1691 Pass options.urls property to ol.source.OSMXML parent class 2014-08-27 12:31:09 +02:00
Éric Lemoine
03d321ce1f Better docs for ol.layer.Vector#setStyle 2014-08-27 12:26:10 +02:00
Éric Lemoine
9cc0841efb Allow passing undefined to ol.layer.Vector#setStyle 2014-08-27 12:26:10 +02:00
Frederic Junod
d3c2e40c84 remove unused olx.source.OSMXMLOptions#defaultStyle property 2014-08-27 11:19:15 +02:00
Andreas Hocevar
b7ca592334 Merge pull request #2635 from ahocevar/typedefs-after-symbols
Process typedefs last when generating externs
2014-08-27 10:54:27 +02:00
Frédéric Junod
20131bf54a Merge pull request #2637 from fredj/kinetic-optim
Don't compute velocity if not needed
2014-08-27 10:52:13 +02:00
Frederic Junod
5cdd96b131 Don't compute velocity if not needed 2014-08-27 10:40:36 +02:00
Antoine Abt
55005cfb21 Merge pull request #2619 from simonseyock/ol3-overlay-offset
Making ol.Overlay accept offset values if positioning right or bottom
2014-08-27 09:33:07 +02:00
Frederic Junod
1a4580f6f8 Add missing array type in ol.structs.LRUCache#getValues 2014-08-27 09:25:41 +02:00
Frederic Junod
25093b371d Improve ol.structs.LRUCache type annotation 2014-08-27 09:09:52 +02:00
Andreas Hocevar
e9457461af Process typedefs last
Becasue typedefs sometimes use namespaces that are actually
constructors, we need to process typedefs after symbols to avoid
duplicate entries for such namespace types.
2014-08-26 22:21:25 +02:00
Éric Lemoine
68b3691cd6 Merge pull request #2634 from probins/patch-1
Minor improvement to comment in style/style
2014-08-26 18:55:00 +02:00
Peter Robins
4005c986f6 Minor improvement to comment in style/style 2014-08-26 17:34:05 +01:00
Éric Lemoine
df23bd1ff7 Merge pull request #2633 from elemoine/signature
Fix ol.style.defaultStyleFunction signature
2014-08-26 17:24:45 +02: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
Antoine Abt
dea670f754 Merge pull request #2632 from tonio/attrib_styles
Small tweaks to attributions max-width
2014-08-26 15:52:36 +02:00
Antoine Abt
a046dc1bab Fix attributions width 2014-08-26 15:29:11 +02:00
Frédéric Junod
0e9744d967 Merge pull request #2631 from fredj/osm-maxzoom
Set default ol.source.OSM maxZoom to 19
2014-08-26 15:19:52 +02:00
Frederic Junod
b611aff8e4 Set default ol.source.OSM maxZoom to 19 2014-08-26 14:21:32 +02:00
Éric Lemoine
9ecd60601c Merge pull request #2627 from elemoine/inherits
Fix ol.inherits docs
2014-08-26 11:24:01 +02:00
Frédéric Junod
1e0b366202 Merge pull request #2628 from fredj/scale-line
Take the 'us' and 'nautical' units into account in scale line control
2014-08-26 11:03:48 +02:00
Frederic Junod
8c8fd64ecb Add 'us' and 'nautical' units in scale-line example 2014-08-26 10:37:52 +02:00
Frederic Junod
58e3561ba5 Take the 'us' and 'nautical' units into account
When converting pointResolution from degrees to meters
2014-08-26 10:36:55 +02:00
Éric Lemoine
26df575bfe Add @api stable annotations for GeoJSON format 2014-08-26 10:36:27 +02:00
Éric Lemoine
d3d41c8217 Fix ol.inherits docs 2014-08-26 10:13:10 +02:00
Éric Lemoine
b83e639301 Merge pull request #2624 from gingerik/wkt-call-stack
Fix potentially exceeding call stack limit
2014-08-26 08:57:31 +02:00
Erik Timmers
eef87fdaac Fix potentially exceeding call stack limit
Fixes #2590. Improves parsing time.
2014-08-26 08:28:18 +02:00
Éric Lemoine
c02793e42b Add @api stable to ol.MapEvent 2014-08-25 17:36:22 +02:00
Éric Lemoine
db452759c9 Add @api stable to ol.MapBrowserEvent 2014-08-25 17:36:10 +02:00
Éric Lemoine
43ee0158f8 Add @api stable to ol.events.condition built-ins 2014-08-25 17:25:06 +02:00
Éric Lemoine
dcd2e425a2 Add @api stable to ol.events.ConditionType 2014-08-25 17:24:57 +02:00
Bart van den Eijnden
069a2d9f20 Merge pull request #2617 from bartvde/kml-earthquakes
kml earthquakes example is broken
2014-08-25 17:17:03 +02:00
Frédéric Junod
dda700c1e4 Merge pull request #2618 from fredj/geom-clone
Indicates that ol.geom.Geometry#clone never return null
2014-08-25 17:10:20 +02:00
simonseyock
52e06a8ff7 Making ol.Overlay accept offset values if positioning right or bottom
When ol.Overlay has set positioning is set to right or bottom, no offset is applied. I added the missing calculations.
I made 2 fiddles showing the bahaviour before and after.
The divs in hte fiddles are named after their positioning (anchor point)! Not the actual position!
Before: http://jsfiddle.net/simon_seyock/ob7ggtx6/
As you can see, on div named "bottom-right" no offset at all is applied. On "bottom-center" it is only applied horizontally and on "center-right" only vertically.
After: http://jsfiddle.net/simon_seyock/sL2f3nL9/2/
All offsets are applied correctly, you could draw a straight line through the anchor points of every div.
2014-08-25 16:55:33 +02:00
Bart van den Eijnden
8107a0582a Use extractStyles false in KML earthquakes example 2014-08-25 16:51:21 +02:00
Frederic Junod
6e3354ab7b Indicates that ol.geom.Geometry#clone never return null 2014-08-25 16:44:52 +02:00
Tim Schaub
b5a6ffc144 Merge pull request #2608 from tschaub/more-stable
Mark ol.RendererType enum as stable.
2014-08-25 07:39:38 -06:00
Éric Lemoine
5aca42fe64 Merge pull request #2610 from elemoine/geoloc-stability
Annotate stable geolocation functions and options
2014-08-25 13:14:53 +02:00
Éric Lemoine
2e89d69743 Add @api stable annotations to olx.tilegrid.WMTSOptions 2014-08-25 12:37:37 +02:00
Éric Lemoine
b0e87fac76 Add @api stable annotations to ol.tilegrid.WMTS 2014-08-25 11:00:13 +02:00
Éric Lemoine
e4fc8fa119 Add @api stable annotations to olx.tilegrid.TileGridOptions 2014-08-25 11:00:13 +02:00
Éric Lemoine
137d74e5a0 Add @api stable annotations to ol.tilegrid.TileGrid 2014-08-25 11:00:13 +02:00
Éric Lemoine
016daf3c68 Mark ol.TransformFunction as stable 2014-08-25 10:30:04 +02:00
Éric Lemoine
cc4d793c64 Add @api stable annotations to ol.proj 2014-08-25 10:27:25 +02:00
Éric Lemoine
522820fc97 Merge pull request #2611 from elemoine/pixel-stability
Add @api stable annotation to ol.Pixel
2014-08-25 10:20:08 +02:00
Éric Lemoine
a1d91042b1 Add @api stable annotation to ol.Pixel 2014-08-25 10:00:10 +02:00
Éric Lemoine
c97e19b4ff Better docs for ol.Geolocation projection option 2014-08-25 09:56:48 +02:00
Éric Lemoine
759419593a Add @api stable annotations to olx.GeolocationOptions 2014-08-25 09:56:29 +02:00
Éric Lemoine
250b588db4 Add @api stable annotations to ol.Geolocation 2014-08-25 09:56:01 +02:00
Éric Lemoine
c89ea54179 Better docs for fitExtent and calculateExtent 2014-08-25 09:28:31 +02:00
Éric Lemoine
3533dba7ac Add @api stable annotations to olx.ViewOptions 2014-08-25 09:20:24 +02:00
Éric Lemoine
f4c8f176ec Add @api stable annotations to ol.View 2014-08-25 09:19:58 +02:00
Éric Lemoine
cd4063b0d8 Merge pull request #2602 from elemoine/layer-extent
Fix Uncaught RangeError in canvas tile renderer
2014-08-25 09:13:01 +02:00
Bart van den Eijnden
ddb4d9ae83 Merge pull request #2151 from bartvde/license
Builds should include license
2014-08-25 08:27:23 +02:00
Tim Schaub
61d759acc7 Add unstable class to typedefs in navigation menu 2014-08-24 18:35:18 -06:00
Tim Schaub
79efcc78a5 Add unstable class to member definitions 2014-08-24 18:31:23 -06:00
Tim Schaub
38b2a46b59 Mark ol.RendererType enum as stable 2014-08-24 18:22:19 -06:00
Tim Schaub
38b58e9860 Merge pull request #2606 from tschaub/stable-map-options
Annotate stable map options.
2014-08-24 18:16:27 -06:00
Tim Schaub
c899324eb5 Merge pull request #2605 from tschaub/stable-doc
Hide unstable items from the API docs by default.
2014-08-24 18:09:50 -06:00
Éric Lemoine
73df93969a No composeFrame if layer and view don't intersect
ol.renderer.canvas.TileLayer#prepareFrame immediately returns false if the layer extent and the view extent do not intersect.
2014-08-24 14:55:13 +02:00
Éric Lemoine
def1af4492 No composeFrame if prepareFrame returns false 2014-08-24 14:55:13 +02:00
Éric Lemoine
284031bd1e Merge pull request #2607 from probins/patch-1
Clarify that draganddrop example doesn't include projection transforms
2014-08-23 15:32:23 +02:00
Peter Robins
0010cb787f Clarify that draganddrop example doesn't include projection transforms 2014-08-23 12:09:17 +01:00
Tim Schaub
e17e909ffa Annotate stable map options 2014-08-22 17:43:51 -06:00
Tim Schaub
a8999f601b Hide unstable items by default, provide checkbox for toggling 2014-08-22 17:30:29 -06:00
Tim Schaub
ecaedff890 Add "unstable" class to unstable items
This also removes the events from the sidebar.  These are repeated on the main page and only add unnecessary length to the sidebar.
2014-08-22 17:28:50 -06:00
Tim Schaub
787688ef33 Copy stability from doclet to observable 2014-08-22 17:27:29 -06:00
Éric Lemoine
07b5b448dc Merge pull request #2596 from elemoine/apistable-coordinate
Add @api stable annotations for ol.coordinate
2014-08-22 19:02:17 +02:00
Éric Lemoine
9a4b45921d Merge pull request #2552 from elemoine/apistable
Add @api stable annotations for the ol.layer namespace
2014-08-22 19:01:13 +02:00
Éric Lemoine
fa2206e7a4 Merge pull request #2601 from probins/dbf
Rename ol.dom.browserfeature back to BrowserFeature
2014-08-22 19:00:44 +02:00
Éric Lemoine
5ce4e748f5 Add docs for the tile layer preload option 2014-08-22 18:38:22 +02:00
Éric Lemoine
1b86a4967f Merge pull request #2600 from elemoine/apistable-size
Add @api stable annotation to ol.Size
2014-08-22 18:02:40 +02:00
Éric Lemoine
32dce80fb6 Merge pull request #2598 from elemoine/apistable-extent
Add @api stable annotations for ol.extent
2014-08-22 18:02:33 +02:00
Éric Lemoine
886941b48e Merge pull request #2597 from elemoine/apistable-attribution
Add @api stable annotations for ol.Attribution
2014-08-22 18:02:20 +02:00
Éric Lemoine
546b42df07 Remove @api annotation from ol.coordinate.fromProjectedArray 2014-08-22 18:01:31 +02:00
Éric Lemoine
678d4ef01c Merge pull request #2555 from elemoine/apistable1
Add @api stable annotations for the ol.source namespace
2014-08-22 17:57:23 +02:00
Éric Lemoine
f369f9a076 Merge pull request #2599 from elemoine/apistable-control-defaultsoptions
Add @api stable annotations for olx.control.DefaultsOptions
2014-08-22 17:37:33 +02:00
Peter Robins
18a1c1c0d7 Rename ol.dom.browserfeature back to BrowserFeature 2014-08-22 15:32:01 +00:00
Éric Lemoine
c2e93adae0 Add @api stable annotation to ol.Size 2014-08-22 17:21:46 +02:00
Éric Lemoine
db546a60ea Add missing "rotate" field to DefaultsOptions typedef 2014-08-22 17:18:36 +02:00
Éric Lemoine
83b086db4f Add @api stable annotations for olx.control.DefaultsOptions 2014-08-22 17:12:01 +02:00
Éric Lemoine
22fd6872f4 Add @api stable annotations for ol.extent 2014-08-22 17:04:24 +02:00
Éric Lemoine
89e086e586 Add @api stable annotations for ol.Attribution 2014-08-22 16:59:18 +02:00
Éric Lemoine
7a2bad543f Merge pull request #2595 from probins/patch-1
Fix typo in generate-exports
2014-08-22 16:56:15 +02:00
Peter Robins
8dab12f0d4 Fix typo in generate-exports 2014-08-22 15:42:24 +01:00
Tim Schaub
19843d301c Merge pull request #2586 from tschaub/has
Rename ol.browserfeature to ol.has.
2014-08-22 08:02:55 -06:00
Tim Schaub
90fc5b2a4d Merge pull request #2587 from tschaub/shuffle
Directory renaming.
2014-08-22 07:49:42 -06:00
Tim Schaub
f11e5de156 Mark exportable ol.has properties as stable 2014-08-22 07:36:05 -06:00
Tim Schaub
947b049799 Rename ol.browserfeature to ol.has 2014-08-22 07:34:35 -06:00
Tim Schaub
f17c33f631 Rename buildcfg to config 2014-08-22 07:28:05 -06:00
Tim Schaub
c7ba6f4c6e Rename doc template from apidoc to api 2014-08-22 07:28:05 -06:00
Tim Schaub
1fd0bada51 Move apidoc config with other build related config 2014-08-22 07:28:05 -06:00
Tim Schaub
403e87f697 Merge pull request #2588 from tschaub/unstable
Mark map.beforeRender as unstable.
2014-08-22 07:16:49 -06:00
Éric Lemoine
bbeb4442a5 Add @api annotations to ol.layer.Tile 2014-08-22 11:24:07 +02:00
Éric Lemoine
3ced2d8266 Add @api stable annotations to ol.layer.Vector 2014-08-22 11:24:07 +02:00
Éric Lemoine
1085d4f152 Add @api stable annotations to ol.layer.Tile 2014-08-22 11:24:07 +02:00
Éric Lemoine
ee745f8c9e Add @api stable annotations to ol.layer.Image 2014-08-22 11:24:06 +02:00
Éric Lemoine
e50ba2172f Add @api stable annotations to ol.layer.Group 2014-08-22 11:24:06 +02:00
Éric Lemoine
15487d1ce9 Add @api stable annotations to ol.layer.Layer 2014-08-22 11:24:06 +02:00
Éric Lemoine
efc32b14df Add @api stable annotations to ol.layer.Base 2014-08-22 11:24:06 +02:00
Éric Lemoine
54ff843075 Add @api stable annotations for olx.source.ImageMapGuideOptions 2014-08-22 11:08:50 +02:00
Éric Lemoine
daf7715bc6 Add @api stable annotations for ol.source.ImageMapGuide 2014-08-22 11:07:35 +02:00
Éric Lemoine
495d807aba Add @api stable annotations for olx.source.ZoomifyOptions 2014-08-22 10:43:01 +02:00
Éric Lemoine
b5dcfeac42 Add @api stable annotations for olx.source.XYZOptions 2014-08-22 10:41:38 +02:00
Éric Lemoine
895694e8e8 Add @api stable annotations for olx.source.WMTSOptions 2014-08-22 10:38:21 +02:00
Éric Lemoine
96d91c684e Add @api stable annotations for olx.source.VectorOptions 2014-08-22 10:34:53 +02:00
Éric Lemoine
3ee72c35a6 Add @api stable annotations for olx.source.TileWMSOptions 2014-08-22 10:32:32 +02:00
Éric Lemoine
328f049d04 Add @api stable annotations for olx.source.TileJSONOptions 2014-08-22 10:32:32 +02:00
Éric Lemoine
6724e1520f Add @api stable annotations for olx.source.StamenOptions 2014-08-22 10:32:32 +02:00
Éric Lemoine
6bbb699771 Add @api stable annotations for olx.source.OSMOptions 2014-08-22 10:32:32 +02:00
Éric Lemoine
580943e700 Add @api stable annotations for olx.source.MapQuestOptions 2014-08-22 10:24:15 +02:00
Éric Lemoine
67c44b4e9e Add @api stable annotations for olx.source.ImageWMSOptions 2014-08-22 10:19:37 +02:00
Éric Lemoine
a7a255c235 Add @api stable annotations for olx.source.ImageStaticOptions 2014-08-22 10:19:37 +02:00
Éric Lemoine
3049b56db1 Add @api stable annotations for olx.source.BingMapsOptions 2014-08-22 10:19:37 +02:00
Éric Lemoine
72aa61885a Add @api stable annotations for ol.source.Zoomify 2014-08-22 10:19:37 +02:00
Éric Lemoine
0fc4d0de98 Add @api stable annotations for ol.source.XYZ 2014-08-22 10:19:37 +02:00
Éric Lemoine
50564f8d67 Remove ol.source.WMTS.optionsFromCapabilities from the API 2014-08-22 10:19:36 +02:00
Éric Lemoine
abe6fb7611 Add @api stable annotations for ol.source.WMTS 2014-08-22 10:19:36 +02:00
Éric Lemoine
02dc7bcc9e Add @api stable annotations for ol.source.Vector 2014-08-22 10:19:36 +02:00
Éric Lemoine
68fc7e5251 Add @api stable annotations for ol.source.TileWMS 2014-08-22 10:12:54 +02:00
Éric Lemoine
cea9bd6a4a Add @api stable annotations for ol.source.Tile 2014-08-22 10:12:54 +02:00
Éric Lemoine
4cc9187414 Add @api stable annotations for ol.source.TileJSON 2014-08-22 10:12:54 +02:00
Éric Lemoine
e9c2e72000 Add @api stable annotations for ol.source.Stamen 2014-08-22 10:12:54 +02:00
Éric Lemoine
16359b8af0 Add @api stable annotations for ol.source.Source 2014-08-22 10:12:54 +02:00
Éric Lemoine
823dc41cdf Add @api stable annotations for ol.source.OSM 2014-08-22 10:12:54 +02:00
Éric Lemoine
69b99cb9ed Add @api stable annotations for ol.source.MapQuest 2014-08-22 10:12:54 +02:00
Éric Lemoine
7596133db1 Add @api stable annotations for ol.source.ImageWMS 2014-08-22 10:12:54 +02:00
Éric Lemoine
f7088fc500 Add @api stable annotations for ol.source.ImageStatic 2014-08-22 10:12:54 +02:00
Bart van den Eijnden
a5dd13c5f1 Add a reference to the license to the build 2014-08-22 10:10:21 +02:00
Éric Lemoine
d71ca642d2 Add @api stable annotations for ol.source.BingMaps 2014-08-22 09:32:14 +02:00
Éric Lemoine
807ddccecf Merge pull request #2589 from tschaub/olx-property-stability
Document stability for olx properties
2014-08-22 09:27:48 +02:00
Éric Lemoine
3e38b1d88a Merge pull request #2561 from elemoine/apistable2
Add @api stable annotations for ol.Observable
2014-08-22 09:17:47 +02:00
Éric Lemoine
f3930d751e Add @api stable annotations for ol.Observable 2014-08-22 09:16:28 +02:00
Éric Lemoine
7383a1df06 Merge pull request #2565 from elemoine/apistable5
Add @api stable annotations for ol.Feature and the ol.geom namespace
2014-08-22 07:37:28 +02:00
Tim Schaub
9c4689206b Document stability for options 2014-08-21 22:14:48 -06:00
Tim Schaub
525456e6cd Only document olx properties marked as part of the API
And mark all olx properties with @api.  The stability level will be used to determine what can change between minor releases.
2014-08-21 21:49:06 -06:00
Tim Schaub
9975d842f1 Mark map.beforeRender as unstable 2014-08-21 20:31:05 -06:00
Tim Schaub
fc303cdec7 Merge pull request #2577 from tschaub/stability-info
Write out stability info for symbols.
2014-08-21 13:41:11 -06:00
Frédéric Junod
a9195771ca Merge pull request #2584 from openlayers/error-by-fail
Replace 'throw new Error' by 'goog.asserts.fail'
2014-08-21 18:33:46 +02:00
Éric Lemoine
58a77478a3 Merge pull request #2582 from elemoine/wmsgfi
Support for "Stateless GetFeatureInfo"
2014-08-21 18:07:39 +02:00
Tobias Sauerwein
a231086a8b Merge pull request #2407 from ahocevar/format-projection
Options for feature readers and writers to support transforms
2014-08-21 17:58:10 +02:00
Frederic Junod
fb1d7e0c50 Replace 'throw new Error' by 'goog.asserts.fail' 2014-08-21 15:22:01 +02:00
Frédéric Junod
15a516fd62 Merge pull request #2583 from fredj/readFeature-doc
Update ol.format.GeoJSON#readFeature documentation
2014-08-21 13:30:56 +02:00
Éric Lemoine
43bd2b740b Add @api stable annotations for ol.coordinate 2014-08-21 13:24:57 +02:00
Frederic Junod
b5a3e90bb4 Update ol.format.GeoJSON#readFeature documentation
An error is only thrown in development mode: goog.asserts.assert are removed
by the compiler.
2014-08-21 12:36:53 +02:00
Éric Lemoine
2e29ae8bc5 Add a getfeatureinfo-image example 2014-08-21 11:54:49 +02:00
Éric Lemoine
89686b783f Rename getfeatureinfo example to getfeatureinfo-tile 2014-08-21 11:52:47 +02:00
Éric Lemoine
fbab52b09f Enable ProjectionLike on getGetFeatureInfoUrl
This commit follows up on #2348.
2014-08-21 11:45:10 +02:00
tsauerwein
939e167c0b Rename "adaptOptionsWithDefaultDataProjection" 2014-08-21 11:39:01 +02:00
Éric Lemoine
d1bb2724a5 Stateless GetFeatureInfo for ol.source.ImageWMS 2014-08-21 11:29:44 +02:00
Éric Lemoine
5a9d75a04f Stateless GetFeatureInfo for ol.source.TileWMS 2014-08-21 11:29:44 +02:00
Éric Lemoine
55db958290 Merge pull request #2564 from elemoine/apistable4
Add @api stable annotations for the ol.control namespace
2014-08-21 11:02:56 +02:00
Éric Lemoine
a54a485faf Merge pull request #2562 from elemoine/apistable3
Add @api stable annotations for ol.Overlay
2014-08-21 11:00:26 +02:00
Éric Lemoine
4764cbc908 Remove the ol.geom.RawMultiPolygon type 2014-08-21 10:56:50 +02:00
Éric Lemoine
95d7598227 Remove the ol.geom.RawMultiLineString type 2014-08-21 10:56:50 +02:00
Éric Lemoine
d17993794d Remove the ol.geom.RawMultiPoint type 2014-08-21 10:56:50 +02:00
Éric Lemoine
47c1f1908e Remove the ol.geom.RawPolygon type 2014-08-21 10:56:50 +02:00
Éric Lemoine
838415218f Remove the ol.geom.RawLinearRing type 2014-08-21 10:56:50 +02:00
Éric Lemoine
fb1c764a38 Remove the ol.geom.RawLineString type 2014-08-21 10:56:50 +02:00
Éric Lemoine
72bcb2db80 Remove the ol.geom.RawPoint type 2014-08-21 10:56:49 +02:00
Éric Lemoine
feba61af25 Add @api stable annotations for ol.geom.SimpleGeometry 2014-08-21 10:56:49 +02:00
Éric Lemoine
e9eb22bc47 Add @api stable annotations for ol.geom.Polygon 2014-08-21 10:56:49 +02:00
Éric Lemoine
b865958efb Add @api stable annotations for ol.geom.Point 2014-08-21 10:56:49 +02:00
Éric Lemoine
2c5464aa76 Add @api stable annotations for ol.geom.MultiPolygon 2014-08-21 10:56:49 +02:00
Éric Lemoine
6ecd31fe62 Add @api stable annotations for ol.geom.MultiPoint 2014-08-21 10:56:49 +02:00
Éric Lemoine
ce7fda71af Add @api stable annotations for ol.geom.MultiLineString 2014-08-21 10:56:49 +02:00
Éric Lemoine
180c6aa7a9 Add @api stable annotations for ol.geom.LineString 2014-08-21 10:56:49 +02:00
Éric Lemoine
516be9041e Add @api stable annotations for ol.geom.LinearRing 2014-08-21 10:56:49 +02:00
Éric Lemoine
5ccb0fae07 Add @api stable annotations for ol.geom.GeometryCollection 2014-08-21 10:56:49 +02:00
Éric Lemoine
9b0ce7b80c Add @api stable annotations for ol.geom.Geometry 2014-08-21 10:56:49 +02:00
Éric Lemoine
300146e15b Merge pull request #2580 from probins/patch-1
Small improvements to description of ol.Map example
2014-08-21 10:21:49 +02:00
Peter Robins
b858421220 Small improvements to description of ol.Map example 2014-08-21 08:46:40 +01:00
Frédéric Junod
dcf05af210 Merge pull request #2579 from probins/patch-1
Remove link to non-existent ol.ViewOptions
2014-08-21 09:43:54 +02:00
Peter Robins
44d9955dae Remove link to non-existent ol.ViewOptions 2014-08-21 08:34:54 +01:00
Frédéric Junod
fa512f1ed0 Merge pull request #2545 from fredj/cleanup
Miscellaneous coding style fixes
2014-08-21 07:44:07 +02:00
Tim Schaub
bc680ef101 Write out stability info for symbols 2014-08-20 16:17:27 -06:00
Bart van den Eijnden
dd2d896983 Merge pull request #2570 from bartvde/gml-wfs-docs
document that ol.format.GML is GML v3 SF profile only now
2014-08-20 22:55:55 +02:00
Bart van den Eijnden
45d4f32078 Document the supported GML and WFS versions 2014-08-20 21:50:51 +02:00
Antoine Abt
81b66a7906 Merge pull request #2575 from tonio/vectoropacity
Restore opacity after drawing vector layers
2014-08-20 15:47:07 +02:00
Éric Lemoine
d906efa24c Merge pull request #2509 from probins/apimismatch
Fix missing API docs
2014-08-20 15:40:25 +02:00
Antoine Abt
b034e114d6 Restore opacity after drawing vector layers 2014-08-20 15:34:48 +02:00
Frédéric Junod
42e8fb544a Merge pull request #2571 from fredj/rotatecontrol-cleanup
ol.control.Rotate cleanup and optimization
2014-08-20 11:59:57 +02:00
Frederic Junod
7f086e138a Remove unnecessary local variable 2014-08-20 11:17:44 +02:00
Éric Lemoine
817862ef59 Merge pull request #2572 from probins/proj
Document aliases for EPSG:4326/3857
2014-08-20 11:16:33 +02:00
Peter Robins
ac63a453c2 Document aliases for EPSG:4326/3857 2014-08-20 09:03:46 +00:00
Frederic Junod
27ae50e673 Only update rotate control element when it's needed
To avoid a lot of 'Recalculate style' events by the browser.
2014-08-20 10:58:18 +02:00
Frederic Junod
7c14399133 Add missing jsdoc tag 2014-08-20 10:58:18 +02:00
Frederic Junod
113888120f Use goog.math.toDegrees 2014-08-20 10:58:17 +02:00
Tim Schaub
c7f45819ae Merge pull request #2482 from tschaub/lint-tasks
Lint tasks.
2014-08-19 12:30:26 -06:00
Tim Schaub
f498080d78 Fail if tasks have lint 2014-08-19 12:15:11 -06:00
Tim Schaub
30bfa1bf19 Remove additional lint from new tasks 2014-08-19 12:15:11 -06:00
Tim Schaub
7f5ed26d8d Merge pull request #1124 from tschaub/xyz
Allow tilegrid creation from projection or extent.
2014-08-19 11:59:52 -06:00
Tim Schaub
6bd0d7efae Additional documentation 2014-08-19 10:30:38 -06:00
Tim Schaub
1ede97ae18 Respect the tileSize option for XYZ grids 2014-08-19 10:30:37 -06:00
Tim Schaub
ee487ca308 Sources may be configured with a projection, tile grids with an extent
An XYZ tile grid is constructed with an extent defining the bounds of the tile grid.
2014-08-19 10:30:27 -06:00
Éric Lemoine
239a90cd55 Add @api stable annotations for ol.Feature 2014-08-19 17:12:46 +02:00
Éric Lemoine
24651ba21e Add @api stable annotations for ol.control.FullScreen 2014-08-19 16:59:22 +02:00
Éric Lemoine
26ec1d5924 Add @api stable annotations for ol.control.ZoomToExtent 2014-08-19 16:59:18 +02:00
Éric Lemoine
967bbebaa0 Add @api stable annotations for ol.control.ZoomSlider 2014-08-19 16:59:14 +02:00
Éric Lemoine
c3e0b5f282 Add @api stable annotations for ol.control.Zoom 2014-08-19 16:59:10 +02:00
Éric Lemoine
d8afc96aa3 Add @api stable annotations for ol.control.ScaleLine 2014-08-19 16:59:06 +02:00
Éric Lemoine
975e81a041 Add @api stable annotations for ol.control.Rotate 2014-08-19 16:59:02 +02:00
Éric Lemoine
39431dff9e Add @api stable annotations for ol.control.MousePosition 2014-08-19 16:58:53 +02:00
Éric Lemoine
ecbf3bc692 Add @api stable annotations for ol.control.defaults 2014-08-19 16:58:49 +02:00
Éric Lemoine
602deafc86 Add @api stable annotations for ol.control.Attribution 2014-08-19 16:46:44 +02:00
Éric Lemoine
7c01d3a57c Add @api stable annotations for ol.control.Control 2014-08-19 16:46:12 +02:00
Éric Lemoine
365caa6f19 Merge pull request #2559 from elemoine/loader
Change comment in loader_hosted_examples.js
2014-08-19 12:33:04 +02:00
Éric Lemoine
879ace1c9a Add @api stable annotations for ol.Overlay 2014-08-19 12:32:01 +02:00
Frédéric Junod
27ad6c33bc Merge pull request #2560 from fredj/optim
Don't create unnecessary closure
2014-08-19 12:28:34 +02:00
Éric Lemoine
2c9e822808 Merge pull request #2410 from probins/taskreadme
Additional clarifications for tasks/readme
2014-08-19 12:27:25 +02:00
Éric Lemoine
96269c0b24 Change comment in loader_hosted_examples.js
The hosted examples do not use the ol-debug.js build. They use ol.js in "production" mode, and they load scripts one by one in "development" mode.
2014-08-19 12:14:38 +02:00
Frederic Junod
1439ceafa1 Simplify goog.object.forEach call 2014-08-19 11:58:50 +02:00
Frederic Junod
102f214afe Remove unnecessary local variable 2014-08-19 11:58:25 +02:00
Frederic Junod
0f4e56978b Remove unnecessary newlines 2014-08-19 11:58:25 +02:00
Frederic Junod
35e4134047 Don't create unnecessary closure 2014-08-19 11:39:44 +02:00
Frédéric Junod
59826ce490 Merge pull request #2558 from fredj/optim
Don't create unnecessary closure in constructor
2014-08-19 11:02:31 +02:00
Éric Lemoine
db490e11b5 Merge pull request #2557 from elemoine/rename-mapguide
Rename ol.source.MapGuide to ol.source.ImageMapGuide
2014-08-19 10:20:52 +02:00
Frederic Junod
2b3e0bf699 Don't create unnecessary closure in constructor 2014-08-19 09:55:18 +02:00
Éric Lemoine
ec81c05cce Rename ol.source.MapGuide to ol.source.ImageMapGuide 2014-08-19 09:44:15 +02:00
tsauerwein
b30ed6b934 Put options on objectStack for xml formats 2014-08-19 09:42:44 +02:00
Tim Schaub
e97f79b4ab Respect XYZ source projection 2014-08-18 23:03:33 -06:00
Tim Schaub
33b68123ac Add jshint config for tasks and remove lint 2014-08-18 17:22:57 -06:00
Tim Schaub
63ad916ca7 Function for creating tile grids from extents 2014-08-18 17:10:26 -06:00
Tim Schaub
dd5e7693da General purpose getCorner function for extents 2014-08-18 14:55:49 -06:00
Éric Lemoine
711c4bbc8c Merge pull request #2450 from probins/events
Improve and standardise event docs
2014-08-18 17:35:59 +02:00
Peter Robins
7a5a5d75e7 Improve and standardise event docs 2014-08-18 15:17:02 +00:00
Éric Lemoine
8f7f814d32 Merge pull request #2465 from probins/color
Expand docs for color options
2014-08-18 16:53:39 +02:00
Peter Robins
d5e1c27fc1 Expand docs for color options 2014-08-18 14:37:38 +00:00
Éric Lemoine
e53213d730 Merge pull request #2537 from probins/browserfeature
Rename BrowserFeature to browserfeature
2014-08-18 16:23:28 +02:00
Antoine Abt
344452bd22 Merge pull request #2443 from tonio/tile-vector
More data in tile-vector examples
2014-08-18 15:59:20 +02:00
tsauerwein
e7864be2be Fix ol.format.transformWithOptions 2014-08-18 15:48:29 +02:00
tsauerwein
539e4a23b9 Introduce defaultDataProjection for formats 2014-08-18 15:31:06 +02:00
Frédéric Junod
b92a0338c9 Merge pull request #2547 from fredj/proj-api
Export more functions from ol.proj.Projection
2014-08-18 15:00:13 +02:00
Éric Lemoine
a7e32469fa Merge pull request #2512 from petrsloup/olcs-missing-api
Make API of raster sources more convenient
2014-08-18 14:23:49 +02:00
Frederic Junod
d7c2e27d50 Export ol.proj.Projection#getMetersPerUnit function 2014-08-18 14:21:10 +02:00
Frederic Junod
e39e9c2230 Export ol.proj.Projection#isGlobal function 2014-08-18 14:21:10 +02:00
Antoine Abt
139ea4c7d2 Merge pull request #2513 from probins/editstyle
Move createDefaultEditingStyles() to ol.style
2014-08-18 14:11:35 +02:00
Petr Sloup
d7027a6a64 Export getLayers and setLayers methods of ol.layer.Group
This is nicer than having to use .get("layers") and .set("layers", x).
2014-08-18 13:48:42 +02:00
Petr Sloup
1d5c746974 Export getHTML method of ol.Attribution to the api 2014-08-18 13:48:34 +02:00
Petr Sloup
0ac90e62b9 Added some api annotations required for accessing layer properties 2014-08-18 13:48:14 +02:00
Éric Lemoine
c83ae8a284 Merge pull request #2544 from elemoine/mapguide
Params not correctly handled in MapGuide source
2014-08-18 13:21:34 +02:00
Éric Lemoine
e7083aef1d Params not correctly handled in MapGuide source 2014-08-18 12:17:32 +02:00
Frédéric Junod
c7bf94e69b Merge pull request #2528 from fredj/wmts-source-optim
ol.source.WMTS optimization
2014-08-18 11:24:41 +02:00
Éric Lemoine
9072fb1f2f Merge pull request #2543 from elemoine/foreachfeature
Do not hit-detect the same feature multiple times
2014-08-18 10:38:38 +02:00
Frederic Junod
b484801e4f Use tmpExtent in ol.source.WMTS tileUrlFunction 2014-08-18 10:35:14 +02:00
Frederic Junod
8076401c0f Use opt_tileCoord in ol.source.WMTS tileUrlFunction 2014-08-18 10:35:14 +02:00
Éric Lemoine
c81dfdc69b Do not hit-detect the same feature multiple times
In other words forEachFeatureAtPixel should not call the user-provided callback more than once for a given feature.
2014-08-18 10:24:12 +02:00
Éric Lemoine
0779b4ef79 Merge pull request #2539 from elemoine/tilecoord
Change ol.TileCoord to Array.<number>
2014-08-18 10:21:35 +02:00
Éric Lemoine
ba035abb1f Change ol.TileCoord to an Array 2014-08-18 09:33:24 +02:00
Paul Spencer
1fc620b7bb Merge pull request #2527 from pagameba/cluster-fix
Return rather than fail if resolution is not defined
2014-08-16 19:26:37 -04:00
Peter Robins
e35531e7c6 Rename BrowserFeature to browserfeature 2014-08-15 13:53:20 +00:00
Éric Lemoine
0d20b337a0 Merge pull request #2348 from probins/getget
Enable ProjectionLike on getGetFeatureInfoUrl
2014-08-15 11:37:20 +02:00
Peter Robins
7b32b8e561 Enable ProjectionLike on getGetFeatureInfoUrl 2014-08-15 08:42:40 +00:00
Frédéric Junod
7097be3d00 Merge pull request #2532 from fredj/tilerange-cleanup
Add ol.TileRange#containsXY function
2014-08-14 13:59:23 +02:00
Frédéric Junod
db6c87a9bd Merge pull request #2529 from petrsloup/source-state-fix
Fix for invalid initial state of certain sources
2014-08-14 12:23:49 +02:00
Éric Lemoine
a16a678ca7 Be stricter with types 2014-08-14 10:56:48 +02:00
Frederic Junod
14fc16b91d Add ol.TileRange#containsXY function 2014-08-14 10:50:19 +02:00
Frédéric Junod
8c3a72497c Merge pull request #2531 from fredj/debugtile-cleanup
Remove unneeded ol.DebugTile_#tileCoord_ variable
2014-08-14 10:17:36 +02:00
Frederic Junod
abc01b5f10 Remove unneeded ol.DebugTile_#tileCoord_ variable 2014-08-14 09:43:05 +02:00
Petr Sloup
5d31d2044a Added "state" property of olx.source.TileImageOptions to the olx externs 2014-08-14 09:32:27 +02:00
Petr Sloup
4b24eb6eb2 Added 'state' constructor option to Tile and TileImage sources 2014-08-13 17:11:29 +02:00
Frédéric Junod
ff209d8759 Merge pull request #2526 from fredj/xyz-retina
Fix incorrect maximum extent in xyz-retina example
2014-08-13 16:40:25 +02:00
tsauerwein
1205d0fe1e Fix ol.format.GML.readProjectionFromNode 2014-08-13 10:32:26 +02:00
Frederic Junod
3b817d8db3 Fix attribution in xyz-retina example 2014-08-13 08:59:42 +02:00
Paul Spencer
fb242b5316 Return rather than fail if resolution is not defined 2014-08-12 20:27:17 -04:00
Frederic Junod
2b8426fb47 Fix incorrect maximum extent in xyz-retina example 2014-08-12 18:09:00 +02:00
Frédéric Junod
4fb905170a Merge pull request #2525 from fredj/reuse-tileRange
Reuse tileRange in ol.renderer.Layer#manageTilePyramid
2014-08-12 17:53:56 +02:00
Éric Lemoine
9cf653f0f2 Merge pull request #2510 from elemoine/check
Make the check target build ol.js
2014-08-12 17:49:53 +02:00
Frederic Junod
f2638ddfbf Reuse tileRange in ol.renderer.Layer#manageTilePyramid
This avoids a lot of garbage.
2014-08-12 14:37:46 +02:00
Éric Lemoine
c16622be9e Merge pull request #2519 from probins/view
Small corrections to ol.View docs
2014-08-12 09:19:39 +02:00
Peter Robins
5247903a4a Small corrections to ol.View docs 2014-08-12 07:13:10 +00:00
Andreas Hocevar
45f24ee097 Merge pull request #2518 from probins/centercon
Remove centerConstraintType from API
2014-08-11 20:22:06 +02:00
Peter Robins
8bc5a928a7 Remove centerConstraintType from API 2014-08-11 17:15:08 +00:00
Andreas Hocevar
e69f065a23 Merge pull request #2479 from ahocevar/generate-externs
Node task to generate externs for OpenLayers 3
2014-08-11 18:29:04 +02:00
Peter Robins
ed2f2befdf Move createDefaultEditingStyles() to ol.style 2014-08-11 15:39:21 +00:00
Frédéric Junod
6ca3e83492 Merge pull request #2511 from fredj/cleanup
Remove unused goog.require
2014-08-11 15:31:00 +02:00
Éric Lemoine
b3b5572763 Make the check target build ol.js 2014-08-11 14:22:01 +02:00
tsauerwein
294afe16fe Fix compiler type errors 2014-08-11 14:04:31 +02:00
Frederic Junod
ddd16b6985 Remove unused goog.require 2014-08-11 13:49:30 +02:00
tsauerwein
3ff180b224 Implement read transforms for ol.format.WFS 2014-08-11 12:22:29 +02:00
tsauerwein
48ed2e861e Implement read/write transforms for ol.format.Polyline 2014-08-11 11:59:27 +02:00
Peter Robins
d9976ca207 Fix missing API docs 2014-08-11 09:35:16 +00:00
tsauerwein
f8560df793 Implement read transforms for ol.format.IGC 2014-08-11 10:51:34 +02:00
tsauerwein
9bc70f3459 Implement read/write transforms for ol.format.WKT 2014-08-11 10:17:31 +02:00
Andreas Hocevar
286db65d34 Use {*} instead of {goog.*} types in externs file 2014-08-09 09:05:54 +02:00
Andreas Hocevar
e294ca1868 Keep track of all symbols
This avoids that we add parent namespaces of symbols that were already
added because they have their own definition in the externs.
2014-08-09 08:53:25 +02:00
Andreas Hocevar
8a56f455f1 Define constructor before its members 2014-08-09 08:53:24 +02:00
Andreas Hocevar
63abbe2597 Prepend 'var ' for root symbols 2014-08-09 08:53:24 +02:00
Andreas Hocevar
9780e9f0c0 Dereference typedef 2014-08-09 08:53:24 +02:00
Andreas Hocevar
a35f361683 Build types only for olx.* symbols from externs 2014-08-09 08:53:24 +02:00
Andreas Hocevar
9e814f119f Do not process file type doclets 2014-08-09 08:53:24 +02:00
Andreas Hocevar
e8eebd8846 Allow to provide externs for inclusion in info.json 2014-08-09 08:53:24 +02:00
Tim Schaub
9db936fe87 Merge pull request #2508 from tschaub/post-install
Run closure-util install script after install.
2014-08-08 11:20:55 -07:00
Tim Schaub
bdfceaad06 Run closure-util install script after install
This needs to be run whenever our closure-util.json config changes.  It is harmless to run multiple times.
2014-08-08 11:08:37 -07:00
tsauerwein
bfb6c2e3b8 Implement read transforms for ol.format.OSMXML 2014-08-08 17:25:05 +02:00
tsauerwein
b05f880f7c Implement read/write transforms for ol.format.KML 2014-08-08 17:10:11 +02:00
tsauerwein
31dbbc6a8c Implement read/write transforms for ol.format.GPX 2014-08-08 15:50:55 +02:00
tsauerwein
e446738491 Implement read transforms for ol.format.TopoJSON 2014-08-08 11:43:53 +02:00
tsauerwein
3090a0af37 Fix GeoJSON.readFeaturesFromObject
Only feature collections worked properly.
2014-08-08 11:14:03 +02:00
tsauerwein
281fd3c6a9 Implement GML.readProjectionFromNode() 2014-08-08 10:54:40 +02:00
Andreas Hocevar
9575396aad Fix types in olx.js 2014-08-04 20:37:46 +02:00
Andreas Hocevar
53e12e7e47 Add typedefs for externs/olx.js contents 2014-08-04 20:37:46 +02:00
Andreas Hocevar
f0242a76c4 Include typedefs and types from olx.js 2014-08-04 20:37:46 +02:00
Andreas Hocevar
58f857bbb6 Test whether externs/olx.js is newer than build/info.json 2014-08-04 20:37:45 +02:00
Andreas Hocevar
33a627b7ce Include externs/olx.js in the info generation 2014-08-04 20:37:45 +02:00
Andreas Hocevar
a40170feb7 Include typedefs in externs 2014-08-04 20:37:45 +02:00
Andreas Hocevar
b2059b85d2 Add data for typedefs to info.json 2014-08-04 20:37:45 +02:00
Andreas Hocevar
26dae36a0b Extract types in a separate function 2014-08-04 20:37:45 +02:00
Andreas Hocevar
46b74cedf8 Only add object type definition when there is no constructor 2014-08-04 20:37:44 +02:00
Andreas Hocevar
94e2911697 Fix function type so the function is optional, not the return value 2014-08-04 20:37:44 +02:00
Andreas Hocevar
9517c0d433 Use 'Function' type instead of 'function' 2014-08-04 20:37:44 +02:00
Andreas Hocevar
66bde546c0 Avoid duplicate constructors 2014-08-04 20:37:44 +02:00
Andreas Hocevar
1e79acac20 Build externs file from info.json
This change adds all information that is needed to generate the externs
file to build/info.json, so tasks/generate-externs.js no longer needs
to spawn JSDoc.
2014-08-04 20:37:44 +02:00
Andreas Hocevar
0d86e4a237 Document the generate-externs.js task 2014-08-04 20:37:44 +02:00
Andreas Hocevar
4cb60feb40 Add generate-externs task to create build/ol-externs.js 2014-08-04 20:37:43 +02:00
Andreas Hocevar
0b622ba5e7 Add JSDoc configuration to generate ol3 externs 2014-08-04 20:37:43 +02:00
Andreas Hocevar
8e6711835c Move plugins one level up so they can be used by other configurations 2014-08-04 20:37:43 +02:00
Andreas Hocevar
65346d716d Add GeoJSON tests for write transforms 2014-07-31 17:55:43 +02:00
Andreas Hocevar
c4fdbacc12 Make options complete in ol.format.Feature already 2014-07-31 17:55:43 +02:00
Andreas Hocevar
4825cba48a Implement ReadOptions and WriteOptions for ol.format.GML 2014-07-31 17:55:43 +02:00
Andreas Hocevar
da0988f5f4 Add ReadOptions and WriteOptions for XML formats 2014-07-31 17:54:41 +02:00
Andreas Hocevar
b8a834b437 Add transform tests for GeoJSON readFeatures 2014-07-31 17:54:41 +02:00
Andreas Hocevar
46bba1fa3c Get projection from data if dataProjection is not specified 2014-07-31 17:54:41 +02:00
Andreas Hocevar
ee5f85df9f Add transformGeometry function to avoid repeated code 2014-07-31 17:54:41 +02:00
Andreas Hocevar
68d572e062 Better descriptions of options 2014-07-31 17:54:41 +02:00
Andreas Hocevar
464eb3ccf5 Make projection retrieval consistent 2014-07-31 17:54:41 +02:00
Andreas Hocevar
4c4a335448 Implement write transforms for ol.format.GeoJSON 2014-07-31 17:54:41 +02:00
Andreas Hocevar
8aa799850d Add write transform capability to ol.format.JSONFeature 2014-07-31 17:51:25 +02:00
Andreas Hocevar
b0d95b326a Introduce WriteOptions for feature formats 2014-07-31 17:51:25 +02:00
Andreas Hocevar
3245b8c6af Update read* signatures in ol.format.JSONFeature to use options 2014-07-31 17:51:25 +02:00
Andreas Hocevar
0ea55b7f27 Use a ReadFeatures object instead of sourceProjection/targetProjection 2014-07-31 17:51:25 +02:00
Éric Lemoine
225791c969 Add target/sourceProjection to ol.format.GeoJSON#read* 2014-07-31 17:51:24 +02:00
Éric Lemoine
d13261a21a Add target/sourceProjection to ol.format.JSONFeature#read* 2014-07-31 17:51:24 +02:00
Éric Lemoine
534a178a49 Add target/sourceProjection to ol.format.Feature#read* 2014-07-31 17:51:24 +02:00
Antoine Abt
49299dfe44 Uncheck heavy layers by default 2014-07-25 17:04:00 +02:00
Antoine Abt
338f86f774 More data in example 2014-07-25 16:02:56 +02:00
Antoine Abt
cb03648704 Limit map size 2014-07-25 16:02:56 +02:00
Peter Robins
eb8dc15d8d Additional clarifications for tasks/readme 2014-07-21 16:12:34 +00:00
256 changed files with 4318 additions and 1722 deletions

View File

@@ -2,9 +2,9 @@
[![Travis CI Status](https://secure.travis-ci.org/openlayers/ol3.png)](http://travis-ci.org/#!/openlayers/ol3)
Welcome to [OpenLayers 3](http://ol3js.org/)!
Welcome to [OpenLayers 3](http://openlayers.org/)!
Check out the [hosted examples](http://ol3js.org/en/master/examples/), the [workshop](http://ol3js.org/ol3-workshop/) or poke around the evolving [API docs](http://ol3js.org/en/master/apidoc/).
Check out the [hosted examples](http://openlayers.org/en/master/examples/), the [workshop](http://openlayers.org/ol3-workshop/) or poke around the evolving [API docs](http://openlayers.org/en/master/apidoc/).
Please don't ask questions in the github issue tracker but use [the mailing list](https://groups.google.com/forum/#!forum/ol3-dev) instead.

View File

@@ -1,13 +1,13 @@
/**
* Loader to add ol.css, ol.js and the example-specific js file to the
* documents.
*
* This loader is used for the hosted examples. It is used in place of the
* development loader (examples/loader.js).
*
* The ol.js, ol-debug.js, and ol-deps.js scripts are built by OL3's
* build.py script. They are located in the ../build/ directory, relative to
* this script.
* The loader loads ol.js and the example's script in "production" mode; it
* loads Closure Library's base.js, ol-deps.js, the example's "goog.require"
* script, and the example's script in "development" mode.
*
* The ol.js and ol-deps.js scripts are built by OL3's build.py script.
* They are located in the ../build/ directory, relative to this script.
*
* The script must be named loader.js.
*

View File

@@ -101,6 +101,10 @@ SPEC = [path
for path in ifind('test/spec')
if path.endswith('.js')]
TASKS = [path
for path in ifind('tasks')
if path.endswith('.js')]
SRC = [path
for path in ifind('src/ol')
if path.endswith('.js')
@@ -123,14 +127,14 @@ def report_sizes(t):
virtual('default', 'build')
virtual('ci', 'lint', 'jshint', 'build', 'test',
virtual('ci', 'lint', 'build', 'test',
'build/examples/all.combined.js', 'check-examples', 'apidoc')
virtual('build', 'build/ol.css', 'build/ol.js', 'build/ol-debug.js')
virtual('check', 'lint', 'jshint', 'test')
virtual('check', 'lint', 'build/ol.js', 'test')
virtual('todo', 'fixme')
@@ -141,15 +145,15 @@ def build_ol_css(t):
t.output('%(CLEANCSS)s', 'css/ol.css')
@target('build/ol.js', SRC, SHADER_SRC, 'buildcfg/ol.json')
@target('build/ol.js', SRC, SHADER_SRC, 'config/ol.json')
def build_ol_new_js(t):
t.run('node', 'tasks/build.js', 'buildcfg/ol.json', 'build/ol.js')
t.run('node', 'tasks/build.js', 'config/ol.json', 'build/ol.js')
report_sizes(t)
@target('build/ol-debug.js', SRC, SHADER_SRC, 'buildcfg/ol-debug.json')
@target('build/ol-debug.js', SRC, SHADER_SRC, 'config/ol-debug.json')
def build_ol_debug_js(t):
t.run('node', 'tasks/build.js', 'buildcfg/ol-debug.json', 'build/ol-debug.js')
t.run('node', 'tasks/build.js', 'config/ol-debug.json', 'build/ol-debug.js')
report_sizes(t)
@@ -196,9 +200,9 @@ def examples_examples_list_js(t):
@target('build/examples/all.combined.js', 'build/examples/all.js',
SRC, SHADER_SRC, 'buildcfg/examples-all.json')
SRC, SHADER_SRC, 'config/examples-all.json')
def build_examples_all_combined_js(t):
t.run('node', 'tasks/build.js', 'buildcfg/examples-all.json',
t.run('node', 'tasks/build.js', 'config/examples-all.json',
'build/examples/all.combined.js')
report_sizes(t)
@@ -214,7 +218,7 @@ def examples_star_json(name, match):
# It would make more sense to use olx.js as an input file here. We use
# it as an externs file instead to prevent "Cannot read property '*' of
# undefined" error when running examples in "raw" or "whitespace" mode.
# Note that we use the proper way in buildcfg/examples-all.json, which
# Note that we use the proper way in config/examples-all.json, which
# is only used to check the examples code using the compiler.
content = json.dumps({
"exports": [],
@@ -307,7 +311,7 @@ def serve(t):
virtual('lint', 'build/lint-timestamp', 'build/check-requires-timestamp',
'build/check-whitespace-timestamp')
'build/check-whitespace-timestamp', 'jshint')
@target('build/lint-timestamp', SRC, EXAMPLES_SRC, SPEC, precious=True)
@@ -322,7 +326,7 @@ def build_lint_src_timestamp(t):
virtual('jshint', 'build/jshint-timestamp')
@target('build/jshint-timestamp', SRC, EXAMPLES_SRC, SPEC,
@target('build/jshint-timestamp', SRC, EXAMPLES_SRC, SPEC, TASKS,
precious=True)
def build_jshint_timestamp(t):
t.run(variables.JSHINT, '--verbose', t.newer(t.dependencies))
@@ -529,9 +533,10 @@ virtual('apidoc', 'build/jsdoc-%(BRANCH)s-timestamp' % vars(variables))
@target('build/jsdoc-%(BRANCH)s-timestamp' % vars(variables), 'host-resources',
SRC, SHADER_SRC, ifind('apidoc/template'))
SRC, SHADER_SRC, ifind('config/jsdoc/api/template'))
def jsdoc_BRANCH_timestamp(t):
t.run('%(JSDOC)s', 'apidoc/index.md', '-c', 'apidoc/conf.json',
t.run('%(JSDOC)s', 'config/jsdoc/api/index.md',
'-c', 'config/jsdoc/api/conf.json',
'-d', 'build/hosted/%(BRANCH)s/apidoc')
t.touch()

View File

@@ -1,59 +0,0 @@
/**
* @fileoverview Generates JSON output based on exportable symbols (those with
* an api tag) and boolean defines (with a define tag and a default value).
*/
var assert = require('assert');
var fs = require('fs');
var path = require('path');
/**
* Publish hook for the JSDoc template. Writes to JSON stdout.
* @param {function} data The root of the Taffy DB containing doclet records.
* @param {Object} opts Options.
*/
exports.publish = function(data, opts) {
var cwd = process.cwd();
// get all doclets with the "api" property or define (excluding enums,
// typedefs and events)
var docs = data(
[{define: {isObject: true}}, {api: {isString: true}}],
{isEnum: {'!is': true}},
{kind: {'!is': 'typedef'}},
{kind: {'!is': 'event'}}).get();
// get symbols data, filter out those that are members of private classes
var symbols = [];
var defines = [];
docs.filter(function(doc) {
var include = true;
var constructor = doc.memberof;
if (constructor && constructor.substr(-1) === '_') {
assert.strictEqual(doc.inherited, true,
'Unexpected export on private class: ' + doc.longname);
include = false;
}
return include;
}).forEach(function(doc) {
if (doc.define) {
defines.push({
name: doc.longname,
description: doc.description,
path: path.join(doc.meta.path, doc.meta.filename),
default: doc.define.default
});
} else {
symbols.push({
name: doc.longname,
kind: doc.kind,
description: doc.classdesc || doc.description,
path: path.join(doc.meta.path, doc.meta.filename)
});
}
});
process.stdout.write(
JSON.stringify({symbols: symbols, defines: defines}, null, 2));
};

View File

@@ -1,3 +0,0 @@
# Build configs
This directory includes configuration files (json) for the build scripts in tasks/.

View File

@@ -1,7 +1,7 @@
{
"opts": {
"recurse": true,
"template": "apidoc/template"
"template": "config/jsdoc/api/template"
},
"tags": {
"allowUnknownTags": true
@@ -17,12 +17,12 @@
},
"plugins": [
"node_modules/jsdoc/plugins/markdown",
"apidoc/plugins/inheritdoc",
"apidoc/plugins/interface",
"apidoc/plugins/typedefs",
"apidoc/plugins/events",
"apidoc/plugins/observable",
"apidoc/plugins/api"
"config/jsdoc/api/plugins/inheritdoc",
"config/jsdoc/api/plugins/interface",
"config/jsdoc/api/plugins/typedefs",
"config/jsdoc/api/plugins/events",
"config/jsdoc/api/plugins/observable",
"config/jsdoc/api/plugins/api"
],
"markdown": {
"parser": "gfm"

View File

@@ -34,6 +34,9 @@ exports.handlers = {
} else if (doclet.name.indexOf('set') === 0) {
observable.readonly = false;
}
if (doclet.stability) {
observable.stability = doclet.stability;
}
if (!cls.observables) {
cls.observables = [];
}

View File

@@ -28,6 +28,10 @@ exports.handlers = {
newDoclet: function(e) {
var doclet = e.doclet;
if (doclet.meta.filename == 'olx.js') {
// do nothing if not marked @api
if (!doclet.stability) {
return;
}
if (doclet.kind == 'typedef') {
lastOlxTypedef = doclet;
olxTypes[doclet.longname] = [];

View File

Before

Width:  |  Height:  |  Size: 61 KiB

After

Width:  |  Height:  |  Size: 61 KiB

View File

@@ -52,4 +52,13 @@ $(function () {
$(window).on('resize', _onResize);
_onResize();
// show/hide unstable items
var unstable = $('.unstable');
var stabilityToggle = $('#stability-toggle');
stabilityToggle.change(function() {
unstable.toggle(!this.checked);
return false;
});
unstable.toggle(!stabilityToggle[0].checked);
});

View File

@@ -183,6 +183,10 @@ li {
font-size: 0.8em;
padding: 2px 4px;
}
td.description span.stability {
float: left;
margin-right: 0.5em;
}
span.type-signature.static {
margin-right: 3px;
}
@@ -282,7 +286,6 @@ span.type-signature.static {
width: 110px;
}
.main table .type {
width: 60px;
color: #aaa;
font-size: 12px;
}
@@ -369,3 +372,12 @@ footer {
.main .readme table ul li {
margin-bottom: 0;
}
.unstable {
display: none;
}
#stability {
color: white;
position: absolute;
top: 1em;
right: 8em;
}

View File

@@ -18,8 +18,11 @@
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<a class="brand" href="/"><img src="../resources/logo.png"> OpenLayers 3</a>
<a class="brand" href="/"><img src="../resources/logo.png" width="40"> OpenLayers 3</a>
<a class="brand" href="index.html">API Documentation</a>
<label id="stability">
<input type="checkbox" id="stability-toggle" checked> Stable Only
</label>
</div>
</div>
</div>

View File

@@ -9,7 +9,7 @@ if (data.type && data.type.names) {
});
}
?>
<dt>
<dt class="<?js= (data.stability && data.stability !== 'stable') ? 'unstable' : '' ?>">
<div class="nameContainer">
<h4 class="name" id="<?js= id ?>">
<?js= data.attribs + (data.scope === 'static' ? longname : name) + typeSignature ?>
@@ -20,7 +20,7 @@ if (data.type && data.type.names) {
<p class="summary"><?js= summary ?></p>
<?js } ?>
</dt>
<dd>
<dd class="<?js= (data.stability && data.stability !== 'stable') ? 'unstable' : '' ?>">
<?js if (data.description) { ?>
<div class="description">
<?js= data.description ?>

View File

@@ -2,7 +2,7 @@
var data = obj;
var self = this;
?>
<dt>
<dt class="<?js= (data.stability && data.stability !== 'stable') ? 'unstable' : '' ?>">
<div class="nameContainer<?js if (data.inherited) { ?> inherited<?js } ?>">
<?js if (data.stability || kind !== 'class') { ?>
<h4 class="name" id="<?js= id ?>">
@@ -23,7 +23,7 @@ var self = this;
<p class="summary"><?js= summary ?></p>
<?js } ?>
</dt>
<dd>
<dd class="<?js= (data.stability && data.stability !== 'stable') ? 'unstable' : '' ?>">
<?js if (data.description) { ?>
<div class="description">
@@ -67,7 +67,7 @@ var self = this;
description = eventDoclet.description.replace(/<[^>]*>/g, '');
}
?>
<li>
<li class="<?js= (eventDoclet || data).stability !== 'stable' ? 'unstable' : '' ?>">
<code><?js= self.linkto(f, type) ?></code>
<?js if (eventClassName) {
var eventClass = self.find({longname: eventClassName})[0];

View File

@@ -39,7 +39,9 @@ var self = this;
<?js
item.typedefs.forEach(function (v) {
?>
<li data-name="<?js= v.longname ?>"><?js= self.linkto(v.longname, v.name) ?></li>
<li data-name="<?js= v.longname ?>" class="<?js= v.stability !== 'stable' ? 'unstable' : ''?>">
<?js= self.linkto(v.longname, v.name) ?>
</li>
<?js
});
}
@@ -54,36 +56,9 @@ var self = this;
item.methods.forEach(function (v) {
?>
<li data-name="<?js= v.longname ?>"><?js= self.linkto(v.longname, v.name) ?></li>
<?js
});
}
?>
</ul>
<ul class="fires itemMembers">
<?js
if (item.fires && item.fires.length) {
?>
<span class="subtitle">Fires</span>
<?js
item.fires.forEach(function (v) {
v = self.find({longname: v})[0] || {longname: v, name: v.split(/#?event:/)[1]};
?>
<li data-name="<?js= v.longname ?>"><?js= self.linkto(v.longname, v.name) ?></li>
<?js
});
}
?>
</ul>
<ul class="events itemMembers">
<?js
if (item.events.length) {
?>
<span class="subtitle">Events</span>
<?js
item.events.forEach(function (v) {
?>
<li data-name="<?js= v.longname ?>"><?js= self.linkto(v.longname, v.name) ?></li>
<li data-name="<?js= v.longname ?>" class="<?js= v.stability !== 'stable' ? 'unstable' : ''?>">
<?js= self.linkto(v.longname, v.name) ?>
</li>
<?js
});
}

View File

@@ -21,7 +21,7 @@
var setter = prop.readonly ? 'no' : 'yes';
?>
<tr>
<tr class="<?js= prop.stability !== 'stable' ? 'unstable' : '' ?>">
<td class="name"><code><?js= prop.name ?></code></td>
<td class="type">
<?js if (prop.type && prop.type.names) {?>

View File

@@ -71,7 +71,7 @@
if (!param) { return; }
?>
<tr>
<tr class="<?js= (param.stability && param.stability !== 'stable') ? 'unstable' : '' ?>">
<?js if (params.hasName) {?>
<td class="name"><code><?js= param.name.replace(/^opt_/, "") ?></code></td>
<?js } ?>
@@ -93,17 +93,8 @@
<?js } ?>
<td<?js= (param.subparams ? ' colspan=' + colspan : ' ') ?> class="description last">
<?js if (params.hasAttributes) {?>
<?js if (param.optional) { ?>
<span class="optional">optional</span>
<?js } ?>
<?js if (param.nullable) { ?>
<span class="nullable">nullable</span>
<?js } ?>
<?js if (param.variable) { ?>
<span class="repeatable">repeatable</span>
<?js } ?>
<?js if (param.stability) { ?>
<?js= self.partial('stability.tmpl', param) ?>
<?js } ?>
<?js= param.description ?><?js if (param.subparams) { ?>
<?js= self.partial('params.tmpl', param.subparams) ?>

View File

@@ -1,7 +1,7 @@
{
"opts": {
"recurse": true,
"template": "buildcfg/jsdoc/info"
"template": "config/jsdoc/info"
},
"tags": {
"allowUnknownTags": true
@@ -10,7 +10,8 @@
"includePattern": "\\.js$"
},
"plugins": [
"buildcfg/jsdoc/info/api-plugin",
"buildcfg/jsdoc/info/define-plugin"
"config/jsdoc/info/api-plugin",
"config/jsdoc/info/define-plugin",
"config/jsdoc/info/virtual-plugin"
]
}

View File

@@ -0,0 +1,192 @@
/**
* @fileoverview Generates JSON output based on exportable symbols (those with
* an api tag) and boolean defines (with a define tag and a default value).
*/
var assert = require('assert');
var fs = require('fs');
var path = require('path');
/**
* Publish hook for the JSDoc template. Writes to JSON stdout.
* @param {function} data The root of the Taffy DB containing doclet records.
* @param {Object} opts Options.
*/
exports.publish = function(data, opts) {
function getTypes(data) {
var types = [];
data.forEach(function(name) {
types.push(name.replace(/^function$/, 'Function'));
});
return types;
}
function replaceUnknownTypes(item) {
item.types.forEach(function(type, index) {
if (!(type in names)) {
item.types[index] = '*';
}
});
}
// get all doclets with the "api" property or define (excluding events) or
// with olx namespace
var classes = {};
var docs = data(
[
{define: {isObject: true}},
function() {
if (this.kind == 'class') {
if (!('extends' in this) || typeof this.api == 'string') {
classes[this.longname] = this;
return true;
}
}
return (typeof this.api == 'string' ||
this.meta && (/[\\\/]externs$/).test(this.meta.path));
}
],
{kind: {'!is': 'file'}},
{kind: {'!is': 'event'}}).get();
// get symbols data, filter out those that are members of private classes
var symbols = [];
var defines = [];
var typedefs = [];
var externs = [];
var base = [];
var augments = {};
var names = {};
docs.filter(function(doc) {
var include = true;
var constructor = doc.memberof;
if (constructor && constructor.substr(-1) === '_') {
assert.strictEqual(doc.inherited, true,
'Unexpected export on private class: ' + doc.longname);
include = false;
}
return include;
}).forEach(function(doc) {
var isExterns = (/[\\\/]externs$/).test(doc.meta.path);
if (isExterns && doc.longname.indexOf('olx.') === 0) {
if (doc.kind == 'typedef') {
typedefs.push({
name: doc.longname,
types: ['{}']
});
} else {
var typedef = typedefs[typedefs.length - 1];
var type = typedef.types[0];
typedef.types[0] = type
.replace(/\}$/, ', ' + doc.longname.split('#')[1] +
': (' + getTypes(doc.type.names).join('|') + ')}')
.replace('{, ', '{');
}
} else if (doc.define) {
defines.push({
name: doc.longname,
description: doc.description,
path: path.join(doc.meta.path, doc.meta.filename),
default: doc.define.default
});
} else if (doc.kind == 'typedef' || doc.isEnum === true) {
typedefs.push({
name: doc.longname,
types: getTypes(doc.type.names)
});
} else {
var types;
var symbol = {
name: doc.longname,
kind: doc.kind,
description: doc.classdesc || doc.description,
stability: doc.api,
path: path.join(doc.meta.path, doc.meta.filename)
};
if (doc.augments) {
symbol.extends = doc.augments[0];
}
if (doc.virtual) {
symbol.virtual = true;
}
if (doc.type) {
symbol.types = getTypes(doc.type.names);
}
if (doc.params) {
var params = [];
doc.params.forEach(function(param) {
var paramInfo = {
name: param.name
};
params.push(paramInfo);
paramInfo.types = getTypes(param.type.names);
if (typeof param.variable == 'boolean') {
paramInfo.variable = param.variable;
}
if (typeof param.optional == 'boolean') {
paramInfo.optional = param.optional;
}
if (typeof param.nullable == 'boolean') {
paramInfo.nullable = param.nullable;
}
});
symbol.params = params;
}
if (doc.returns) {
symbol.returns = {
types: getTypes(doc.returns[0].type.names)
};
if (typeof doc.returns[0].nullable == 'boolean') {
symbol.returns.nullable = doc.returns[0].nullable;
}
}
if (doc.tags) {
doc.tags.every(function(tag) {
if (tag.title == 'template') {
symbol.template = tag.value;
return false;
}
return true;
});
}
var target = isExterns ? externs : (doc.api ? symbols : base);
target.push(symbol);
names[symbol.name] = true;
if (doc.api && symbol.extends) {
while (symbol.extends in classes && !classes[symbol.extends].api &&
classes[symbol.extends].augments) {
symbol.extends = classes[symbol.extends].augments[0];
}
if (symbol.extends) {
augments[symbol.extends] = true;
}
}
}
});
base = base.filter(function(symbol) {
var pass = symbol.name in augments || symbol.virtual;
if (pass) {
if (symbol.params) {
symbol.params.forEach(replaceUnknownTypes);
}
if (symbol.returns) {
symbol.returns.forEach(replaceUnknownTypes);
}
}
return pass;
});
process.stdout.write(
JSON.stringify({
symbols: symbols,
defines: defines,
typedefs: typedefs,
externs: externs,
base: base
}, null, 2));
};

View File

@@ -0,0 +1,16 @@
/**
* Handle the interface and abstract annotations.
* @param {Object} dictionary The tag dictionary.
*/
exports.defineTags = function(dictionary) {
var classTag = dictionary.lookUp('class');
dictionary.defineTag('interface', {
mustHaveValue: false,
onTagged: function(doclet, tag) {
classTag.onTagged.apply(this, arguments);
doclet.virtual = true;
}
});
};

3
config/readme.md Normal file
View File

@@ -0,0 +1,3 @@
# Configuration Files
This directory includes configuration files for the build scripts in and documentation templates.

View File

@@ -191,6 +191,7 @@ button.ol-full-screen-true:after {
text-align: right;
bottom: .5em;
right: .5em;
max-width: calc(100% - 1.3em);
}
.ol-attribution ul {
@@ -200,6 +201,7 @@ button.ol-full-screen-true:after {
line-height: 1.375em;
color: #000;
text-shadow: 0 0 2px #fff;
max-width: calc(100% - 3.6em);
}
.ol-attribution li {
display: inline;

View File

@@ -13,14 +13,14 @@ Below you'll find a complete working example. Create a new file, copy in the co
<!doctype html>
<html lang="en">
<head>
<link rel="stylesheet" href="http://ol3js.org/en/{{ latest }}/css/ol.css" type="text/css">
<link rel="stylesheet" href="http://openlayers.org/en/{{ latest }}/css/ol.css" type="text/css">
<style>
.map {
height: 400px;
width: 100%;
}
</style>
<script src="http://ol3js.org/en/{{ latest }}/build/ol.js" type="text/javascript"></script>
<script src="http://openlayers.org/en/{{ latest }}/build/ol.js" type="text/javascript"></script>
<title>OpenLayers 3 example</title>
</head>
<body>
@@ -55,10 +55,10 @@ To include a map a web page you will need 3 things:
### Include OpenLayers
```xml
<script src="http://ol3js.org/en/{{ latest }}/build/ol.js" type="text/javascript"></script>
<script src="http://openlayers.org/en/{{ latest }}/build/ol.js" type="text/javascript"></script>
```
The first part is to include the JavaScript library. For the purpose of this tutorial, here we simply point to the ol3js.org website to get the whole library. In a production environment, we would build a custom version of the library including only the module needed for our application.
The first part is to include the JavaScript library. For the purpose of this tutorial, here we simply point to the openlayers.org website to get the whole library. In a production environment, we would build a custom version of the library including only the module needed for our application.
### `<div>` to contain the map

View File

@@ -1,17 +1,17 @@
goog.require('ol.BrowserFeature');
goog.require('ol.Map');
goog.require('ol.View');
goog.require('ol.control');
goog.require('ol.dom.Input');
goog.require('ol.has');
goog.require('ol.layer.Tile');
goog.require('ol.source.OSM');
function checkWebGL(evt) {
document.getElementById('no-webgl').style.display =
ol.BrowserFeature.HAS_WEBGL ? 'none' : '';
ol.has.WEBGL ? 'none' : '';
document.getElementById('has-webgl').style.display =
ol.BrowserFeature.HAS_WEBGL && !evt.glContext ? '' : 'none';
ol.has.WEBGL && !evt.glContext ? '' : 'none';
document.getElementById('webgl').style.display =
evt.glContext ? '' : 'none';
}

View File

@@ -1,6 +1,6 @@
goog.require('ol.BrowserFeature');
goog.require('ol.Map');
goog.require('ol.View');
goog.require('ol.has');
goog.require('ol.layer.Tile');
goog.require('ol.source.MapQuest');
@@ -14,7 +14,7 @@ function setResetContrastButtonHTML() {
resetContrast.innerHTML = 'Contrast (' + layer.getContrast().toFixed(3) + ')';
}
if (!ol.BrowserFeature.HAS_WEBGL) {
if (!ol.has.WEBGL) {
var info = document.getElementById('no-webgl');
/**
* display error message

View File

@@ -32,7 +32,7 @@
<div class="span4">
<h4 id="title">Drag-and-Drop example</h4>
<p id="shortdesc">Example of using the drag-and-drop interaction. Drag and drop GPX, GeoJSON, IGC, KML, or TopoJSON files on to the map.</p>
<p id="shortdesc">Example of using the drag-and-drop interaction. Drag and drop GPX, GeoJSON, IGC, KML, or TopoJSON files on to the map. There is no projection transform support, so this will only work with data in EPSG:4326 and EPSG:3857.</p>
<div id="docs">
<p>See the <a href="drag-and-drop.js" target="_blank">drag-and-drop.js source</a> to see how this is done.</p>
</div>

View File

@@ -9,7 +9,7 @@
<link rel="stylesheet" href="../resources/bootstrap/css/bootstrap.min.css" type="text/css">
<link rel="stylesheet" href="../resources/layout.css" type="text/css">
<link rel="stylesheet" href="../resources/bootstrap/css/bootstrap-responsive.min.css" type="text/css">
<title>Get feature info example</title>
<title>GetFeatureInfo example (image layer)</title>
</head>
<body>
@@ -32,10 +32,10 @@
<div class="row-fluid">
<div class="span4">
<h4 id="title">GetFeatureInfo example</h4>
<h4 id="title">GetFeatureInfo example (image layer)</h4>
<p id="shortdesc">This example shows how to trigger WMS GetFeatureInfo requests on click for a WMS image layer.</p>
<div id="docs">
<p>See the <a href="getfeatureinfo.js" target="_blank">getfeatureinfo.js source</a> to see how this is done.</p>
<p>See the <a href="getfeatureinfo-image.js" target="_blank">getfeatureinfo-image.js source</a> to see how this is done.</p>
</div>
<div id="tags">getfeatureinfo</div>
</div>
@@ -51,7 +51,7 @@
<script src="jquery.min.js" type="text/javascript"></script>
<script src="../resources/example-behaviour.js" type="text/javascript"></script>
<script src="loader.js?id=getfeatureinfo" type="text/javascript"></script>
<script src="loader.js?id=getfeatureinfo-image" type="text/javascript"></script>
</body>
</html>

View File

@@ -0,0 +1,38 @@
goog.require('ol.Map');
goog.require('ol.View');
goog.require('ol.layer.Image');
goog.require('ol.source.ImageWMS');
var wmsSource = new ol.source.ImageWMS({
url: 'http://demo.opengeo.org/geoserver/wms',
params: {'LAYERS': 'ne:ne'},
serverType: 'geoserver'
});
var wmsLayer = new ol.layer.Image({
source: wmsSource
});
var view = new ol.View({
center: [0, 0],
zoom: 1
});
var map = new ol.Map({
layers: [wmsLayer],
target: 'map',
view: view
});
map.on('singleclick', function(evt) {
document.getElementById('info').innerHTML = '';
var viewResolution = /** @type {number} */ (view.getResolution());
var url = wmsSource.getGetFeatureInfoUrl(
evt.coordinate, viewResolution, 'EPSG:3857',
{'INFO_FORMAT': 'text/html'});
if (url) {
document.getElementById('info').innerHTML =
'<iframe seamless src="' + url + '"></iframe>';
}
});

View File

@@ -0,0 +1,57 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<meta name="viewport" content="initial-scale=1.0, user-scalable=no, width=device-width">
<link rel="stylesheet" href="../css/ol.css" type="text/css">
<link rel="stylesheet" href="../css/ol.css" type="text/css">
<link rel="stylesheet" href="../resources/bootstrap/css/bootstrap.min.css" type="text/css">
<link rel="stylesheet" href="../resources/layout.css" type="text/css">
<link rel="stylesheet" href="../resources/bootstrap/css/bootstrap-responsive.min.css" type="text/css">
<title>WMS GetFeatureInfo example (tile layer)</title>
</head>
<body>
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<a class="brand" href="./"><img src="../resources/logo.png"> OpenLayers 3 Examples</a>
</div>
</div>
</div>
<div class="container-fluid">
<div class="row-fluid">
<div class="span12">
<div id="map" class="map"></div>
</div>
</div>
<div class="row-fluid">
<div class="span4">
<h4 id="title">WMS GetFeatureInfo example (tile layer)</h4>
<p id="shortdesc">This example shows how to trigger WMS GetFeatureInfo requests on click for a WMS tile layer.</p>
<div id="docs">
<p>See the <a href="getfeatureinfo-tile.js" target="_blank">getfeatureinfo-tile.js source</a> to see how this is done.</p>
</div>
<div id="tags">getfeatureinfo</div>
</div>
<div class="span4 offset4">
<div id="info" class="alert alert-success">
&nbsp;
</div>
</div>
</div>
</div>
<script src="jquery.min.js" type="text/javascript"></script>
<script src="../resources/example-behaviour.js" type="text/javascript"></script>
<script src="loader.js?id=getfeatureinfo-tile" type="text/javascript"></script>
</body>
</html>

View File

@@ -6,7 +6,8 @@ goog.require('ol.source.TileWMS');
var wmsSource = new ol.source.TileWMS({
url: 'http://demo.opengeo.org/geoserver/wms',
params: {'LAYERS': 'ne:ne'}
params: {'LAYERS': 'ne:ne'},
serverType: 'geoserver'
});
var wmsLayer = new ol.layer.Tile({
@@ -18,8 +19,6 @@ var view = new ol.View({
zoom: 1
});
var viewProjection = view.getProjection();
var map = new ol.Map({
layers: [wmsLayer],
target: 'map',
@@ -30,7 +29,7 @@ map.on('singleclick', function(evt) {
document.getElementById('info').innerHTML = '';
var viewResolution = /** @type {number} */ (view.getResolution());
var url = wmsSource.getGetFeatureInfoUrl(
evt.coordinate, viewResolution, viewProjection,
evt.coordinate, viewResolution, 'EPSG:3857',
{'INFO_FORMAT': 'text/html'});
if (url) {
document.getElementById('info').innerHTML =

View File

@@ -1,6 +1,6 @@
goog.require('ol.BrowserFeature');
goog.require('ol.Map');
goog.require('ol.View');
goog.require('ol.has');
goog.require('ol.layer.Tile');
goog.require('ol.proj');
goog.require('ol.source.BingMaps');
@@ -15,7 +15,7 @@ function setResetSaturationButtonHTML() {
layer.getSaturation().toFixed(2) + ')';
}
if (!ol.BrowserFeature.HAS_WEBGL) {
if (!ol.has.WEBGL) {
var info = document.getElementById('no-webgl');
/**
* display error message

View File

@@ -39,6 +39,7 @@ var styleFunction = function(feature, resolution) {
var vector = new ol.layer.Vector({
source: new ol.source.KML({
extractStyles: false,
projection: 'EPSG:3857',
url: 'data/kml/2012_Earthquakes_Mag5.kml'
}),

View File

@@ -1,11 +1,11 @@
goog.require('ol.BrowserFeature');
goog.require('ol.Map');
goog.require('ol.View');
goog.require('ol.control');
goog.require('ol.has');
goog.require('ol.layer.Tile');
goog.require('ol.source.OSM');
if (!ol.BrowserFeature.HAS_WEBGL) {
if (!ol.has.WEBGL) {
var info = document.getElementById('no-webgl');
/**
* display error message

View File

@@ -1,7 +1,7 @@
goog.require('ol.Map');
goog.require('ol.View');
goog.require('ol.layer.Image');
goog.require('ol.source.MapGuide');
goog.require('ol.source.ImageMapGuide');
var mdf = 'Library://Samples/Sheboygan/Maps/Sheboygan.MapDefinition';
var agentUrl =
@@ -16,7 +16,7 @@ var map = new ol.Map({
layers: [
new ol.layer.Image({
extent: bounds,
source: new ol.source.MapGuide({
source: new ol.source.ImageMapGuide({
projection: 'EPSG:4326',
url: agentUrl,
useOverlay: false,

View File

@@ -13,4 +13,4 @@ To enable this, examples have the following, not needed in application code:
* html files load `example-behaviour.js` and some js files define the Map renderer option as `exampleNS.getRendererFromQueryString()`; application code would not need these
* in addition, examples use Twitter Bootstrap and jQuery; this is of course not a requirement - you may use whichever presentation/helper libraries you wish
See [Quick Start tutorial](http://ol3js.org/en/master/doc/quickstart.html) for a simple example of how application code would use the library.
See [Quick Start tutorial](http://openlayers.org/en/master/doc/quickstart.html) for a simple example of how application code would use the library.

View File

@@ -27,7 +27,9 @@
<div id="map" class="map"></div>
<select id="units">
<option value="degrees">degrees</option>
<option value="imperial">imperial</option>
<option value="imperial">imperial inch</option>
<option value="us">us inch</option>
<option value="nautical">nautical mile</option>
<option value="metric">metric</option>
</select>
</div>

View File

@@ -1,6 +1,6 @@
goog.require('ol.BrowserFeature');
goog.require('ol.Map');
goog.require('ol.View');
goog.require('ol.has');
goog.require('ol.layer.Tile');
goog.require('ol.source.MapQuest');
@@ -19,7 +19,7 @@ var domMap = new ol.Map({
})
});
if (ol.BrowserFeature.HAS_WEBGL) {
if (ol.has.WEBGL) {
var webglMap = new ol.Map({
renderer: 'webgl',
target: 'webglMap'

View File

@@ -9,6 +9,12 @@
<link rel="stylesheet" href="../resources/layout.css" type="text/css">
<link rel="stylesheet" href="../resources/bootstrap/css/bootstrap-responsive.min.css" type="text/css">
<title>Tile vector example</title>
<style>
#map {
max-width: 600px;
margin: 0 auto;
}
</style>
</head>
<body>
@@ -36,6 +42,16 @@
<div id="docs">
<p>See the <a href="tile-vector.js" target="_blank">tile-vector.js source</a> to see how this is done.</p>
</div>
<div class="alert">
<strong>Warning</strong> Map is becoming unresponsive with too many layers.
</div>
<fieldset>
<legend>Layers</legend>
<label class="checkbox"><input type="checkbox" id="landuse"/> Landuse</label>
<label class="checkbox"><input type="checkbox" id="buildings"/> Buildings</label>
<label class="checkbox"><input type="checkbox" id="water" checked/> Water</label>
<label class="checkbox"><input type="checkbox" id="roads" checked/> Roads</label>
</fieldset>
<div id="tags">tile-vector, openstreetmap</div>
</div>

View File

@@ -11,9 +11,7 @@ goog.require('ol.tilegrid.XYZ');
var waterLayer = new ol.layer.Vector({
source: new ol.source.TileVector({
format: new ol.format.TopoJSON({
defaultProjection: 'EPSG:4326'
}),
format: new ol.format.TopoJSON(),
projection: 'EPSG:3857',
tileGrid: new ol.tilegrid.XYZ({
maxZoom: 19
@@ -31,9 +29,7 @@ var waterLayer = new ol.layer.Vector({
var roadStyleCache = {};
var roadLayer = new ol.layer.Vector({
source: new ol.source.TileVector({
format: new ol.format.TopoJSON({
defaultProjection: 'EPSG:4326'
}),
format: new ol.format.TopoJSON(),
projection: 'EPSG:3857',
tileGrid: new ol.tilegrid.XYZ({
maxZoom: 19
@@ -73,13 +69,101 @@ var roadLayer = new ol.layer.Vector({
}
});
var buildingStyle = [
new ol.style.Style({
fill: new ol.style.Fill({
color: '#666',
opacity: 0.4
}),
stroke: new ol.style.Stroke({
color: '#444',
width: 1
})
})
];
var buildingLayer = new ol.layer.Vector({
source: new ol.source.TileVector({
format: new ol.format.TopoJSON({
defaultProjection: 'EPSG:4326'
}),
projection: 'EPSG:3857',
tileGrid: new ol.tilegrid.XYZ({
maxZoom: 19
}),
url: 'http://{a-c}.tile.openstreetmap.us/' +
'vectiles-buildings/{z}/{x}/{y}.topojson'
}),
visible: false,
style: function(f, resolution) {
return (resolution < 10) ? buildingStyle : [];
}
});
var landuseStyleCache = {};
var landuseLayer = new ol.layer.Vector({
source: new ol.source.TileVector({
format: new ol.format.TopoJSON({
defaultProjection: 'EPSG:4326'
}),
projection: 'EPSG:3857',
tileGrid: new ol.tilegrid.XYZ({
maxZoom: 19
}),
url: 'http://{a-c}.tile.openstreetmap.us/' +
'vectiles-land-usages/{z}/{x}/{y}.topojson'
}),
visible: false,
style: function(feature, resolution) {
var kind = feature.get('kind');
var styleKey = kind;
var styleArray = landuseStyleCache[styleKey];
if (!styleArray) {
var color, width;
color = {
'parking': '#ddd',
'industrial': '#aaa',
'urban area': '#aaa',
'park': '#76C759',
'school': '#DA10E7',
'garden': '#76C759',
'pitch': '#D58F8D',
'scrub': '#3E7D28',
'residential': '#4C9ED9'
}[kind];
width = kind == 'highway' ? 1.5 : 1;
styleArray = [new ol.style.Style({
stroke: new ol.style.Stroke({
color: color,
width: width
}),
fill: new ol.style.Fill({
color: color,
opacity: 0.5
})
})];
landuseStyleCache[styleKey] = styleArray;
}
return styleArray;
}
});
var map = new ol.Map({
layers: [waterLayer, roadLayer],
layers: [landuseLayer, buildingLayer, waterLayer, roadLayer],
renderer: 'canvas',
target: document.getElementById('map'),
view: new ol.View({
center: ol.proj.transform([-74.0064, 40.7142], 'EPSG:4326', 'EPSG:3857'),
maxZoom: 19,
zoom: 14
zoom: 15
})
});
$('input[type=checkbox]').on('change', function() {
var layer = {
landuse: landuseLayer,
buildings: buildingLayer,
water: waterLayer,
roads: roadLayer
}[$(this).attr('id')];
layer.setVisible(!layer.getVisible());
});

View File

@@ -1,12 +1,12 @@
goog.require('ol.Feature');
goog.require('ol.Map');
goog.require('ol.Sphere');
goog.require('ol.View');
goog.require('ol.geom.Polygon');
goog.require('ol.layer.Tile');
goog.require('ol.layer.Vector');
goog.require('ol.source.TileWMS');
goog.require('ol.source.Vector');
goog.require('ol.sphere.WGS84');
var vectorSource = new ol.source.Vector();
@@ -33,11 +33,12 @@ var map = new ol.Map({
})
});
var wgs84Sphere = new ol.Sphere(6378137);
var radius = 800000;
for (var x = -180; x < 180; x += 30) {
for (var y = -90; y < 90; y += 30) {
var circle = ol.geom.Polygon.circular(ol.sphere.WGS84, [x, y], radius, 64);
var circle = ol.geom.Polygon.circular(wgs84Sphere, [x, y], radius, 64);
vectorSource.addFeature(new ol.Feature(circle));
}
}

View File

@@ -1,6 +1,6 @@
goog.require('ol.BrowserFeature');
goog.require('ol.Map');
goog.require('ol.View');
goog.require('ol.has');
goog.require('ol.layer.Tile');
goog.require('ol.source.WMTS');
goog.require('ol.tilegrid.WMTS');
@@ -20,7 +20,7 @@ var urls = [
// HiDPI support:
// * Use 'bmaphidpi' layer (pixel ratio 2) for device pixel ratio > 1
// * Use 'geolandbasemap' layer (pixel ratio 1) for device pixel ratio == 1
var hiDPI = ol.BrowserFeature.DEVICE_PIXEL_RATIO > 1;
var hiDPI = ol.has.DEVICE_PIXEL_RATIO > 1;
var source = new ol.source.WMTS({
projection: 'EPSG:3857',

View File

@@ -8,7 +8,8 @@ goog.require('ol.source.XYZ');
var attribution = new ol.Attribution({
html: 'Tiles rendered with <a href="http://www.maptiler.com/"> &copy; USGS'
html: 'Tiles &copy; USGS, rendered with ' +
'<a href="http://www.maptiler.com/">MapTiler</a>'
});
var mapMinZoom = 1;
@@ -22,11 +23,11 @@ var map = new ol.Map({
source: new ol.source.OSM()
}),
new ol.layer.Tile({
extent: ol.proj.transformExtent(mapExtent, 'EPSG:4326', 'EPSG:3857'),
source: new ol.source.XYZ({
attributions: [attribution],
url: 'http://tileserver.maptiler.com/grandcanyon@2x/{z}/{x}/{y}.png',
tilePixelRatio: 2, // THIS IS IMPORTANT
maxExtent: ol.proj.transformExtent(
mapExtent, 'EPSG:4326', 'EPSG:3857'),
minZoom: mapMinZoom,
maxZoom: mapMaxZoom
})

View File

@@ -52,6 +52,13 @@ GeoJSONCRS.prototype.properties;
var GeoJSONCRSCode = function() {};
/**
* @constructor
*/
var GeoJSONCRSName = function() {};
/**
* @type {string}
* TODO: remove this when http://jira.codehaus.org/browse/GEOS-5996 is fixed
@@ -60,13 +67,6 @@ var GeoJSONCRSCode = function() {};
GeoJSONCRSName.prototype.code;
/**
* @constructor
*/
var GeoJSONCRSName = function() {};
/**
* @type {string}
*/

File diff suppressed because it is too large Load Diff

View File

@@ -3,7 +3,8 @@
"version": "3.0.0-beta",
"description": "Mapping library",
"scripts": {
"postinstall": "node tasks/parse-examples.js",
"install": "node tasks/parse-examples.js",
"postinstall": "node ./node_modules/closure-util/install.js",
"start": "node tasks/serve.js",
"test": "node tasks/test.js"
},

View File

@@ -23,7 +23,7 @@ goog.require('ol.TileRange');
* @constructor
* @param {olx.AttributionOptions} options Attribution options.
* @struct
* @api
* @api stable
*/
ol.Attribution = function(options) {
@@ -45,6 +45,7 @@ ol.Attribution = function(options) {
/**
* @return {string} HTML.
* @api stable
*/
ol.Attribution.prototype.getHTML = function() {
return this.html_;

View File

@@ -5,7 +5,7 @@ goog.provide('ol.binary.IReader');
goog.require('goog.asserts');
goog.require('goog.userAgent');
goog.require('ol.BrowserFeature');
goog.require('ol.has');
@@ -29,7 +29,7 @@ ol.binary.Buffer = function(data) {
*/
ol.binary.Buffer.prototype.getReader = function() {
var data = this.data_;
if (ol.BrowserFeature.HAS_ARRAY_BUFFER) {
if (ol.has.ARRAY_BUFFER) {
var arrayBuffer;
if (data instanceof ArrayBuffer) {
arrayBuffer = data;

View File

@@ -1,3 +0,0 @@
/**
* @namespace ol.BrowserFeature
*/

View File

@@ -6,7 +6,6 @@ goog.require('goog.math');
/**
* @typedef {function((ol.Coordinate|undefined)): (ol.Coordinate|undefined)}
* @api
*/
ol.CenterConstraintType;

View File

@@ -33,6 +33,10 @@ ol.CollectionEventType = {
/**
* @classdesc
* Events emitted by {@link ol.Collection} instances are instances of this
* type.
*
* @constructor
* @extends {goog.events.Event}
* @implements {oli.CollectionEvent}
@@ -188,8 +192,9 @@ ol.Collection.prototype.insertAt = function(index, elem) {
/**
* Remove the last element of the collection.
* @return {T} Element.
* Remove the last element of the collection and return it.
* Return `undefined` if the collection is empty.
* @return {T|undefined} Element.
* @api stable
*/
ol.Collection.prototype.pop = function() {
@@ -229,9 +234,10 @@ ol.Collection.prototype.remove = function(elem) {
/**
* Remove the element at the provided index.
* Remove the element at the provided index and return it.
* Return `undefined` if the collection does not contain this index.
* @param {number} index Index.
* @return {T} Value.
* @return {T|undefined} Value.
* @api stable
*/
ol.Collection.prototype.removeAt = function(index) {

View File

@@ -110,7 +110,7 @@ ol.color.asArray = function(color) {
/**
* @param {ol.Color|string} color Color.
* @return {string} String.
* @return {string} Rgba string.
* @api
*/
ol.color.asString = function(color) {
@@ -242,7 +242,7 @@ ol.color.fromStringInternal_ = function(s) {
color = [r, g, b, 1];
return ol.color.normalize(color, color);
} else {
throw new Error(s + ' is not a valid color');
goog.asserts.fail(s + ' is not a valid color');
}
};

View File

@@ -1,3 +1,8 @@
/**
* Colors can be defined as a {@link ol.Color} array, or as strings in
* `rgb(r,g,b)` or `rgba(r,g,b,a)` format, or in hex `#rrggbb` or `#rgb` format.
* Color names, like 'red', 'blue' or 'green', may also be used with the
* Canvas renderer.
*
* @namespace ol.color
*/

View File

@@ -26,7 +26,7 @@ goog.require('ol.pointer.PointerEventHandler');
* @constructor
* @extends {ol.control.Control}
* @param {olx.control.AttributionOptions=} opt_options Attribution options.
* @api
* @api stable
*/
ol.control.Attribution = function(opt_options) {
@@ -362,7 +362,7 @@ ol.control.Attribution.prototype.handleToggle_ = function() {
/**
* @return {boolean} True if the widget is collapsible.
* @api
* @api stable
*/
ol.control.Attribution.prototype.getCollapsible = function() {
return this.collapsible_;
@@ -371,7 +371,7 @@ ol.control.Attribution.prototype.getCollapsible = function() {
/**
* @param {boolean} collapsible True if the widget is collapsible.
* @api
* @api stable
*/
ol.control.Attribution.prototype.setCollapsible = function(collapsible) {
if (this.collapsible_ === collapsible) {
@@ -387,7 +387,7 @@ ol.control.Attribution.prototype.setCollapsible = function(collapsible) {
/**
* @param {boolean} collapsed True if the widget is collapsed.
* @api
* @api stable
*/
ol.control.Attribution.prototype.setCollapsed = function(collapsed) {
if (!this.collapsible_ || this.collapsed_ === collapsed) {
@@ -399,7 +399,7 @@ ol.control.Attribution.prototype.setCollapsed = function(collapsed) {
/**
* @return {boolean} True if the widget is collapsed.
* @api
* @api stable
*/
ol.control.Attribution.prototype.getCollapsed = function() {
return this.collapsed_;

View File

@@ -82,7 +82,7 @@ ol.control.Control.prototype.disposeInternal = function() {
/**
* Get the map associated with this control.
* @return {ol.Map} Map.
* @api
* @api stable
*/
ol.control.Control.prototype.getMap = function() {
return this.map_;

View File

@@ -16,7 +16,7 @@ goog.require('ol.control.Zoom');
*
* @param {olx.control.DefaultsOptions=} opt_options Defaults options.
* @return {ol.Collection.<ol.control.Control>} Controls.
* @api
* @api stable
*/
ol.control.defaults = function(opt_options) {

Some files were not shown because too many files have changed in this diff Show More