Commit Graph

698 Commits

Author SHA1 Message Date
ahocevar
bd262fce41 Addressing @elemoine's review comments.
Now the application no longer needs to care about the tile origin, because the CacheWrite control modifies the url if the CORS image loading is disabled and it is from a different origin. This only requires OpenLayers.ProxyHost to be properly configured. Also local storage keys use the original url instead of the proxied url, to make the CacheRead control work without proxy settings.
No deferred exceptions are thrown any more. Instead, OpenLayers.Console is used to show an error message for security exceptions.
We now check for OpenLayers.Tile.Image, because other tile types (e.g. UTFGrid) are not supported (yet).
To make the same origin handling in the CacheWrite control easier, OpenLayers.Request now exposes the same origin logic from request.issue as a separate function, so it can also be used by other components.
2012-03-11 22:15:34 +01:00
ahocevar
3d8a9168f0 Always set the tile url.
This avoids false positives in the url check in CacheWrite::cache when the CacheRead control is also active.
2012-03-09 19:07:54 +01:00
ahocevar
e366722375 Note about terms of service. 2012-03-08 18:37:45 +01: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
3b860ca4d7 Merge pull request #168 from jorix/Docs-issues3
Some problems in the documentation
2012-03-06 00:05:52 -08: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
Xavier Mamano
bfb379f349 Fix some problems in the documentation. 2012-03-05 11:43:09 +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
Éric Lemoine
ba7e820adb Merge pull request #278 from elemoine/revert-camelize-removal
Revert camelize removal
2012-03-05 00:37:32 -08:00
Éric Lemoine
c58f093615 Revert "Removing camelize method."
This reverts commit 43ef0920c2.
2012-03-04 23:22:21 +01:00
Xavier Mamano
af8a483f10 "snappingOptions" option is not used neither in lib examples and evidence. 2012-03-04 17:01:06 +01:00
ahocevar
12f191a690 Merge branch 'master' of github.com:openlayers/openlayers 2012-03-04 11:25:10 +01: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
Éric Lemoine
9242846954 Merge pull request #272 from elemoine/revert-hasownproperty
do not generalize use of hasOwnProperty
2012-03-03 14:54:48 -08: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
Éric Lemoine
9a116b21b9 Revert "protect for in loops with hasOwnProperty"
This reverts commit e3cc96dbfb.
2012-03-03 22:35:39 +01:00
ahocevar
221f299650 Using buttonclick event to avoid issues on touch devices. 2012-03-03 22:21:01 +01:00
Tim Schaub
c6650087cc Update zoom example to demonstrate custom style. 2012-03-02 23:51:39 -07:00
Tim Schaub
f45043967b Zoom control tests. 2012-03-02 22:52:18 -07:00
tschaub
0ce7674be6 Adding a simple zoom control.
This control generates simple zoom in/out links that can be styled with CSS.
2012-03-02 15:45:30 -07:00
Bart van den Eijnden
e3cc96dbfb protect for in loops with hasOwnProperty 2012-02-29 18:43:55 +01:00
Éric Lemoine
8273f153dc Merge pull request #223 from camptocamp/access_panelbutton
make it possible to create accessible panel buttons
2012-02-29 04:39:57 -08:00
ahocevar
d0c782ca74 Making LayerSwitcher work again outside viewport. 2012-02-29 10:40:45 +01:00
Xavier Mamano
9e48825205 Preserve the title and the className if they are set in createControlMarkup. 2012-02-28 22:28:33 +01:00
Éric Lemoine
3b7585be24 avoid useless deref 2012-02-28 22:28:33 +01:00
Éric Lemoine
5539f6e958 [Control.Panel] place code creating the control markup in a separate function 2012-02-28 22:28:33 +01:00
Éric Lemoine
43809ea330 Merge pull request #222 from camptocamp/access_keyboardcontrol
KeyboardDefaults control improvements
2012-02-28 03:02:19 -08:00
ahocevar
c2b8f9cdb5 Merge pull request #64 from tmcw/no-camel
Removing camelize method.
2012-02-28 00:05:58 -08:00
tschaub
2b5ade2dde Adding back events documentation.
When the list of event types became unconstrained in 501b42228a, we lost the documentation for events that are triggered.  This change adds the list of events triggered to the API docs for events properties.
2012-02-16 10:36:34 -07:00
Éric Lemoine
c0b02b278a add an observeElement option to Handler.Keyboard and Control.KeyboardDefaults to control the DOM element on which key events are observed 2012-02-15 13:58:48 +01:00
Éric Lemoine
cbebcd0bf6 make the KeyboardDefaults control prevent browser default after handling a key press 2012-02-15 13:58:48 +01:00
ahocevar
3fae6c0d29 Merge pull request #195 from ahocevar/layerswitcher-simplified
No additional events registered on the LayerSwitcher. r=@fredj.
2012-02-12 03:32:20 -08: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
fredj
657b47abb0 Update Control.OverviewMap.getOverviewPxFromLonLat input type
'lonlat' parameter can be either a OpenLayers.LonLat instance or a
simple javascript object with a 'lon' and 'lat' properties.
2012-02-02 16:35:30 +01:00
ahocevar
a278986442 No additional events registered on the LayerSwitcher.
With the buttonclick event, we can also handle clicks on layer names and checkboxes/radiobuttons when they get the olButton class. To make this work on iOS, we have to add a check in buttonclick.js to handle the case where the event occurred on a text element (nodeType === 3).
2012-02-02 00:02:51 +01:00
fredj
4e73df0115 Set Control.TransformFeature handle role (rotate) into attributes. 2012-01-27 11:42:24 +01:00
fredj
717e13fb44 transformFeature() already call drawHandles 2012-01-27 11:42:24 +01:00
Éric Lemoine
2f66031603 remove multiple variable declarations in Control/KeyboardDefaults.js, non functional change 2012-01-25 10:54:39 +01:00
fredj
1d422dbc73 Remove unsetFeature call in Control.TransformFeature.deactivate 2012-01-24 15:13:19 +01:00
fredj
d9de788b3b Don't create unneded local variable (box) 2012-01-24 15:13:19 +01:00
fredj
eceaf1a319 Add more properties to destroy in destroy() 2012-01-24 15:13:19 +01:00
fredj
cea7b3e55c Set Control.TransformFeature handle role (resize) into attributes. 2012-01-24 15:13:18 +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
fredj
2bd9721fd8 remove tabs 2012-01-24 12:13:41 +01: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
ed88941280 Incorporating review comments from @jorix. 2012-01-22 21:30:41 +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