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
0821a4ef99
update tests for popup for r298
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@299 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-23 21:46:06 +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
d6f1dedeb1
fix tests for r294
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@295 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-23 19:06:17 +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
crschmidt
16ac9ce885
Fix Marker tests.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@293 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-23 18:14:18 +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
123b460932
update demo pages to r278
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@291 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-23 17:32:31 +00:00
euzuro
e86628b17e
updating tests to changes made in r278
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@290 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-23 17:28:08 +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
crschmidt
8cb22b6b59
Change this to be /usr/bin/env, for more cross platformability. Hopefully.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@287 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-23 16:40:23 +00:00
crschmidt
69f06802ca
More better error handling
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@286 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-23 16:33:07 +00:00
crschmidt
29fc44105f
Remove line that was testing exception handling.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@285 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-23 16:27:17 +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
Schuyler Erle
3bf34940ca
New images for the zoombar, plus an art directory to hold vector drawings, etc.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@274 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-22 21:03:14 +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
7c564bf17c
update tests for newly added events.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@265 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-22 16:20:24 +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
758ebee26e
update popups.html demo to changes from r252
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@253 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-22 11:46:53 +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
144da2ba73
Test case to show map with *lots* of markers. Seems pretty responsive
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@250 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-22 10:57:43 +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