Commit Graph

293 Commits

Author SHA1 Message Date
ahocevar 8d42f33a28 Fixing typo which causes CacheRead to fail when CacheWrite is active 2012-03-21 23:21:24 +01:00
Frederic Junod 46309b5265 Fix proj4js script.src 2012-03-15 17:13:10 +01:00
Antoine Abt bed3edeb46 Merge pull request #281 from ejn/master
Improve iconOn/iconOff class name matching in Panel.js; add unit tests
2012-03-13 00:37:54 -07:00
ahocevar 6b5dba3f93 Merge pull request #301 from ahocevar/offline
Adding CacheRead and CacheWrite controls. r=@elemoine,@fredj
2012-03-12 08:29:00 -07:00
Tim Schaub 1a444589e0 Merge pull request #274 from tschaub/utfgrid
UTFGrid Tile, Layer, and Control.  This adds support for responsive handling of interactions with large numbers of features represented by UTFGrids.
2012-03-09 08:49:30 -08:00
ahocevar f18ac9911b Adding CacheRead and CacheWrite controls.
These controls read from and write to the browser's offline storage. Example with a seeding tool included.
2012-03-08 14:18:44 +01:00
Éric Lemoine 877f4b4cc6 make the PanZoom tests pass in IE 9+, by not running tests that rely on document.createEvent in this browser too, no functional change (refs #277) 2012-03-07 22:01:39 +01:00
Tim Schaub cf30e71b9f Merge branch 'master' of github.com:openlayers/openlayers into utfgrid 2012-03-06 00:06:15 -07:00
Tim Schaub 8d6bddf0ac A simple zoom control with zoom in/out links.
The zoom control allows for zoom in/out links that can be styled with CSS.

Note: This change was originally captured in #269.  It involves nice additions thanks @ahocevar.  The changes were unintentionally merged and then reverted with fb3caf1561, so the history of commits is not immediately apparent (though still likely there somewhere due to the magic of git).
2012-03-05 22:11:36 -07:00
ahocevar fb3caf1561 Revert "Merge branch 'master' of github.com:openlayers/openlayers"
This reverts commit 12f191a690, reversing
changes made to 49b3dc85c2. See #269.
2012-03-05 18:56:50 +01:00
ejn fbc3b5475d Improved regex, added tests 2012-03-05 12:14:56 +01:00
Bart van den Eijnden 17f7b2feab use separate testcase as suggested by @ahocevar 2012-03-05 10:04:15 +01:00
Bart van den Eijnden 6204fe50c6 GetFeatureInfo requests should take EXCEPTIONS parameter from the WMS layer 2012-03-05 09:56:31 +01:00
ahocevar 12f191a690 Merge branch 'master' of github.com:openlayers/openlayers 2012-03-04 11:25:10 +01:00
Tim Schaub 32db586fba Provide map and pixel location to callback. 2012-03-04 01:56:26 -07:00
Éric Lemoine 49b3dc85c2 Merge pull request #56 from jorix/3576-MeasureImm
#3576 Incorrect geometry passed to measurePartial
2012-03-03 23:59:54 -08:00
Tim Schaub 268b84286b Tests for UTFGrid layer and control. 2012-03-03 17:29:38 -07:00
Tim Schaub 9a3b723ba4 Making it safe to destroy a permalink.
Previously, a map could not be destroyed if it included a permalink control without an "element".  In addition, a permalink control could not be destroyed if it didn't have a reference to a map.
2012-03-03 14:42:43 -07:00
Tim Schaub 935d621113 Testing that the permalink works with map options.
The permalink/argparser combo doesn't properly handle map configurations where layers and a map location are provided (see #270).
2012-03-03 14:30:03 -07:00
ahocevar 221f299650 Using buttonclick event to avoid issues on touch devices. 2012-03-03 22:21:01 +01:00
Tim Schaub f45043967b Zoom control tests. 2012-03-02 22:52:18 -07:00
tschaub 4e9701caa8 Making map construction work with permalink.
If a map is configured with a permalink control and a center, the permalink control tries to work with the map center before setCenter is called.  This sequence assumes that the map center will already be a LonLat.  This fails if the map is constructed with a coordinate array.  Safer move is to convert center to LonLat before controls are added.
2012-03-01 13:47:42 -07:00
ahocevar d0c782ca74 Making LayerSwitcher work again outside viewport. 2012-02-29 10:40:45 +01:00
Marc Jansen 631f6b5d3d Merge pull request #218 from marcjansen/testsuite-fixes
Testsuite fixes
2012-02-28 04:32:36 -08:00
ahocevar 2fe882f4d8 Merge pull request #219 from ahocevar/proj-defaults
New OpenLayers.Projection.defaults property. r=@tschaub,@fredj
2012-02-16 01:29:29 -08:00
Marc Jansen 67ea250cca Fix a Control.OverviewMap test that failed in Firefox 10.0.1 (Linux). 2012-02-15 14:11:54 +01:00
ahocevar 2e423df3d2 Use the layer's projection.
In setMap, the layer gets the map's projection if it doesn't have its own. And since a layer can have a different SRS code than the map (but a compatible one, i.e. with OpenLayers.Projection.transforms[mapProj][layerProj] being OpenLayer.Projection.nullTransform), the axis order can be different.
2012-02-15 13:41:25 +01:00
ahocevar 11966d231f New OpenLayers.Projection.defaults property.
This allows us to simplify the map and layer configuration, because now the projection also defines defaults for maxExtent, maxResolution and units.
This change also adds transforms for SRS aliases for EPSG:4326 and centralizes axis order information in OpenLayers.Projection.defaults.
2012-02-15 11:09:55 +01:00
Marc Jansen 79540f346d Reformatting of testfile prior to fixing failing test in Firefox 10.0.1.
No functional change.
2012-02-15 11:09:45 +01:00
Marc Jansen 52931daf32 Fix spelling in test-function. No functional change. 2012-02-15 09:14:31 +01:00
ahocevar 6385be7ffe Template for the Attribution control.
This allows to add map specific copyright, or copyright required for tools like geocoders that are used in the context of the map.
2012-02-11 12:34:40 +01:00
fredj 6daecd677d New createVertices option for Control.ModifyFeature 2012-02-09 14:12:52 +01:00
Éric Lemoine c66e5da29a mock map.pan, map.zoomIn and map.zoomOut in the Control.KeyboardDefaults tests, references #176 2012-01-25 13:08:13 +01:00
ahocevar dc03537132 Merge pull request #167 from ahocevar/button-controls-improved
Fixing PanZoomBar and Panel issues after #164. r=@elemoine
2012-01-24 05:17:00 -08:00
ahocevar def2085915 vertexRenderIntent for all sketch modes.
Fixed whitespace from original patch.
p=mosesonline, r=me (closes http://trac.openlayers.org/ticket/3581)
2012-01-23 14:39:06 +01:00
ahocevar ae55f1a70c Adding boxselectionstart and boxselectionend events.
Whitespace fixed from patch, and removed docs for beforefeatureselected and featureselected events because they are fired on the layer, not the control.
p=mosesonline, r=me (closes http://trac.osgeo.org/openlayers/ticket/3538)
2012-01-23 14:30:36 +01:00
ahocevar e7107b96cb Fixing PanZoomBar and Panel issues after #164.
For PanZoomBar, this fixes the slider behavior. Now the buttonclick listener argument also includes a buttonXY property, and PanZoomPanel does not need an Events instance for the zoombarDiv any more.
For Panel, this fixes events for panels outside the map. Just setting the element on the Events instance was no longer enough after e70569b2bb. Events::attachToElement is now used, and it needed to be modified to also work if the Events instance had no element previously.
Finally, I renamed the button property of the buttonclick listener argument to buttonElement, to not confuse it with the browser event button property, and added some more tests and documentation.
2012-01-22 21:30:40 +01:00
ahocevar 05de2b5109 Don't let button controls interfer with handlers.
This change involves removal of the map's eventsDiv and introduces an OpenLayers.Events.buttonclick component that adds a buttonclick event which makes sure that only events that are not related to clicking a button propagate. This allows button controls to be on the map's viewPortDiv again.
2012-01-20 03:37:11 +01:00
Xavier Mamano 7c76b90a2d Test Measure: Correct the text of expected result. 2012-01-17 22:45:25 +01:00
Tim Schaub 0127806ee2 Assert that split control works with no geometry. 2012-01-08 21:14:17 -05:00
Tom Hughes 93f2a31253 Add tests for regular and irregular transformations 2011-12-31 12:08:21 +00:00
Éric Lemoine 6b0d61dbd1 remove useless assertion in Panel.html:test_iconOn_iconOff 2011-12-14 16:08:34 +01:00
Éric Lemoine 45a6e24299 Panel iconOn and iconOff do not behave correctly if application-specific classes are set in the control 2011-12-14 15:49:19 +01:00
Éric Lemoine 513dd16be3 deprecated LayerSwitcher roundedCorner option 2011-12-09 00:10:29 +01:00
Xavier Mamano eae04c92bc cancelDelay before measureImmediate + changes in tests. 2011-11-16 19:51:28 +01:00
Éric Lemoine e6f2b0e294 fix bug where center of fingers is not preserved on pinch zoom 2011-11-10 21:35:38 +01:00
tschaub b7c826e796 Remove MouseDefaults and MouseToolbar. 2011-11-08 18:32:55 -07:00
Marc Jansen 760d5a584c Reverse QUERY_LAYERS order in GetFeatureInfo requests. r=bartvde (closes #3253) 2011-10-09 15:53:12 +02:00
tschaub c743d3e8a5 Passing renderer options to the sketch layer.
The draw feature control should pass preferred render and other renderer options to the sketch handler.
2011-09-29 17:26:23 -06:00
Bart van den Eijnden 8edb26d579 Revert "DragFeature control should trigger afterfeaturemodified, r=crschmidt (closes #3277)"
This reverts commit a46489db1a.
2011-09-28 10:31:32 +02:00