Tobias Bieniek
6b79391b5e
Geometry: Added "along" to the API documentation
2013-03-25 19:10:50 +01:00
Tobias Bieniek
29976ba98a
Geometry: Added distanceSquaredToSegment() function
2013-03-23 16:56:32 +01:00
Tobias Bieniek
04d3c6ce53
Geometry: Added along attribute to distanceToSegment() function
2013-03-23 16:49:30 +01:00
ahocevar
9a06ec47f6
Merge pull request #914 from Turbo87/encoded-polyline
...
EncodedPolyline: Backported ol3 polyline parser library
2013-03-22 06:12:52 -07:00
Tobias Bieniek
17e972de3d
EncodedPolyline: Backported ol3 polyline parser library
...
The ol3 version of the library is more advanced and complete. It can also
parse into flat array. It can handle unsigned integers, signed integers
and floats.
2013-03-20 20:56:47 +01:00
ahocevar
410a88c674
Thicker strokes make it easier to select line segments
2013-03-20 10:30:05 +01:00
ahocevar
b0bc72fa7f
Merge pull request #913 from ahocevar/modify-feature
...
Simplifying and unhacking the ModifyFeature control. r=@bartvde
2013-03-20 02:23:42 -07:00
ahocevar
6fca6aef60
Addressing @bartvde's review comments
2013-03-20 10:23:00 +01:00
Pierre GIRAUD
15800c01ad
Merge pull request #730 from pgiraud/wmts
...
don't try to update the matrix in setMap since it's too early and done l...
2013-03-20 00:48:41 -07:00
ahocevar
bed011514f
Increasing point radius for easier touch selection
2013-03-20 05:12:35 +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
ahocevar
7002ec49e7
Merge pull request #903 from ahocevar/903
...
Google Maps and WMS layer Backbuffer error. r=@mosesonline
2013-03-19 14:38:46 -07:00
ahocevar
3dea8dacb4
Using the correct parent node
...
When we have a Google base layer, the parent node of the base layer's div
will be a different one.
2013-03-13 08:06:41 +01:00
ahocevar
5b98769234
Merge pull request #896 from mosesonline/refresh-bugfix
...
Refresh bugfix
2013-03-01 07:02:35 -08:00
mosesonline
05227d32d0
[New] Tests for deactivation of refresh strategy
2013-03-01 12:52:18 +01:00
mosesonline
e1e11ab9c6
[BugFix] visibilitychanged listener is not unregistered on deactivation of Strategy/Refresh.
2013-03-01 12:44:29 +01:00
Tim Schaub
a1bf41a4de
Merge pull request #886 from rauldobrota/patch-1
...
Create ro.js
2013-02-26 10:37:18 -08:00
Tim Schaub
7c10331a92
Merge pull request #890 from tschaub/utfgrid-backbuffer
...
Override createBackBuffer in UTFGrid layer.
2013-02-21 14:50:27 -08:00
Tim Schaub
7c4df5186f
Test clean up
2013-02-21 12:19:34 -07:00
Tim Schaub
461c5c4328
Test that createBackBuffer doesn't fail
2013-02-21 12:17:55 -07:00
Tim Schaub
8e555dee56
Overriding createBackBuffer in UTFGrid layer
...
This layer doesn't need to create a backbuffer.
2013-02-21 12:12:12 -07:00
Tim Schaub
f1a79135b4
Chasing tiles
2013-02-21 11:31:41 -07:00
Tim Schaub
22db2a9f61
Update MapQuest tile URL templates
2013-02-20 13:33:04 -07:00
rauldobrota
007368fce5
Create ro.js
...
Language support for romanian users.
2013-02-18 23:39:56 -08:00
ahocevar
2f85ca99bf
Remove osm layer when back in Vienna
...
Thanks @tschaub for this suggestion.
2013-02-17 12:53:59 +01:00
ahocevar
419cb272c7
Adding ZoomBox and OSM fallback layer
...
Using the new defaults, we don't need to pass options to the Navigation
control anymore. As a side effect, we get ZoomBox, but need to add css for
it to work properly. For users outside Vienna, an OSM fallback layer was
added which gets activated when the viewport does not intersect Vienna.
2013-02-16 10:32:35 +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
fdb954100e
Merge pull request #882 from tschaub/zoom-box
...
Restored zoom box behavior (thanks @ahocevar for the review).
2013-02-14 14:48:27 -08:00
Tim Schaub
a2896beafd
As the comments mention, this assumes null transitionEffect
2013-02-14 15:26:05 -07:00
Tim Schaub
0cf9833362
Resize transitions by default
2013-02-14 15:18:07 -07: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
Tim Schaub
30c82bad45
For pixel bounds, the bottom is a larger value than the top
...
This still doesn't address the broken ZoomBox test (see #800 ), it fails in the same way with or without this change.
2013-02-14 14:25:01 -07:00
Tim Schaub
d32ab41292
Correcting misinformation
2013-02-14 14:25:01 -07:00
ahocevar
ba0ba64c74
Updating PinchZoom tests (see #800 )
...
With the map's applyTransform method, the control does not need and have
its own applyTransform and center management any more.
2013-02-14 22:13:07 +01:00
Tim Schaub
e9eefc7a33
Fewer failing tests
...
There are still tests failing, but this change addresses some of the new failures after 4b163e0482 (which is an awesome improvement despite the test failures :).
2013-02-14 12:29:03 -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
e9b65691c4
Updating example to match @ahocevar's mobile-wmts-vienna branch
2013-02-14 10:44:41 +01: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
ahocevar
d0249643b3
Incorporating @elemoine's review comments
2013-02-14 10:11:48 +01:00
Marc Jansen
465498b83a
Use blank.gif as WMS-mockup URL in test.
2013-02-14 09:13:01 +01:00
Marc Jansen
73c5dbd8dc
Only valid characters in generated ids.
2013-02-14 07:14:13 +01:00
ahocevar
f46ed44131
Merge pull request #857 from faegi/featureClickPatch
...
Clear cached mousedown/up positions used for distinguishing between (fix #856 ).
2013-02-12 01:46:30 -08:00
ahocevar
982302ff03
Merge pull request #877 from finn-no/panzoombar-fix
...
Fix click on PanZoomBar when page is scrolled (fix #798 ).
2013-02-11 23:58:41 -08:00
Gregers Gram Rygg
97c793281f
Subtract page scroll from button position, since clientX/Y is relative to the viewport not page
2013-02-11 16:32:38 +01:00
Bart van den Eijnden
14bc72bcac
Merge pull request #876 from bartvde/tilemgr-changelayer
...
the tileQueue is not always cleared, for instance when adding a layer in... (r=@ahocevar)
2013-02-08 06:17:12 -08:00
Bart van den Eijnden
09d1b9e8ca
the tileQueue is not always cleared, for instance when adding a layer in GeoExplorer and then switching base layers, so make sure we also clear the tileQueue when the visibility of a layer changes
2013-02-08 14:02:20 +01:00
ahocevar
47d60a6ab8
Merge pull request #874 from ahocevar/tilemanager-backbuffer-id
...
Tile images should not have an id. r=@bartvde
2013-02-07 08:17:35 -08:00