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
022ffde95e
moved oppositeQuadrant() function from Anchored.js to Util.js, where it is now a static function on the OpenLayers.Bounds class. Updated usage in code accordingly. Added test.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@343 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-25 00:54:45 +00:00
euzuro
cfe9479a89
JSDOC - designate private functions as such
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@342 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-25 00:44:01 +00:00
euzuro
43e218c969
no reason to override Popup's destroy() if nothing new is being destroyed
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@341 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-25 00:39:44 +00:00
euzuro
48abf71cea
fix dynamic load instruction for Popup.js subclass
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@340 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-25 00:29:48 +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
854a468373
add code to properly place the anchored popup. include it in dynamic loader. add testing code in demo popups.html
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@337 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-25 00:20:35 +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
4dcd798e59
give popups a reference back to map
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@335 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-25 00:06:35 +00:00
euzuro
b55debdd48
adding determineQuadrant() function to OpenLayers.Bounds. Tests included.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@334 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-24 23:43:09 +00:00
euzuro
3ece5e35fd
adding skeleton for anchored popup
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@333 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-24 23:14:34 +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
euzuro
0f7f771637
make tileSize member variable safe in Grid.js
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@330 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-24 23:04:35 +00:00
euzuro
06cbeb2f11
fix for #60
...
conversions to/from lonlat/px need to take into account
the offset of the layersContainerDiv.
I have introduced the following functions for converting
between layer and screen pixel values:
getLayerPxFromScreenPx() and getScreenPxFromLayerPx()
they are pretty self-explanitory.
I then renamed:
getPixelFromLonLat() and getLonLatFromPixel()
to:
getScreenPxFromLonLat() and getLonLatFroScreenmPx()
and added:
getLayerPxFromLonLat() and getLonLatFromLayerPx()
updates were made throughout the code, demos, and tests
so everything should still run smoothly.
-e-
git-svn-id: http://svn.openlayers.org/trunk/openlayers@329 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-24 18:45:50 +00:00
crschmidt
e5bb6b7dbd
Finish of r326, adding : to @require pragmas
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@328 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-24 17:39:21 +00:00
crschmidt
213a1b02d1
A couple changes got rolled into r326 that weren't meant to: Rolling them back out.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@327 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-24 17:38:27 +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
14196834bb
the proxy reference can safely be shortened. thanks phil
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@324 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-24 16:14:52 +00:00
crschmidt
201e478c63
Complete refactoring of PanZoomBar. This changes all event handling to be through the Events class, which wasn't the case in the past: this has the result of changing the 'this' object from being the slider, div, etc. to being the Control itself, which simplifies much of the code, and probably removes a few circular references.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@323 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-24 13:44:29 +00:00
Schuyler Erle
5d1bc5ed78
Fixed redundant tileSize definition.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@318 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-24 06:26:54 +00:00
Schuyler Erle
cfb1b472a7
Calling map.destroy() twice previously an error in IE. Fixed.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@314 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-24 05:44:43 +00:00
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