euzuro
ff0e83d0a0
bringing all changes from sandbox/euzuro/LayersReworking down into the trunk. this is a merge of r656:HEAD http://svn.openlayers.org/sandbox/euzuro/LayersReworking
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@806 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-27 23:16:26 +00:00
Schuyler Erle
ead31f6dc6
Added license headers to all JS source files.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@657 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-21 15:22:48 +00:00
euzuro
b2ca284f9b
add isBaseLayer() function to Layer
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@622 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-20 17:53:30 +00:00
euzuro
4c6b232bd2
coding standards / JSDOC
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@621 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-20 17:47:26 +00:00
euzuro
7e6b3b2a34
if the layer has a map property, remove it from the map before destroying.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@539 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-07 16:00:44 +00:00
euzuro
e53e339c09
make setting the map a function call. this way we can intercept and tag on event handlers.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@528 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-06 15:50:15 +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
40cb75ca27
only jolt layer if we are setting it to visible (and if it has its 'map' property set.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@462 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-29 19:54:55 +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
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
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
c59e66f167
fixing bug introduced with [179]. basically, the Layer constructor should not be making new divs when it is initialized by a subclass. that was the point of [179]. the problem is that because of the way Layer.Grid is making the call to Layer's initialize() -- createing a new arguments array regardless of the orginal (ie although name is void, it nonetheless creates a new array with one element, a void element) well so then when init gets called it thinks it does have arguments. The real god's truth here is that we need a better way than if (arguments.length > 0) to distinguish between actual object creation and the creation of the classes.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@185 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-19 17:34:16 +00:00
euzuro
9b638d91c6
coordinate method calling of subclasses
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@179 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-19 15:05:39 +00:00
euzuro
db1c5afc7b
found and noted unused variable
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@39 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-16 17:27:52 +00:00
euzuro
39622d5676
JSAN
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@38 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-16 17:26:53 +00:00
euzuro
27f2842519
removed 'status' variable. no reason to duplicate the storage of visibility when it can always be read directly from the layer's div.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@37 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-16 17:25:12 +00:00
crschmidt
54c0403850
add LayerSwitcher control. Currently, when added, this will simply loop through all the map layers, display a div (with text in it) which allows you tu turn the layer on or off. Layer visibility is a new concept in Layer.js, including a getter and setter, which uses the style.visibility prop to change the status of the layer.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@31 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-14 02:44:49 +00:00
crschmidt
46035298a5
Begin work on Google Maps Layer. In order to create this layer, layer div creation has been moved into Layer.js, and the div that is created is then slotted into the right place by the map.addLayer function. (This is so that, at layer creation time, a div is available). However, it seems like Google Maps does not know how large the div is for reasons I don't yet understand, and there'se also the fact that our zoom levels differ from Google's at the moment. But it's getting there.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@29 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-13 16:11:52 +00:00
Schuyler Erle
04ba28f5a4
Revised directory structure (js/ -> lib/, test/ -> tests/) to match JSAN distribution standards, as documented at http://www.openjsan.org/documentation/dists.html .
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-12 21:15:53 +00:00