Commit Graph

10132 Commits

Author SHA1 Message Date
Tim Schaub
36ea408ed2 Handle namespace provides
It looks like the convention in the Closure Library is to export either namespaces (starting with lowercase), constructors (starting with uppercase), or enums (all uppercase, one instance).  I don't see any places where the Closure Library exports a function that is not a constructor.

Following the same convention, when we export `ol.foo`, it means we are making available function properties of the `ol.foo` object that start with a lowercase letter.
2013-09-04 13:55:54 -06:00
Tim Schaub
fa1601f04f Export namespaces or constructors but not functions 2013-09-04 13:55:54 -06:00
Tim Schaub
8ca3f13bd2 Instead of providing animation functions, provide the namespace
This follows the convention in the Closure Library of providing either namespace objects (where the property starts with a lowercase letter), constructors (where the property starts with an uppercase letter), or enums (all uppercase properties, only one instance of this in the closure library).
2013-09-04 13:55:36 -06:00
Frédéric Junod
cd11ebbc8a Merge pull request #976 from fredj/focus_touchend
Reset the map focus on 'mouseout' and 'touchend'
2013-09-04 07:06:22 -07:00
Frederic Junod
ae314916cf Reset the map focus on 'mouseout' and 'touchend' 2013-09-04 13:21:06 +02:00
Éric Lemoine
69107621bf Merge pull request #975 from elemoine/set-target
Remove ol.Map#target_
2013-09-04 04:11:49 -07:00
Éric Lemoine
fe1f10e797 No need for ol.Map#target_ 2013-09-04 12:08:15 +02:00
Tom Payne
9c28d0c112 Merge pull request #971 from twpayne/set-target
Cleaner ol.Map#setTarget handling
2013-09-04 02:32:02 -07:00
Frédéric Junod
25b99d5997 Merge pull request #925 from fredj/ms_pointer_events
MSPointer events fixes
2013-09-03 22:34:14 -07:00
Tim Schaub
a34f5d110c Merge pull request #949 from tschaub/feature-exports
Limited feature exports.
2013-09-03 16:17:32 -07:00
Tim Schaub
bd4f2bf1cb Merge pull request #972 from tschaub/before-render
Rename addPreRenderFunction to beforeRender and remove the plural.
2013-09-03 16:16:48 -07:00
ahocevar
94942e636c Merge pull request #969 from ahocevar/master
WMS getFeatureInfoOptions ignored in minified build
2013-09-03 12:57:09 -07:00
ahocevar
3bce782943 Making sure that options are not renamed 2013-09-03 20:02:49 +02:00
Tim Schaub
8e2b065ece Exporting set and setGeometry
Since the set method is exported on ol.Object, we need to export the method on the feature prototype to get correct behavior.
2013-09-03 11:54:58 -06:00
Tim Schaub
dc76b81780 Rename addPreRenderFunction to beforeRender and remove the plural 2013-09-03 10:57:31 -06:00
Tom Payne
aafd7e91cc Update teleport example to use string target 2013-09-03 15:26:19 +02:00
Tom Payne
83a9724270 Update ol.control.FullScreen to handle string targets 2013-09-03 15:26:19 +02:00
Tom Payne
53223be376 Perform ol.Map#setTarget string-to-Element conversion in event handler
With this change, ol.Map#setTarget no longer changes the type of the
value passed to it.
2013-09-03 15:26:19 +02:00
Éric Lemoine
e83e0e1374 Merge pull request #970 from pagameba/doc-GeolocationPositionOptions
Link to HTML5 Geolocation PositionOptions docs
2013-09-03 06:05:35 -07:00
Paul Spencer
fa48fc1905 Link to HTML5 Geolocation PositionOptions docs 2013-09-03 07:54:20 -04:00
Frederic Junod
f994c4f8a1 Only dispatch touchmove events after a touchstart 2013-09-03 09:35:30 +02:00
Frederic Junod
77f6b4ff59 Only consider touch events to compute ol.interaction.Touch.targetTouches 2013-09-03 09:35:30 +02:00
Frederic Junod
2b5e0c2c31 Change touchmove and touchstart listened element to 'document'
As for the mouse events, this allows to drag, zoom or rotate the map
with pointer(s) who moved outside of the viewport.
2013-09-03 09:35:30 +02:00
Tim Schaub
85509e1a40 Merge pull request #957 from tschaub/use-coordinate
Use ol.Coordinate instead of ol.geom.Vertex.
2013-09-02 15:53:29 -07:00
Éric Lemoine
e826e83530 Merge pull request #940 from elemoine/getarray
Export ol.Collection#getArray
2013-09-02 09:24:22 -07:00
Éric Lemoine
d68f411e82 Add doc for ol.Collection#getArray 2013-09-02 18:24:07 +02:00
Frédéric Junod
4483725185 Merge pull request #933 from fredj/focus
Move focus_ position update into handleMapBrowserEvent
2013-09-02 08:16:55 -07:00
Éric Lemoine
6a66e749f6 Merge pull request #953 from elemoine/overlay
Make ol.Overlay consistent with ol.control.Control
2013-09-02 07:03:11 -07:00
ahocevar
39b4da5ca2 Merge pull request #945 from ahocevar/select-followup
Follow-up improvements for #897
2013-09-02 06:47:01 -07:00
Éric Lemoine
09d9f28fe1 Merge pull request #963 from elemoine/getcontrols
Export ol.Map.prototype.getControls
2013-09-02 05:55:51 -07:00
Frédéric Junod
7b3a95288e Merge pull request #966 from fredj/geolocation_example
Reduce the width of the div to better see the error messages
2013-09-02 05:53:20 -07:00
Tim Schaub
12839f6f50 Merge pull request #946 from tschaub/control-options
Remove map from ControlOptions.
2013-09-02 05:40:45 -07:00
Frederic Junod
19f8ba75bc Reduce the width of the div to better see the error messages 2013-09-02 14:40:34 +02:00
Éric Lemoine
52c58721e1 export ol.Map.prototype.getControls 2013-09-02 14:17:23 +02:00
Éric Lemoine
7e25ecb3dc Remove map from OverlayOptions 2013-09-02 14:15:11 +02:00
Éric Lemoine
dd4b2e3e88 Add overlay-related methods to ol.Map 2013-09-02 14:12:54 +02:00
Éric Lemoine
3885815c1d Merge pull request #959 from probins/controlexamples
Out-of-date examples in control api docs
2013-09-02 05:10:47 -07:00
Peter Robins
6b61e9d84b Remove examples from control api docs
[ci skip]
2013-09-02 07:44:08 -04:00
Éric Lemoine
1c72a4d078 Merge pull request #947 from elemoine/attribution
Make ol.Attribution take an options object
2013-09-02 03:10:41 -07:00
Éric Lemoine
7af4cbb75e Export ol.Collection#getArray 2013-09-02 11:25:52 +02:00
Frédéric Junod
fdc70f3c30 Merge pull request #962 from fredj/lint
Reorder goog.require
2013-09-02 02:17:55 -07:00
Frederic Junod
34f6ba4ee8 Reorder goog.require 2013-09-02 11:01:31 +02:00
Éric Lemoine
e2a1c13439 Merge pull request #960 from elemoine/handlemappostrender
Remove handleMapPostrender extension point
2013-09-01 14:15:19 -07:00
Tim Schaub
109ef38d69 Exporting setMap so it is documented for custom controls 2013-08-31 16:40:46 -06:00
Éric Lemoine
96ef1ed3bd Remove handleMapPostrender extension point 2013-08-31 23:25:08 +02:00
Tim Schaub
8844310bf4 Call setMap instead of passing map to control 2013-08-31 14:45:03 -06:00
Tim Schaub
3e1de0b1ad Call addControl instead of passing map to control 2013-08-31 14:44:29 -06:00
Tim Schaub
6d9d5ecb4b Update ZoomSlider example in docs 2013-08-31 07:29:44 -06:00
Tim Schaub
96dfe5656d Merge pull request #950 from pagameba/doc-animations
Improve documentation for animation-related stuff.
2013-08-30 14:49:07 -07:00
Tim Schaub
b17feb4580 Add extra requires (see #958) 2013-08-30 15:20:21 -06:00