Schuyler Erle
db17be34f6
Change repo license to release license.
...
git-svn-id: http://svn.openlayers.org/tags/openlayers/release-2.4-rc1@3001 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-04-04 04:41:04 +00:00
crschmidt
16d543a41f
Add more resolutions to the list supported by Google, up to the current
...
maximum zoom of '19' (20 levels). Closes #613 .
git-svn-id: http://svn.openlayers.org/trunk/openlayers@2961 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-04-02 00:25:27 +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
9bae3e8848
Changes to Layer.Google and to default theme to move the GMaps chrome over to the lower left side to yield up the valuable lower right corner for our own stuff.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1659 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-10-06 17:28:01 +00:00
Schuyler Erle
f27cbc855f
Add CSS classes to GMaps Terms of Use and Copyright elements.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1658 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-10-06 17:18:29 +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
a1ca8ebd08
Move the branding/ToS stuff up to the event pane in Layer.Google. Fixes #185 . A big hurrah for the Uzmeister and his suggestion that solved this conundrum.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1614 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-10-05 20:46:58 +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
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
2f2dcf2f09
remove old dragging code from gmaps -- eventpane does all this for us
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1262 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-08-16 22:13:12 +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
crschmidt
6e14190463
Remove broken requires statement.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1232 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-08-16 13:22:55 +00:00
euzuro
634eb0afc8
small updates to Google layer and EventPane -- Google needs to @requires EventPane and not Layer, some minor stylistic changes to EventPane, updating tests so they will pass.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1211 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-08-15 12:25:39 +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
Schuyler Erle
8f33a633aa
Fixed Layer.Google to subclass Layer.EventPane. Still need to fix z-index of copyright divs.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1195 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-08-11 18:03:50 +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
94072f8dfe
update wiki link
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1051 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-08-02 18:11:11 +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
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
629e62b82b
protect google base layer functions from an uncentered gmaps object
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@949 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-07-16 16:41:54 +00:00
euzuro
e645fb03ac
update warning message to users
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@946 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-07-14 16:23:04 +00:00
euzuro
35aebd03fd
give the warning message a bit of padding
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@945 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-07-14 15:51:37 +00:00
euzuro
e5dbb97ef2
even if the wrong key is provided to gmaps, it still loads the GMap2 object. When you try to instantiate it, however, it errors. So we use a try statement and on error, we display the warning message. Nice
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@944 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-07-14 15:51:01 +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
6f17fbf54a
configure google zoom translation to return null if null passed in
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@920 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-07-07 17:00:34 +00:00
euzuro
b0d9a997c1
update comments
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@919 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-07-07 16:58:23 +00:00
euzuro
5769205acb
give google layer a destroy() function
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@917 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-07-07 16:05:14 +00:00
euzuro
517282baa4
if gmaps is unable to load, well then we will show the user some help
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@912 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-07-07 14:50:46 +00:00
euzuro
2897834520
tag fromLatLngToContainerPixel() function directly onto the GMap2 object. Cleaner code. Easier to distinguish where the hack is, and it is not completely separate of any OL code.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@911 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-07-07 13:20:33 +00:00
euzuro
10d55bd72a
remove document.write() call that loaded the gmaps script in google.js. from now on, the user is responsible for adding that script tag to his/her page. Add a test to make sure gmaps code base is loaded before trying to initialize new gmap2. update isBaseLayer() to return true only if gmaps is correctly loaded. finally, protect all methods if this.gmap is null, do nothing. update OpenLayers.js to now include Google.js and library.cfg to not exclude it.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@910 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-07-07 12:55:39 +00:00
euzuro
2e79e399b2
updated comment
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@836 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-30 01:12:03 +00:00
euzuro
aaa0555b7a
the case is never closed, and the sun never sets. this is old code that is no longer used.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@835 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-30 01:07:02 +00:00
euzuro
a02c0ea8b7
you wanted viewportpx from latlon? well, you got it mister. using a small and but ingenious hack by the astute dr. steven erle, we are able to fix the last remaining (famous last words) kink in the google layer. seems like it should be all a-o-k now. Changed the getLonLatFromViewPortPx() to use the Container as well. Case closed.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@834 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-30 01:04:10 +00:00
euzuro
afeb15b3e7
set defaults correctly
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@832 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-29 23:24:48 +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
c73291770c
cosmetic change. relic variable name from ve layer implementation
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@612 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-17 14:59:20 +00:00
euzuro
0978988638
first shot at getting gmaps working in openlayers.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@609 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-17 14:41:00 +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
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
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