Commit Graph

207 Commits

Author SHA1 Message Date
fredj
b8257aa64c replace Pixel argument with simple object (Util.createDiv) 2012-01-14 14:11:25 +01:00
Éric Lemoine
e1ea3471e0 Merge pull request #143 from jorix/stop-freehand
Handler.Path: Stop freehand using "maxVertices"
2012-01-12 12:08:12 -08:00
fredj
4fcd28fe08 Change some 'Parameter' to 'Property' in documentation. Non functional change 2012-01-12 09:30:51 +01:00
fredj
04ae5f8db8 Change all 'Return:' to 'Returns:' in documentation. Non functional change 2012-01-12 09:26:49 +01:00
Xavier Mamano
70f42b0629 Stop freehand using "maxVertices" 2012-01-12 08:46:15 +01:00
Xavier Mamano
b7dee9ca6d Some problems in the documentation detected using "closure_verify" 2012-01-07 19:29:41 +01:00
tschaub
b844a3b11b Happy New Year!
Updating copyright to 2012.
2012-01-03 09:01:10 -07:00
fredj
b11b33e3ab SelectFeature stops selecting features after a right click on the map 2011-12-07 15:03:39 +01:00
Frédéric Junod
9264d57a3c remove unneeded destroy and initialize function. r=erilem (closes #3341)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12386 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-09-17 19:20:40 +00:00
ahocevar
98be6e313b Making sketch handlers work over the dateline by using layer.getLonLatFromViewPortPx instead of map.getLonLatFromPixel. Thanks bartvde for the unit and acceptance tests. r=bartvde (closes #2787)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12346 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-09-08 17:53:44 +00:00
Tim Schaub
c517de52f5 Making freehand drawing work on touch devices. Thanks jorix for the excellent patch. r=me (closes #3456)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12253 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-17 02:13:06 +00:00
Frédéric Junod
eba3d3878c fixed APIdocs. Non-functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12193 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-07-27 11:36:33 +00:00
Éric Lemoine
19756915d3 Handler.Point has no "drawing" property anymore, trivial change (references #3316)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12153 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-07-04 20:48:12 +00:00
ahocevar
336f82b771 don't fire changelayer events without a property, and do a more solid changelayer event check before changing the layer zIndex. r=tschaub (closes #3377)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12121 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-06-22 06:04:10 +00:00
ahocevar
9b1aca53fa Using the correct superclass. Thanks jorix for investigating and fixing this. p=jorix (closes #3373)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12120 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-06-21 20:53:53 +00:00
Tim Schaub
2cf3f62d1b Methods for programmatically manipulating sketches while digitizing features. r=bartvde (closes #3343)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12103 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-06-17 18:59:16 +00:00
pgiraud
3d27981146 Persisted features not correctly removed in Handler.Path and freehand mode, p=jorix,me, r=erilem
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12083 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-06-15 07:21:18 +00:00
bartvde
ca70bcf928 Box Handler missing start callback, r=pgiraud (closes #3324)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12051 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-06-06 11:43:50 +00:00
Éric Lemoine
9b361ef35d make the drawing handlers create the sketch feature at an appropriate time, when we can actually derive geographic coordinates from a pixel, r=ahocevar (References #3327)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12046 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-06-06 07:12:52 +00:00
Éric Lemoine
fef7e4febf fix regression where drawing accurately is not possible anymore, r=jorix,bbinet (closes #3272)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11962 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-05-09 09:34:19 +00:00
Éric Lemoine
17f2843317 make it so features are not selected if there are multiple touches in the touchstart event, r=bbinet (closes #3279)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11948 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-05-04 10:37:09 +00:00
Éric Lemoine
53984809ce Handler.Feature may not trigger click when touching a feature, r=sbrunner
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11943 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-05-03 14:09:09 +00:00
pgiraud
55be96a9dc Don't put the box under the cursor until the mouse moved, prevent errors with the GetFeature and click events. I also removed the no longer valid (and failing) tests. r=elemoine, (Closes #2993)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11923 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-04-28 07:09:01 +00:00
Éric Lemoine
7ed03671df point handler - remove the ununsed finishTouchGeometry function, no functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11913 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-04-27 06:17:18 +00:00
Éric Lemoine
adbd2405ca mouseout callbacks should check if the mouse leaves map.eventsDiv instead of map.div or map.viewPortDiv, p=jorix, r=me (closes #3239)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11861 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-04-03 12:47:14 +00:00
Tim Schaub
970ff2741f Documentation fixes from jorix (thanks). (closes #3234)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11850 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-31 22:02:46 +00:00
Stéphane Brunner
0af21e8088 typo
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11842 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-31 12:47:41 +00:00
Éric Lemoine
61ed146240 when drawing make sure the point follow the cursor, even after zooming in or out, p=jorix, r=me (closes #3195)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11836 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-31 11:35:24 +00:00
Stéphane Brunner
07f4ad8354 fix Don't let the browser to zoom or select the map on feature selection, r=erilem (closes #3212)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11831 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-31 09:52:33 +00:00
Stéphane Brunner
04f2b20674 revert mistake [11829]
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11830 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-31 09:49:41 +00:00
Stéphane Brunner
c9d459c7fe fix Don't let the browser to zoom or select the map on feature selection, r=erilem (closes #3212)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11829 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-31 09:45:50 +00:00
Stéphane Brunner
36face3f71 Cleanup mouse event on touch devices, r=erilem (closes #3215)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11827 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-31 09:01:05 +00:00
Tim Schaub
587b2320ab Restore drag handler state in deactivate. r=erilem (closes #3218)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11808 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-30 20:54:41 +00:00
Tim Schaub
a25f506f20 Restore click handler state in deactivate. r=erilem (closes #3217)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11807 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-30 20:53:46 +00:00
Éric Lemoine
b14822c569 RegularPolygon handler - reverting [11770], as calling cancel from out causes issues (#3199)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11802 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-30 16:47:08 +00:00
Frédéric Junod
4b9f60f456 fix comment
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11800 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-30 16:17:35 +00:00
bartvde
56bca84cfe add support for maxVertices in Hander.Path, p=me,r=erilem, thanks erilem for the updated patch and your great work on this (closes #2779)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11797 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-30 14:38:32 +00:00
Stéphane Brunner
7a29b2d324 fix Don't let the browser zoom on the page on dbl click, r=erilem (closes #3209)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11795 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-30 14:29:28 +00:00
Éric Lemoine
a84c6b9302 simplify the code of the path and polygon handlers, removing the finishTouchGeometry function, r=sbrunner (closes #3214)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11793 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-30 14:26:12 +00:00
Stéphane Brunner
9e74908bc6 fix No click on drag handler, r=erilem (closes #3210)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11783 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-30 13:38:17 +00:00
Éric Lemoine
147e5bba1a some refactoring in the touch-specific code of draw handlers, r=sbrunner (closes #3208)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11773 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-30 11:30:07 +00:00
Éric Lemoine
cafe9661c4 click handler fires a "click" event when it should not, r=sbrunner (closes #3202)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11771 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-30 08:25:40 +00:00
Éric Lemoine
637dddf3b2 when drawing a regular polygon cancel drawing instead of finalizing when the mouse leaves the map, p=jorix, r=me,sbrunner (closes #3199)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11770 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-30 08:16:47 +00:00
ahocevar
7dd75fa6ea omit some tests in browsers that don't give us getComputedStyle for elements inside hidden frames (closes #2910)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11753 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-29 15:15:07 +00:00
Frédéric Junod
1417382f10 fix indent. non functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11752 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-29 14:44:35 +00:00
ahocevar
c5dfe37bd4 fixed box sizing and positioning. r=sbrunner (closes #2910)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11749 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-29 13:44:04 +00:00
Éric Lemoine
2ff5aee63e better doc strings for the pixelTolerance option of Handler.Point, plus code styling, no functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11747 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-29 13:24:15 +00:00
Éric Lemoine
0276351f50 when zooming out right after drawing a polygon or a line a point appears in the upper left corner, p=jorix, r=me (closes #3196)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11745 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-29 12:00:58 +00:00
ahocevar
f88f6cd6ed removing box when deactivating the handler. p=jorix, r=me (closes #3198)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11729 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-27 17:00:38 +00:00
Éric Lemoine
04ee616947 make it possible to activate a drawing handler before the map is centered, r=ahocevar (closes #3179)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11717 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-21 08:28:58 +00:00