euzuro
ea732d4535
add requere statement for singlefile
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@602 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-15 17:29:39 +00:00
crschmidt
4b9445115b
Complete revert.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@598 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-15 17:12:20 +00:00
crschmidt
4ef444e821
Yeah, this didn't work out so well. This is neccesary code, but it doesn't work, and I can't figure out why. Moving out -- will work on this in a sandbox.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@597 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-15 17:07:45 +00:00
crschmidt
5cd7142e67
Remove left/right conditional aspects, since this is breaking somehow.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@596 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-15 17:06:16 +00:00
crschmidt
cd8fe2cc81
Remove console.log statement
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@595 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-15 17:03:43 +00:00
crschmidt
082133730e
Fix conditional.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@594 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-15 17:02:27 +00:00
crschmidt
747573cfad
When moving by long distances (whole screenfuls) via API setCenter calls, reinitialize the grid. This solves an 'infinite loop' like problem where if you jumped by a long way, where addColumn/addRow were simply looping for so long that the browser went unresponsive/broken. Fixes issue reported by NickH on users list as well.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@593 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-15 16:37:15 +00:00
euzuro
9ca4ca2cee
Adding implementation of Microsoft Virtual Earth layer.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@587 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-15 12:09:21 +00:00
euzuro
fc366b73fe
recommitting r574 - the bug was in the OpenLayers.Feature destroy() function, which was not checking to ensure a valid map setting.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@576 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-12 16:00:00 +00:00
euzuro
e3695d2223
rollback r574. though it was a valid patch, it is causing something else to break. Better to keep code functional. Will re-commit this patch when the error has been located.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@575 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-12 15:17:57 +00:00
euzuro
ba77d478b3
add destroy method which calls destroy() on both superclasses.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@574 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-12 15:06:12 +00:00
crschmidt
b0c86248e1
Change order of params: passed params should override existing params.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@559 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-08 17:11:36 +00:00
euzuro
6628d38dc5
on destroy(), go through and destroy() all of the features we have created.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@544 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-07 16:12:27 +00:00
euzuro
558c908f3c
coding standards
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@543 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-07 16:11:29 +00:00
euzuro
78964cf417
keep an array of the features we have created. this will allow us to later destroy() them when the time comes.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@542 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-07 16:10:32 +00:00
euzuro
e06b157090
when we destroy a markers layer, remove all of its tiles. do not, however, destroy them... because they were not created here.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@541 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-07 16:08:15 +00:00
euzuro
85b14a3c93
when we destroy a grid layer, destroy all of its tiles
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@540 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-07 16:07:26 +00:00
euzuro
8b7a22bc1f
dont reinvent the wheel. use Util.js's array enhancer remove() function
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@535 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-07 14:50:17 +00:00
euzuro
7cc874d26b
set the map variable when we add a marker to the markers layer
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@533 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-07 13:01:36 +00:00
euzuro
d4253603fb
add a removeMarker() function
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@519 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-05 16:57:06 +00:00
euzuro
d965444bea
add a default addTile() class to grid. this is only a placeholder, as it is to be implemented by subclasses.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@517 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-05 16:21:50 +00:00
euzuro
182a74d6bf
coding standards
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@516 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-05 16:20:59 +00:00
euzuro
c90a9e9f2b
move the draw() call out of the addTile() function and into the grid code.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@515 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-05 16:19:47 +00:00
euzuro
e0aa067cb6
remove 'projection' member from Layer. keep single instance in map
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@496 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-01 12:30:46 +00:00
euzuro
77c168462b
need to make WMS & WFS case-independent. I dont know why I chose to move them all to uppercase instead of lowercase, but I did. This required changing the test cases and the 'srs' property which is set in Grid. Personally, I dont think that is the best place to set it, but so be it jedi. As long as I have the mic, i'd add that having 'projection' stored in both map and layer objects seems a bit redundant as well.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@493 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-01 11:54:31 +00:00
euzuro
aa4d877688
add definition/instantiation protection for if anyone ever wants to subclass off of WMS.js
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@492 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-01 11:14:29 +00:00
euzuro
77c4cc2a8d
protect for subclassing
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@471 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-30 17:54:11 +00:00
crschmidt
df375e7d29
This broke more than it fixed. Putting it back, and filing a bug on this issue.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@465 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-30 05:52:13 +00:00
crschmidt
bd0881d56b
If a layer is not visible when a zoomlevel changes, and the map view is then dragged, the map view will not be filled with tiles by the inittiles call. Always make sure that we fill the view, even if we just init-tiles'd.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@464 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-30 05:50:14 +00:00
crschmidt
1d1452da61
r439@creusa: crschmidt | 2006-05-29 13:32:54 -0400
...
Change Layer.js to call a moveTo function after visibility changes: This allows us to implement #56 . Layer/Grid.js now has code which shows how to have a layer which doesn't load when it's not visible: This code will be dependant on the layers, so this has to be implemented per class. However, classes like markers suffer very little performance cost for drawing, so Layer.Grid is the most important place for this improvement.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@458 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-29 19:18:29 +00:00
euzuro
fd184a3903
little bitta JSDOC
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@457 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-29 18:27:24 +00:00
euzuro
82839000d6
add 'selectedFeature' member to Layer.Text so that when the user clicks a second time on the same marker, the popup disappears.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@456 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-29 18:25:56 +00:00
euzuro
8a21a1dba4
only set popup content if values are defined
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@455 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-29 18:20:41 +00:00
euzuro
71df3e08fa
update text layer to new paradigm
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@452 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-29 13:59:06 +00:00
euzuro
acb8dadd71
correcting comment
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@445 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-29 11:53:29 +00:00
crschmidt
82d01c73cc
Working text layer with popups! woohoo! parseText suffered a reindentation, so not as much changed here as it looks like.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@424 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-27 13:11:22 +00:00
euzuro
da27fafa98
give WFS a featureClass and have it be set in the constructor
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@406 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-26 17:56:46 +00:00
euzuro
ef37b10ef7
pass the position in as parameter on new tile creation. remove unnecessary setPosition() function, as tiles no longer really get moved. they get drawn in their div and then the div moves around. no need to make that any more complicated. update tests for that. Also, finish renaming 'grid' to 'layer' (from r369).
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@390 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-26 02:56:49 +00:00
crschmidt
fedfaea0bf
Continued work on Layer.Text, implementing popups. Still has closure issues.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@375 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-25 23:08:14 +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
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
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
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
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
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
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