Tim Schaub
efdba65e0a
Merge pull request #883 from tschaub/nicer-defaults
...
Setting `transitionEffect: "resize"` by default for `OpenLayers.Layer.Grid`. Setting `enableKinetic: true` for `OpenLayers.Control.DragPan`.
2013-02-15 13:34:48 -08:00
Tim Schaub
891cd35f60
Kinetic dragging by default
2013-02-14 15:17:55 -07:00
Tim Schaub
399c8ff643
Correct calculation of anchor for zooming
...
Quick explanation:
Let targetCenterPx be described by PX and PY. Let oldRes and newRes be R0 and R1 respectively. Let centerPx (center after zoom) be described by CX and CY. And assume there is some anchored pixel point out there that represents the same map location before and after zoom. Let this be the origin OX and OY.
We want to recenter the map on the provided box. This means the map distance between the origin and box center at R0 is the same as the map distance between the origin and the map center at R1.
That is,
R0 * (OX - PX) = R1 * (OX - CX), and
R1 * (OY - PY) = R1 * (OY - CY)
Or, solving for OX and OY:
OX = (R0 * PX - R1 * CX) / (R0 - R1), and
OY = (R0 * PY - R1 * CY) / (R0 - R1)
2013-02-14 14:38:35 -07:00
Tim Schaub
1ac16835f2
If we are getting flipped top/bottom, let's correct it at the source
2013-02-14 14:27:00 -07:00
Marc Jansen
4d7eaf4939
Merge pull request #866 from marcjansen/866
...
LayerSwitcher generate bad ID when layername has spaces in it. (r=@ahocevar)
2013-02-14 07:01:32 -08:00
ahocevar
4b163e0482
Merge pull request #800 from ahocevar/transform
...
Use GPU where available; animated zooming. r=@elemoine
2013-02-14 01:15:18 -08:00
ahocevar
18b0c5fc7d
Merge pull request #812 from ahocevar/mousewheel
...
Better mousewheel/touchpad behavior for zooming. r=@elemoine
2013-02-14 01:13:56 -08:00
Marc Jansen
73c5dbd8dc
Only valid characters in generated ids.
2013-02-14 07:14:13 +01:00
Marc Jansen
661df3593d
Merge pull request #873 from marcjansen/dangling-license-space
...
Remove dangling space in license header.
2013-02-07 06:44:49 -08:00
Marc Jansen
2a5e113126
Merge pull request #872 from marcjansen/wmsgfi-api
...
WMSGetFeatureInfo API enhancements
2013-02-07 02:16:39 -08:00
Marc Jansen
39a5aed5a6
Remove trailing whitespace.
2013-02-07 10:42:18 +01:00
Marc Jansen
a34e627b75
Remove dangling space in license header.
2013-02-07 10:33:20 +01:00
Marc Jansen
c5dbaf7cab
Remove end-of-line whitespace.
...
The license header is left untouched, to keep it the same in all files.
A seperate commit will probably deal with this
2013-02-07 10:23:16 +01:00
Marc Jansen
70ea8f6588
Readd dangling space in header.
...
This allows for easier search and replace operations. The space will
eventually be removed in all files in a seperate commit.
2013-02-07 10:17:06 +01:00
Marc Jansen
a8d7d246e5
Reformat documentation to match surrounding doc.
2013-02-07 10:12:14 +01:00
Marc Jansen
14a3afb6cf
Promote several properties to public API.
...
The properties
* layers
* queryVisible
* url
* layerUrls
* infoFormat
* vendorParams
* format
* formatOptions
should all be visible in the public API since they are essentially very
convenient to use when customizing the control.
2013-02-07 10:06:19 +01:00
Marc Jansen
9f7a0ed448
Remove end-of-line whitespace.
2013-02-07 09:52:26 +01:00
Marc Jansen
cbc705bdf7
Adjust method documentation.
2013-02-07 09:52:26 +01:00
Marc Jansen
23355abb42
Make 'geodesic' & 'displaySystem' API properties.
...
The geodesic-property is used inside of our examples, yet isn't officially
part of the public API.
The displaySystem-property provides a very useful way of configuring the
output of the measurements and should be promoted as well.
2013-02-07 09:52:12 +01:00
ahocevar
9b7e35d1dd
Merge branch 'master' of github.com:openlayers/openlayers into transform
...
Conflicts:
theme/default/style.css
2013-01-09 14:31:52 +01:00
Tim Schaub
bbc73a21d8
Update copyright date
2013-01-07 22:01:16 -05:00
Peter Robins
e8421fa923
Overview map should use map.getMaxExtent
2013-01-06 11:41:21 +00:00
ahocevar
4b2e80fa36
Merge pull request #805 from mosesonline/unselectAllFix
...
unselectAll on removing layer fix
2012-12-24 06:17:04 -08:00
ahocevar
21448d2fd5
Adding animated zooming
2012-12-23 18:47:03 +01:00
ahocevar
c03f1dc9bf
Own applyTransform method is no longer needed
2012-12-23 18:34:53 +01:00
ahocevar
44f28f8791
Use translate3d and translate where available.
2012-12-23 18:32:26 +01:00
ahocevar
1081fc4b54
Better mousewheel/touchpad behavior for zooming
...
The navigation control gets better defaults, and the MouseWheel handler
gets a new maxDelta option, which can be used to avoid huge zoom level
jumps on heavy wheel/pad movements.
2012-12-23 18:01:17 +01:00
mosesonline
ef028b1e91
Update lib/OpenLayers/Control/SelectFeature.js
...
indentation fixed and added comment to explain null case
2012-12-20 08:55:21 +01:00
mosesonline
0cdb3aeb52
[BugFix] Fix selectFeatures is null exception when layer is destroyed. Since you can listen only to preremovelayer to handle removing layer with SelectFeature. But preremovelayer is triggered after selectFeatures is set to null.
2012-12-18 09:34:48 +01:00
Pierre GIRAUD
d0c85850f5
More detailed documentation
2012-12-17 13:43:16 +01:00
Pierre GIRAUD
0a131f380a
Adding preserveCenter config option
2012-12-17 11:56:18 +01:00
Stéphane Brunner
788d49a3bb
Merge pull request #666 from sbrunner/Prevent.KeyboardDefaults-ie
...
Prevent KeyboardDefaults.js from triggering keyboard events when user is...
2012-10-17 03:01:58 -07:00
ahocevar
e5feda7ad7
Camel casing method name
2012-10-12 15:03:38 +02:00
ahocevar
6607bcc0bb
Do not cache data from aborted tile loads
...
This also results in a simplified cache method that can more easily be
overridden for use with other storage providers.
2012-10-12 14:06:08 +02:00
Stéphane Brunner
f1e7425821
use OpenLayers.Event.element
2012-10-10 11:28:18 +02:00
Stéphane Brunner
2e44aff5f0
Prevent KeyboardDefaults.js from triggering keyboard events when user is typing into the form elements for IE
2012-10-10 11:28:18 +02:00
Marc Jansen
1348f97546
Replace tabs with spaces where appropriate.
2012-09-11 21:51:18 +02:00
Marc Jansen
1063a4cd19
Make it possible to change the filter in handlers
...
Trigger the 'select'-event earlier, this way any handlers for the event can
change both the filter and the resulting SLD inside the callback.
2012-09-06 13:29:59 +02:00
Marc Jansen
97b75578ba
Update lib/OpenLayers/Control/SLDSelect.js
...
Correct API docs. Non-functional change.
2012-09-06 10:40:13 +03:00
Marc Jansen
a4bc3f33e6
Fix API-docs spelling error.
...
This fixes #654 . Thanks to @dandv for catching this.
2012-08-30 00:40:43 +03:00
fastr
e8716847f8
Adding DocumentDrag to ModifyFeature
2012-08-25 23:37:39 +02:00
fastr
053dba59a1
Inserted documentDrag in ModifyFeature so that you can drag vertices over the viewport of the map in analogy to the DragFeature-Control. documentDrag is internaly passed to the DragFreature that's used by ModifyFeature.
2012-08-25 23:30:27 +02:00
ahocevar
f0ad48597f
No more percentage based positioning.
...
Client zoom now supports both over- and undersampling.
2012-08-21 13:57:11 +02:00
Marc Jansen
470dde0e38
Documentation enhancements. No functional change.
2012-08-17 23:41:19 +02:00
Marc Jansen
df19317c95
Merge branch 'master' of https://github.com/openlayers/openlayers
...
Conflicts:
tests/list-tests.html
2012-08-17 22:46:06 +02:00
tschaub
5cf260f38a
Add missing requires ( closes #633 ).
2012-08-14 11:01:58 -06:00
Stéphane Brunner
584749b524
Merge pull request #601 from temporaryaccount/temporaryopenlayers
...
Prevent KeyboardDefaults.js from triggering keyboard events when user is...
2012-07-20 04:37:25 -07:00
ahocevar
7249510553
Using the safe unicode representation of the minus sign.
...
No functional change; see #588 .
2012-07-20 09:41:42 +02:00
temporaryaccount
950904f59a
Prevent KeyboardDefaults.js from triggering keyboard events when user is typing into the form elements
2012-07-19 18:08:30 +04:00
Pierre GIRAUD
99553d0ae5
Fixing doc. No functional change.
2012-07-17 16:15:03 +03:00