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
euzuro
8487728e09
popup actually can use 'parentNode' to determine his parent. so no need to set anything. also, only try removing from viewPortDiv if popup.div is not null
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@231 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-21 17:54:23 +00:00
euzuro
359fe02bd5
popup doesnt want a reference back to the map, it wants a reference to the div that it was added to. this we will call 'parent'. with this reference, it will be able to destroy itself
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@229 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-21 16:59:09 +00:00
euzuro
2e4f6129f6
forgot that these declarations are still only statically initialized. even though the chance of somebody *modifying* one of these strings (rather than just replacing it) is rather low... we might as well do things the right way
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@228 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-21 16:02:29 +00:00
euzuro
d9762c984e
add code to Map.js to allow for the addittion and removal of popups. add a new html file to play around with popups. add a test in the test_Map file for the popup adding/removing
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@227 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-21 15:47:10 +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
d694efa60e
add indexOf() function to array - returns first index of a given element in an array. useful for testing, etc
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@225 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-21 14:42:18 +00:00
euzuro
7db43c23c9
since r206, controlDiv member var no longer needed
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@223 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-21 13:50:28 +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
crschmidt
e97ccc7dd4
Missed a switch from this.map -> this on mouseDefaults. Dragging was
...
broken.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@219 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-21 03:12:53 +00:00
crschmidt
d0da958e57
1. Change the calling syntax for events on this control so that they go
...
from this instead of this.map. This has practical as well as idealogical
benefits, namely that we can now call other methods on the control from
within a control. This is neccesary for...
2. When the shift key is lifted, stop the zoomBox. This is the way in
which users can *not* zoom once they've started.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@217 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-21 00:35:04 +00:00
crschmidt
24eb8fe144
Implement Drag-to-Zoom for ticket #30 .
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@216 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-20 22:18:44 +00:00
crschmidt
e7c6d4df19
Change order of Marker creation from icon, latlon to latlon,icon. I don't know why I would have done it the other way.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@215 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-20 20:39:33 +00:00
crschmidt
334fb4c2ed
Add start of a KeyboardDefaults class. This works, but because Keyboard events apparently always happen on the document level, I haven't yet figured out how to have them only happen when you're 'focused' on the map, so these are currently off by default. To test them, map.addControl(new OpenLayers.Control.KeyboardDefaults()); in your HTML file.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@214 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-20 19:59:50 +00:00
crschmidt
f67177cf21
Add Feature.createMarker method. Not complete yet.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@212 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-20 13:28:28 +00:00
crschmidt
bdc0b9eefd
Move setting of the zIndex of the control div back to map where it belongs.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@211 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-20 11:45:25 +00:00