Commit Graph

34 Commits

Author SHA1 Message Date
crschmidt
5f8dc06823 Pullup fixes to mouse controls since 2.1-rc1, along with a fix for
zooming. 


git-svn-id: http://svn.openlayers.org/branches/openlayers/2.1@1481 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-09-18 18:48:29 +00:00
euzuro
7ce7f2484b update default behaviour of popups. now you can click and drag inside a popup without the events dropping through to the map, yet if you are dragging a zoombox over a popup, it still responds. this is all thanks to a new function i am adding to Util.js which is called OpenLayers.Util.safeStopPropagaition(). Turns out the default Event.stop() from prototype.js is also calling a function called preventDefault() which disallows things like selecting text or clicking a hyperlink. all tests pass.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1438 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-09-13 08:20:02 +00:00
crschmidt
28bff61128 Fix all cases where we have Windows line endings, and set eol-style="native"
on all files. Hopefully, this makes it easier for people to write patches
and do other neat things. 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@1424 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-09-09 15:46:17 +00:00
euzuro
861335f356 more standardizing ids
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1417 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-09-08 05:23:28 +00:00
euzuro
899101ef0b step toward standardization of id policy... for popups
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1416 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-09-08 04:51:32 +00:00
euzuro
c1b8c8dd60 change the '@require:' to '@requires' so as to be compatible with JSDOC standards. put these directly inside the class definition comment block. update script to suggest this and update all source files to follow pattern. Caught a missing @requires in the EventPane.js file
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1206 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-08-14 23:05:05 +00:00
euzuro
76f38a5a36 fix for #136
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1187 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-08-10 06:02:14 +00:00
Schuyler Erle
ead31f6dc6 Added license headers to all JS source files.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@657 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-21 15:22:48 +00:00
euzuro
3b443ca2c9 if we destroy a popup, have it remove itself from the map. good programming says that a popup should be removed by the same person who added it... but if the user destroys a popup, s/he assumes it will dissapear, and unless we remove it, it wont do that.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@538 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-07 15:37:51 +00:00
euzuro
99bfb9a37d do not let the popup remove itself from parent div. that would be poor form.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@525 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-05 18:56:45 +00:00
euzuro
4a369cdf2a oops. more tabs
git-svn-id: http://svn.openlayers.org/trunk/openlayers@479 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-31 23:33:36 +00:00
euzuro
bb61e0b358 fixing tabs
git-svn-id: http://svn.openlayers.org/trunk/openlayers@477 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-31 23:29:55 +00:00
euzuro
f08462465d move Popup to the same design as Marker. Create the div in the constructor. Give popup an events object.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@416 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-27 01:08:00 +00:00
euzuro
ed42ea6fae slight of the hand
git-svn-id: http://svn.openlayers.org/trunk/openlayers@413 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-27 00:04:27 +00:00
euzuro
8e0b8bbf1f add visibility functions to popup
git-svn-id: http://svn.openlayers.org/trunk/openlayers@412 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-26 23:59:18 +00:00
euzuro
f115b797a3 Changed around the order of arguments for createImage, createDiv, and createAlphaImage. bubbled out helper function OpenLayers.Util.modifyDOMElement() to handle common mods. Official order now is: id, px, sz, imgURL, position, border[, overflow]
git-svn-id: http://svn.openlayers.org/trunk/openlayers@384 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-26 01:23:11 +00:00
euzuro
e665e10a53 coding standards.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@351 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-25 02:44:18 +00:00
euzuro
bf8c1fba02 give Popup an 'updatePosition()' function that allows it to re-position itself. This will be used for zoom changes.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@350 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-25 02:43:56 +00:00
euzuro
79295569a3 we should really be sure that this.lonlat is set too.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@348 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-25 02:24:48 +00:00
euzuro
df5455e41e Since popups have a reference back to map, allow them to determine where they should be drawn internally. Thus we can remove the computing from the addPopup() function in Map.js.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@346 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-25 02:09:33 +00:00
euzuro
02303334c6 now we dont have to complicate the dynamic load process.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@339 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-25 00:28:34 +00:00
euzuro
e727450196 no reason for Popup to be using an OpenLayers construct in the declaration phase. make it WIDTH and HEIGHT instead of using OpenLayers.Size.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@338 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-25 00:27:46 +00:00
euzuro
123e959c7e add 'map' reference to standard popup. make sure to nullify it in the destroy()
git-svn-id: http://svn.openlayers.org/trunk/openlayers@336 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-25 00:19:24 +00:00
euzuro
147d91c056 JSDOC
git-svn-id: http://svn.openlayers.org/trunk/openlayers@332 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-24 23:12:31 +00:00
euzuro
ca8f03bc2c popup does not need to store reference to his parent. to remove himself, he uses parentNode directly from his Div DOMElement. see r231
git-svn-id: http://svn.openlayers.org/trunk/openlayers@331 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-24 23:09:23 +00:00
crschmidt
c0ec7f9a00 Change @require to @require:
git-svn-id: http://svn.openlayers.org/trunk/openlayers@326 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-24 17:17:22 +00:00
euzuro
48d97061cb give the popup a lonlat
git-svn-id: http://svn.openlayers.org/trunk/openlayers@298 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-23 21:45:19 +00:00
crschmidt
9190dd18d2 Add @require pragma to all source files.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@277 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-23 15:20:31 +00:00
euzuro
08e7a5f10f update Control, Marker, and Popup such that they all have draw(px) and move(px) functions. standardization. update tests.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@255 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-22 12:50:09 +00:00
euzuro
2410d94107 removed px member from OpenLayers.Popup. user must now specify a px value in the draw() method, just like with markers. updated tests
git-svn-id: http://svn.openlayers.org/trunk/openlayers@252 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-22 11:45:38 +00:00
euzuro
2b9c021d83 default opacity should be full
git-svn-id: http://svn.openlayers.org/trunk/openlayers@236 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-21 18:25:47 +00:00
euzuro
e5f4e4aa4a add member variables, constants, getters and setters, and tests for id, px, size, content html, background color, opacity, border
git-svn-id: http://svn.openlayers.org/trunk/openlayers@232 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-21 17:55:49 +00:00
euzuro
b5c6bbbf20 make popup take arguments, allow it to draw itself. tests.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@226 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-21 15:27:36 +00:00
euzuro
50ea534cec add OpenLayers.Popup and a directory Popup, in which we will put all custom popups.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@220 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-21 13:39:06 +00:00