Commit Graph

5787 Commits

Author SHA1 Message Date
Frederic Junod c15987a14d Add constrainCenter documentation 2014-05-26 13:44:01 +02:00
Frederic Junod 824302349d Export ol.View2D.prototype.constrainCenter function 2014-05-26 13:37:33 +02:00
Éric Lemoine 8cd5f6d642 Merge pull request #2109 from elemoine/visibleandinrange
Hit detection respects min and maxResolution
2014-05-25 14:43:44 +02:00
Éric Lemoine fd8a46dcae Hit detection respects min and maxResolution 2014-05-25 14:35:07 +02:00
Tim Schaub a2b81d6bd0 Disallow adding the same feature twice 2014-05-23 16:52:11 -06:00
Tim Schaub 652f11cefa Provide a method for retrieving features by id 2014-05-23 16:35:07 -06:00
Tim Schaub 34cabd1579 Dispatch change on feature id change 2014-05-23 16:35:06 -06:00
Tim Schaub 097909516a Account for null or undefined geometry
The change in #2098 made it so a feature's geometry could be undefined.  This is consistent with the return type for the getGeometry method.  Where calling code needs to ensure that it has a geometry instance, it can use instanceof, goog.isDefAndNotNull(), or test for a truthy value.
2014-05-23 10:00:15 -06:00
Andreas Hocevar f903849882 Remove all docstrings from oli.js
Instead, make sure that the properties are documented in the
implementing class.
2014-05-22 18:00:10 +02:00
Andreas Hocevar 547334e211 Move oli.* stability notes to the corresponding ol.* symbol 2014-05-22 16:01:35 +02:00
Andreas Hocevar eb6a938062 Do not document object literals as interfaces
Instead, object literals with properties that should not be
renamed can go in externs/olx.js.
2014-05-22 15:48:47 +02:00
Bart van den Eijnden 28d122e21e Write out valid WFS Transaction XML and ability to specify srsName 2014-05-21 17:58:53 +02:00
Tim Schaub 98193c0336 Merge pull request #2098 from tschaub/empty-feature
Do not set geometry by default.
2014-05-21 09:52:09 -06:00
Frédéric Junod 9e7bfda9f7 Merge pull request #2096 from fredj/unused-require
Remove unused goog.require
2014-05-21 17:36:29 +02:00
Tim Schaub 9341e98374 Merge pull request #2093 from bjornharrtell/fix_opt_dest2
Assign to provided array instead of pushing when getting a linestring midpoint.
2014-05-21 09:28:06 -06:00
Tim Schaub a4d31147bc Do not set geometry by default
A feature can have a geometry whose value is an ol.geom.Geometry instance or null.  A feature can also have no geometry property.  By default, a feature has no geometry property.  To set a geometry, one can be passed to the constructor (including null) or passed to setGeometry().
2014-05-21 09:16:54 -06:00
Bart van den Eijnden 8eef633abc Ability to specify geometryName on ol.format.GeoJSON 2014-05-21 16:44:18 +02:00
Frederic Junod 2f918ea2a4 Remove unused goog.require 2014-05-21 16:06:32 +02:00
Björn Harrtell ce40a142fa opt_dest should be assigned to not pushed 2014-05-21 12:02:26 +02:00
Frederic Junod b2ab73e78b Remove unused goog.require 2014-05-21 09:46:49 +02:00
Frederic Junod 8239a5c92a Document ol.coordinate functions 2014-05-20 14:15:28 +02:00
Frederic Junod ae7291d9f1 Add the jsdoc ol.coordinate namespace 2014-05-20 13:58:17 +02:00
Éric Lemoine 9b7735bf92 Add missing @param annotation 2014-05-19 15:43:38 +02:00
Tim Schaub e17c8c79f9 Merge pull request #2079 from tschaub/view-options
Support zoom and resolution constrained views.
2014-05-16 11:26:09 -06:00
Tim Schaub 3793f33acf Handle minZoom in getZoom and setZoom 2014-05-16 04:56:42 -06:00
Tim Schaub 815f5b38c8 Accept resolution or zoom related options for constrained views
Any of minResolution, maxResolution, minZoom, or maxZoom can be used to constrain the view resolutions.  Resolution options are given precedence over zoom options.
2014-05-15 17:31:55 -06:00
Andreas Hocevar c70497856c Merge pull request #2075 from ahocevar/api-docs-improved
More API doc improvements
2014-05-15 22:35:53 +02:00
Andreas Hocevar d163f60e34 Make sure that opt_layout is listed as optional 2014-05-15 20:29:16 +02:00
Andreas Hocevar b2805c58de Better document which events are fired
The map does not fire ol.render.Event#render. Change events are
now only listed for classes that fire them, and a description
about when they are fired is added.
2014-05-15 20:28:09 +02:00
Andreas Hocevar 0d10314d4f Make sure that ol.source.wms.ServerType is documented 2014-05-15 17:06:19 +02:00
Andreas Hocevar 97bae045db Fix documentation typos 2014-05-15 17:05:40 +02:00
Andreas Hocevar 754ef24b0c List default controls and interactions 2014-05-15 17:04:58 +02:00
Bart van den Eijnden 83ce0b2c7f Restore map interaction on touch devices 2014-05-15 15:29:41 +02:00
Frederic Junod b42f4e1b0c Change ol.ENABLE_NAMED_COLORS to be false by default 2014-05-15 08:59:47 +02:00
Tim Schaub 3a0efe83c5 Update map example 2014-05-14 15:11:12 -06:00
Tim Schaub df05e9da11 Fire moveend only once after view settles 2014-05-14 14:23:31 -06:00
Tim Schaub ab9d42f2cd Merge pull request #2067 from tschaub/touches
Do less work while processing touch events.
2014-05-14 01:05:22 -06:00
Bart van den Eijnden 28f21e44c1 Merge pull request #2059 from bartvde/draw-geometryname
Add geometryName option to ol.interaction.Draw (r=@elemoine)
2014-05-14 08:51:59 +02:00
Bart van den Eijnden 945f5008f5 Ability to specify geometryName on ol.interaction.Draw 2014-05-14 08:35:27 +02:00
Tim Schaub b860ec7a06 Do less work while processing touch events 2014-05-13 23:06:27 -06:00
Tim Schaub 57a6fbf416 Call resetClickCountHandler_ with proper this argument 2014-05-13 17:41:58 -06:00
Bart van den Eijnden 0a3031a165 Ability to specify gmlOptions (e.g. srsName) in WFS transactions 2014-05-13 13:10:18 +02:00
Bart van den Eijnden 4780d17059 Export readFeatures on FormatVectorSource 2014-05-12 10:37:41 +02:00
Éric Lemoine 6758e0905b Fix icon rendering on hidpi devices 2014-05-09 08:44:23 +02:00
Frederic Junod e1436b25e0 Export ol.BrowserFeature.HAS_WEBGL 2014-05-08 08:57:29 +02:00
Éric Lemoine a189c4a68a Merge pull request #2047 from elemoine/snaptopixel
Set snapToPixel to true by default
2014-05-07 23:02:09 +02:00
Andreas Hocevar be73885e37 Merge pull request #2043 from ahocevar/nicer-api-docs
Nicer API docs
2014-05-07 09:20:22 -05:00
Éric Lemoine 511e3f7810 Avoid defining default values at multiple locations 2014-05-07 09:58:56 +02:00
Éric Lemoine 6cd403945a Set snapToPixel defaut value to true 2014-05-07 09:58:56 +02:00
Andreas Hocevar e6dbb61d68 Document raw geometry types 2014-05-06 12:45:53 -05:00