euzuro
fb7466b1c2
coding standards -- lines longer than 79 characters. splay these out -- makes them more readable. all tests pass FF & ie6
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4010 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-24 11:03:58 +00:00
crschmidt
6194452b8a
Since John already went ahead and committed the main change, I'm just going
...
to finish this one up. All commits are in comments, so a review doesn't seem
strictly neccesary. This closes #918 and fixes all the copyrights that I could
find in the code.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3984 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-23 11:29:06 +00:00
crschmidt
c80818612c
Wehn the naturaldocs sandbox got merged, a small typo resulted in making
...
the VE Layer unusable: 'getMa' got dropped accidentally. (Yes, I'm a rebel,
I'm committing without a ticket, because this is obvious and I feel like it.)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3793 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-24 06:35:35 +00:00
euzuro
fd4d2918f1
fix for #853 - remove JSDOC comments from CLASS_NAME variables
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3787 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-23 15:09:09 +00:00
Tim Schaub
cc1b0269c9
#823 New class style. Instead of OldStyle = Class.create(); OldStyle.prototype = Class.inherit(Parent, prototype), we now use NewStyle = OpenLayers.Class(Parent, prototype). New style classes allow for backwards compatibility [you can use OldStyle = Class.create(); Class.inherit(NewStyle, prototype)]. The Class.create and Class.inherit functions are deprecated. Backwards compatibility will be removed at 3.0. Thanks Erik for the careful review.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3767 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-16 20:25:11 +00:00
crschmidt
3948913bfc
Merge all changes from the naturaldocs sandbox. This brings all the work that
...
has been done in the NaturalDocs branch back to trunk. Thanks to everyone who
helped out in making this happen. (I could list people, but the list would
be long, and I'm already mentally on vacation.)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3545 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-06-29 15:59:20 +00:00
crschmidt
786c2a20fb
Change files to point to repository-license. Part of build process will now
...
be to change the licensing terms in the final build.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1721 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-10-24 18:16:39 +00:00
crschmidt
69b66e2100
Patch layers which have had wiki page name changes. Patch from Erik, closes
...
#363 . Request for pullup to 2.2 release.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1713 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-10-21 16:06:27 +00:00
crschmidt
7c2a8a0cab
The OpenLayers server threw a disk, and clobbered another, resulting in a loss
...
of data up to our last backup. In the previous subversion repository, this was
r1694->r1777. I'm sorry to all those of you who might have checked out that
code, as this will surely cause problems for you. We're currently working to
figure out what went wrong, and how to prevent it in the future.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1695 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-10-13 20:41:21 +00:00
Schuyler Erle
95ec8bdc82
Update Layer classes to use new Class.create/inherit functions.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1649 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-10-06 15:33:29 +00:00
Schuyler Erle
67ced536c0
Merged r1559:r1587 from source:/sandbox/crschmidt/noprototype. OpenLayers is now Prototype-free(tm).
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1588 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-10-05 14:50:47 +00:00
euzuro
510ab8561c
add a new property to layer.js called 'visibility' which we now need to store instead of reading directly from the visiblity of the div itself, since the div might be hidden, but only because it is out of range. we thus add a new method on layer called inRange() which returns whether or not the layer's max/min resolution settings allow it to be displayed at the current map's resolution. to make sure that min/max resolution, scale, etc are set for *all* layers, we remove the if statement limiting the running of initResolution() to only baselayers, and we add code at the end of that function that, once the resolutions array has been calculated, then goes back and sets min/max scale and resolution. now what we have to do is every time moveTo() is called on a layer, if the zoom has changed, then we must check if the layer is inRange() and update the display accordingly. on that same note, the layerswitcher must now be attentive to these changes, so we set it to redraw every time the zoom changes. in the layerswitcher code, we now add special code to disable a layer if it is out of range. must add the superclass call to moveTo() for all of the layers to ensure this code is executed for all. update test.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1577 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-10-05 04:20:16 +00:00
euzuro
0adeb2670d
changing 'minor' parameter name to 'dragging' for consistency
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1538 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-10-03 04:35:04 +00:00
euzuro
890b2a6ffc
allow VE to specify map type. fix for #273 . update ve.html example to show how
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1526 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-10-02 21:48:21 +00:00
euzuro
f582775d11
- Removed unnecessary accessors from OpenLayers.Layer: getProjection(),
...
getMaxExtent(), getMaxResolution(), and getNumZoomLevels(). They were just
wrapping around the properties. better to just access the property directly.
Needed to update for these removals in many different files.
- Improved initResolutions() functionality. It is now I believe both thorough
and complete. The only exception is that we should maybe allow a way for
the user to set up resolutions[] array using only minResolution and
numZoomLevels instead of only maxResolution and numZoomLevels... but I'm not
really sure anyone would ever really want to use that. And at any rate, I
don't know the math for how to do it. I'm sure schuyler or Dr. 5 would.
Oh. for a summary of how initResolutions works, see:
http://trac.openlayers.org/wiki/SettingZoomLevels
- Move getResolution(), initResolutions() out of HTTPRequest and into Layer. On
thinking this through (and trying to write documentation), I realized that
the real, true, GENERIC case for a layer will be using this awesome
resolutions[] array that allows for setting number of zoom levels, default
max resolutions, special scale arrays, etc.
- Updated code for getZoomForExtent() to work with resolutions[] array, instead
of using the the log 2 equation.
- Move standard getZoomForExtent() and getExtent() out of Grid and into
Layer. Like above, there is no reason for these methods to be found so far
down in the food chain. They are part of the generic calculations for
generic layers, so they belong in Layer.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1379 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-08-26 02:51:38 +00:00
crschmidt
104e509eb9
Merge 2.0 branch to trunk.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1369 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-08-25 18:17:06 +00:00
euzuro
1393fb43f8
put @requires statements inside JSDOC comment block
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1235 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-08-16 14:50:34 +00:00
crschmidt
07751a7206
Fix @require: to @requires
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1233 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-08-16 13:27:56 +00:00
euzuro
7e312bf596
if zoom hasnt changed, use PanToLatLong() instead of setCenter()
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1231 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-08-16 05:59:37 +00:00
euzuro
208957ade6
there has never been a VELatLongBounds... at least not that we know of. this code was just brought over from google.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1230 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-08-16 05:49:07 +00:00
euzuro
c7cb7744e7
if we are going subclass from EventPane, then there is no need to bother with catching VE events...
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1229 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-08-16 05:48:09 +00:00
crschmidt
9984c776de
Since VirtualEarth doesn't understand bounds at all, this function didn't work.
...
This is not an ideal situation, becauuse it's not really 100% correct for a
mercator projection, but it does cause things to work.
It seems that for some reason, the EventPane isn't actually catching all the
move events -- this seems to be what is causing the slow dragging. I'm not
sure of the reason for this, but maybe Erik or someone else will be able to
offer hints. I could also just be wrong ;) I just know it's slow, really.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1208 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-08-15 02:15:03 +00:00
Schuyler Erle
846a11a004
altered VirtualEarth to subclass EventPane.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1207 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-08-15 01:48:55 +00:00
euzuro
c1b8c8dd60
change the '@require:' to '@requires' so as to be compatible with JSDOC standards. put these directly inside the class definition comment block. update script to suggest this and update all source files to follow pattern. Caught a missing @requires in the EventPane.js file
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1206 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-08-14 23:05:05 +00:00
euzuro
f65ea55fa3
str -> String
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1143 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-08-09 04:23:27 +00:00
euzuro
0332bd09ec
event -> Event
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1142 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-08-09 04:21:29 +00:00
euzuro
f3a072b151
new layerswitcher, improved google layer, boxes layer, grid fix
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1096 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-08-08 18:20:24 +00:00
euzuro
29aec75256
update wiki link
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1052 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-08-02 18:11:55 +00:00
euzuro
443f28dee8
change warning background color to darkblue. lets try to be consistent here
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1049 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-07-31 18:35:22 +00:00
euzuro
e08ab3371c
use built-in VE translation functions
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@973 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-07-18 16:43:34 +00:00
euzuro
fca63a4ffe
two changes I had to scour the net to find. First off, PixelToLatLong() does not take the arguments that the official SDK tell us it does. Thanks to Denis of ViaVirtualEarth.com for the workaround. Next, the olPix-vePix conversion, the actual mysterious undocumented 'Pixel' class appears to be Msn.VE.Pixel -- thanks to blogs.msdn.com/virtualearth for that one. if only things were a little more *open* we wouldnt have to hunt for things like this <exclamation>.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@955 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-07-16 18:49:39 +00:00
euzuro
500cc01778
rearrange loading structure to account for ve libraries not being loaded and for the mozilla match bug
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@954 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-07-16 18:18:29 +00:00
euzuro
54f37fe30a
oops. carryover from google.js copy :-(
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@952 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-07-16 17:07:44 +00:00
euzuro
d15d941d68
we now can remove the getExtent() function from Google.js and VirtualEarth.js
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@951 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-07-16 16:56:15 +00:00
euzuro
460446f558
actually don't have to use hacked functions afterall :-)
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@948 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-07-16 15:34:08 +00:00
euzuro
f013e9c2e5
removed auto-script loader from VirtualEarth.js, beginning adding accessor and translation functions so that it can be used as a base layer. still not complete.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@947 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-07-14 19:01:45 +00:00
euzuro
a52b1fc8f1
update moveTo() function to take the 'minor' argument
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@935 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-07-11 15:06:06 +00:00
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
bf9628ea39
set G-Y-M layers' isBaseLayer() to true
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@623 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-20 17:58:11 +00:00
euzuro
1df168849e
make sure vemap is loaded before trying to move it
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@606 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-17 12:06:06 +00:00
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
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