Commit Graph

218 Commits

Author SHA1 Message Date
Schuyler Erle
b4f7d528d0 Always disable dragstart in IE on Events objects, so that mousedown/move/up works normally.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@310 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-24 03:43:34 +00:00
Schuyler Erle
b9ab087d32 Bug fix to Util.mouseLeft() for IE.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@309 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-24 03:25:17 +00:00
Schuyler Erle
7683e0853a Fix to Control.MouseDefaults stops panning when dragging off the map. Closes #29 for good, I hope.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@308 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-24 03:20:22 +00:00
Schuyler Erle
0b7d1e6e1e Bug fix and comments to Util.mouseLeft().
git-svn-id: http://svn.openlayers.org/trunk/openlayers@307 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-24 03:14:05 +00:00
Schuyler Erle
259c17106e Implemented OpenLayers.Util.mouseLeft to make up for a lack of onmouseleave in Mozilla.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@306 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-24 03:01:50 +00:00
Schuyler Erle
45fc70cbc7 If map.maxResolution is not set, set it to display the entire maxExtent in whatever the current map size is by default.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@301 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-23 22:41:28 +00:00
euzuro
92571569af update map.addPopup() to automatically add the popup at the correct screen location... and add it to the layersContainerDiv so that it will move with the maps. and example. and tests.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@300 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-23 21:50:24 +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
euzuro
163e0a8419 markers are no longer supposed to have associated data
git-svn-id: http://svn.openlayers.org/trunk/openlayers@297 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-23 19:08:00 +00:00
euzuro
c10fdec8e7 OpenLayers.Feature - JSDOC/coding standards
git-svn-id: http://svn.openlayers.org/trunk/openlayers@296 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-23 19:06:41 +00:00
euzuro
39e53685ce give Feature an id
git-svn-id: http://svn.openlayers.org/trunk/openlayers@294 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-23 19:01:55 +00:00
euzuro
ad41a1df69 move xml helper functions into Util.js and adapt code to use them-- is this where we want to keep them? do we want to keep them? tests need to be written.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@292 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-23 17:35:16 +00:00
euzuro
c506e039d8 typo. Openlayer->OpenLayers
git-svn-id: http://svn.openlayers.org/trunk/openlayers@289 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-23 17:14:14 +00:00
euzuro
25690c21e9 use other proxy for now
git-svn-id: http://svn.openlayers.org/trunk/openlayers@288 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-23 17:01:25 +00:00
euzuro
80e048da92 dont need to position or append wfs tile
git-svn-id: http://svn.openlayers.org/trunk/openlayers@284 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-23 16:24:59 +00:00
euzuro
3f7665b0ae cgi script directory name changed
git-svn-id: http://svn.openlayers.org/trunk/openlayers@283 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-23 16:13:09 +00:00
Schuyler Erle
a317e767ec Some improvements to Control.PanZoomBar, mostly to make it work with the new graphics.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@281 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-23 15:39:07 +00:00
crschmidt
4917ecac34 Change Layer.Marker to Layer.Markers.
Closes #50.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@278 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-23 15:35:38 +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
crschmidt
81c9315c17 Finishing Schuyler's commit the other day, which was designed to change behavior on release of shift key, but failed to actually do so...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@276 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-23 14:45:51 +00:00
euzuro
1041515bfd udpatoing Tile.WFS code, removing ol.Application calls. AddingAjax.js file (do we want this?) and including it in the dynamic loader
git-svn-id: http://svn.openlayers.org/trunk/openlayers@275 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-23 00:22:22 +00:00
euzuro
cd677b332d small modification to r269 - making sure these get set in the instances and not the class (static).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@272 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-22 18:11:49 +00:00
crschmidt
be6ecf5dca Store div offsets in event div object, caching them until a updateSize call. This provides a significant performance gain in places where the div contains hundreds or thousands of markers, because as the div element gets bigger, determining its size through Prototype.element.page() becomes slower by a factor of up to 4 (determined through profiling with venkman).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@271 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-22 18:11:45 +00:00
Schuyler Erle
43d9a488df Cleanup the getZoomForExtent() code -- thanks to crschmidt for discovering that I had the ratio of max to current resolution flipped.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@270 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-22 17:50:51 +00:00
Schuyler Erle
7378388d45 Added a position property to Control, which allows us to specify a default
location for each Control class, and saves us from *having* to supply a pixel
position to the map.addControl() method -- the sensible default will tend to be
used instead.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@269 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-22 17:25:46 +00:00
crschmidt
d8ddc5aa36 More readable code, and change markerDiv -> markerImg, since we're not returning a div anymore.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@268 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-22 17:25:15 +00:00
crschmidt
c0ad6226de Adjust redraw. Before, we were appending the marker again -- but there's no reason to do that. The markers already exist, we're adjusting their position anyway. This should result in a 2/3rds speed win after the initial display, because appendChild was the largest length of time in the entire redraw process.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@267 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-22 17:13:15 +00:00
crschmidt
b73626fbdc this.updateSize, not updateSize.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@266 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-22 16:21:42 +00:00
crschmidt
0fd94a3f21 Fix typo.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@264 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-22 16:18:35 +00:00
Schuyler Erle
0cc4aa316d Set up a resize event listener to call map.updateSize() as necessary.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@262 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-22 14:08:15 +00:00
Schuyler Erle
27c99baacb Make it possible to supply an empty list to the Map() constructor, to disable the default controls.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@261 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-22 14:06:09 +00:00
crschmidt
ea4e785409 Huge performance win in caching this. Need to document updateSize, and probably set a 'resize' handler for the document or something like that to call it automatically. Note that GMaps v1 didn't have this concept: If you resized the map, you were stuck with it. GMapsv2 exposes a function to do this, so we're in line with that expectation.
Profile difference: Before, 291 calls took 3 seconds. Now, 649 calls takes 3.49 milliseconds.
Total Time: 2859.72 (min/max/avg 0.12/35.62/9.83) vs.  Total Time: 3.49 (min/max/avg 0/1.53/0.01)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@260 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-22 13:28:37 +00:00
euzuro
f5b1cc270c fixing tabs
git-svn-id: http://svn.openlayers.org/trunk/openlayers@256 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-22 13:05:14 +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
9fd1d458ae coding standards
git-svn-id: http://svn.openlayers.org/trunk/openlayers@254 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-22 12:36:14 +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
d2c18d4de7 rename 'object' to 'image', coding standards, remove duplicate declaration of 'events'
git-svn-id: http://svn.openlayers.org/trunk/openlayers@251 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-22 11:09:27 +00:00
euzuro
7f11d01e87 changing function name from generateMarker to draw() to remain consistent with other areas of the code. (specifically OpenLayers.Control, whouses the draw() function to render the control and return a link to the div)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@249 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-22 10:50:35 +00:00
euzuro
5dcb062be1 small re-org of Marker layer innards
git-svn-id: http://svn.openlayers.org/trunk/openlayers@248 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-22 10:25:02 +00:00
euzuro
043f833a30 adapt OpenLayer.Layer.Marker to use the new Map.getPixelFromLonLat()
git-svn-id: http://svn.openlayers.org/trunk/openlayers@247 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-22 10:02:04 +00:00
euzuro
78588aa8ea adding getPixelFromLonLat() function to Map.js -- the code is lifted from OpenLayers.Layer.Marker's drawMarker() function. also test added to ensure both translation functions return valid objects and that going back and forth is consistent. Note that i only test pixel-lonlat-pixel, because going from lonlat-pixel-lonlat there is loss due to the rounding in the lonlat-pixel phase
git-svn-id: http://svn.openlayers.org/trunk/openlayers@246 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-22 09:55:20 +00:00
Schuyler Erle
af7dc7661a Commented out code to cancel zoom box if shift key is released before left mouse button. I find myself doing this consistently by accident, so we should probably find another way to cancel the zoom, like hittin ESC or something.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@245 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-22 03:47:19 +00:00
Schuyler Erle
7999253c74 Make the zoom box thicker and semi-opaque.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@244 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-22 03:27:51 +00:00
euzuro
f623bbe2f1 updated comment from [239]
git-svn-id: http://svn.openlayers.org/trunk/openlayers@243 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-21 22:33:14 +00:00
crschmidt
2f5f40bfe1 Move projection information storage to map. Layer/Grid.js sets the projection when it creates a tile url, and it's no longer in the default params of WMS.js.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@240 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-21 18:34:01 +00:00
crschmidt
d295e5a892 This variable is set in map.addLayer, not within the layer itself, so this comment is not correct.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@239 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-21 18:30:08 +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
9a16fe612d forgot a comma. sorry.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@235 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-21 18:13:11 +00:00
euzuro
d36388c19e coding standards
git-svn-id: http://svn.openlayers.org/trunk/openlayers@234 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-21 18:07:46 +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