Commit Graph

826 Commits

Author SHA1 Message Date
ahocevar
b103d3b428 We don't want to re-select an already selected feature 2013-05-24 12:07:35 +02:00
ahocevar
8562582dd2 Avoiding duplicate events 2013-05-24 12:07:22 +02:00
iacovlev-pavel
7c5afe1acf Add OpenLayers/Control.js to "requires"
Fix issue #969
2013-05-13 13:01:21 +02:00
ahocevar
9d6ce21109 Raise layer that's being modified 2013-04-27 21:46:22 +02:00
Frederic Junod
5ed18a9708 Remove deprecated roundedCorner option from LayerSwitcher control. 2013-04-25 10:26:58 +02:00
Tobias Bieniek
ae8a04c601 LayerSwitcher: Simplified checkRedraw() method 2013-04-17 00:00:36 +02:00
ahocevar
e5dc583d52 Also trigger beforefeaturemodified event in non-standalone mode
d2a32d5 accidently changed the number of assertions in the
test_selectFeature function, so the change in behavior that no
beforefeaturemodified event is called any more in non-standalone mode got
unnoticed: Before unhacking ModifyFeature, the SelectFeature control
called the beforeSelectFeature method directly. Now, without a built-in
SelectFeature control, we need to call it from the selectFeature method in
both standalone and non-standalone mode.
2013-04-09 23:16:30 +02:00
Marc Jansen
aaabdbc803 Merge pull request #461 from tschaub/ie9-leaks
OpenLayers-2.12-rc2 + jQuery-1.7.2 Memory leak in Internet Explorer 9 (p=@tschaub,r=@marcjansen,@elemoine)
2013-04-03 02:43:48 -07:00
ahocevar
6fca6aef60 Addressing @bartvde's review comments 2013-03-20 10:23:00 +01:00
ahocevar
d2a32d5421 Simplifying and unhacking the ModifyFeature control
With two nested controls (DragFeature, SelectFeature), which - among
others - activated two OpenLayers.Handler.Feature instances, the
ModifyFeature control was fragile and hard to debug.

The issue that @iwillig, @bartvde and myself tried to track down was
that the two Feature handlers interfered with each other, making it hard
to select features on mobile devices, and causing points to jump during
dragging because of not updated last pixel positions.

With this refactoring, there are no more nested controls. All that's left
is a Drag handler. All tests pass. I had to remove one test that checked
for dragging of an unselected point while another was selected, because
now (and partially even before this change, thanks to the ugly drag
handler hack that is now removed) dragging a point will also select it,
saving the user an extra click.
2013-03-19 23:00:10 +01:00
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
Tim Schaub
84e36dd573 Avoid touching the geolocation object until needed
IE9 leaks when `navigator.geolocation` is accessed (see #461).  The goal of this change is to avoid that leak in builds that include the Geolocate control but do not use it.
2013-02-04 15:46:45 -07: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