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
|
b84b3763a6
|
remove fixed layers from the viewport, not the layercontainer
git-svn-id: http://svn.openlayers.org/trunk/openlayers@916 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-07-07 16:04:32 +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
|
3b1545eadc
|
if we cant translate our lonlat to px, then dont try to draw.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@909 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-07-07 12:22:01 +00:00 |
|
euzuro
|
d4587b06c0
|
make sure grid is set before trying to reinit tiles
git-svn-id: http://svn.openlayers.org/trunk/openlayers@908 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-07-06 17:08:49 +00:00 |
|
euzuro
|
a6d4a42058
|
add a destroy() function and a clone() function -- they are mostly empty but they are there for people to add on. Also added a check to make sure that a grid has been loaded before trying to re-init tiles after a mergeParams. added extensive tests.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@907 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-07-06 17:07:51 +00:00 |
|
euzuro
|
0144ee66ab
|
fix the require
git-svn-id: http://svn.openlayers.org/trunk/openlayers@905 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-07-06 15:39:10 +00:00 |
|
euzuro
|
19adc2b155
|
require httprequest, not layer
git-svn-id: http://svn.openlayers.org/trunk/openlayers@904 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-07-06 15:27:03 +00:00 |
|
euzuro
|
aa30c9cae4
|
switch order of superclass.clone() (as in r901). then make sure that tileSize gets copied using copyOf(), and that the reference to the old grid does not get carried over.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@902 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-07-06 13:03:27 +00:00 |
|
euzuro
|
6b8bde0ff4
|
switch around order of call to superclass.clone() and the setting of noninit/nonsimple vars. that needs to be done *afterwards*. there is no functional difference in this commit -- it is only for good precedence.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@901 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-07-06 13:00:24 +00:00 |
|
euzuro
|
c13f7f5d4d
|
copy the actual tileSize object, not just the reference.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@900 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-07-06 12:47:09 +00:00 |
|
euzuro
|
3d52b3e4c5
|
nullify all Grid-specific values. just for good measure
git-svn-id: http://svn.openlayers.org/trunk/openlayers@899 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-07-06 12:29:45 +00:00 |
|
euzuro
|
7f5ea40aca
|
change function to use bl / tr
git-svn-id: http://svn.openlayers.org/trunk/openlayers@897 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-07-06 11:59:39 +00:00 |
|
euzuro
|
7b80623c5c
|
update comment
git-svn-id: http://svn.openlayers.org/trunk/openlayers@896 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-07-06 10:46:57 +00:00 |
|
euzuro
|
986eaaf7a4
|
add hook to trigger the drawing of a layer upon addition to the map (assuming a center has been set)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@895 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-07-06 02:20:06 +00:00 |
|
euzuro
|
90933052aa
|
give Grid a clone() function.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@894 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-07-06 02:19:04 +00:00 |
|
euzuro
|
8c6972bb06
|
uberminor change - spacing/alignment in jsdoc comments
git-svn-id: http://svn.openlayers.org/trunk/openlayers@893 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-07-06 02:05:24 +00:00 |
|
euzuro
|
43e1788f6f
|
coding standards - no multiple returns
git-svn-id: http://svn.openlayers.org/trunk/openlayers@892 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-07-06 02:02:03 +00:00 |
|
euzuro
|
24503103b3
|
rearranging order of some functions, marking some of them private
git-svn-id: http://svn.openlayers.org/trunk/openlayers@891 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-07-06 01:57:53 +00:00 |
|
euzuro
|
f14a6049c1
|
coding standards for Grid.js
git-svn-id: http://svn.openlayers.org/trunk/openlayers@890 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-07-06 01:51:14 +00:00 |
|
euzuro
|
353c7b810d
|
jsdoc Grid.js
git-svn-id: http://svn.openlayers.org/trunk/openlayers@889 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-07-06 01:39:19 +00:00 |
|
euzuro
|
b848e824d7
|
modify Grid to use HTTPRequest, update WMS & WFS with their necessary specifications -- capitalizing all parameters and adding SRS param from getProjection()
git-svn-id: http://svn.openlayers.org/trunk/openlayers@888 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-07-06 01:28:48 +00:00 |
|
euzuro
|
5debdb69ec
|
make sure clone() of a layer does not copy the reference in the 'map' property. that should always be null as a cloned layer will still need to be added to the map via map.addLayer()
git-svn-id: http://svn.openlayers.org/trunk/openlayers@887 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-07-06 01:02:02 +00:00 |
|
euzuro
|
4182cc1955
|
adding new HTTPRequest class that adds a 'url' and 'params' properties to a Layer, and gives a getFullRequestString() function. Thorough tests.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@886 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-07-06 00:32:11 +00:00 |
|
euzuro
|
96a32e8fb0
|
make a safe copy of options on initialization, utilize applyDefaults() on clone to pick up stray addons. dont need the if in addOptions, as extend can safely handle a null source
git-svn-id: http://svn.openlayers.org/trunk/openlayers@884 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-07-05 15:31:08 +00:00 |
|
euzuro
|
23c2ea1c04
|
set all properties of layer to null on destroy. add test.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@883 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-07-04 23:55:34 +00:00 |
|
euzuro
|
63e0b37c67
|
lets have clone() just take no arguments and return an exact copy. then we can add modify functions that can be used to set the particular things the user wants changed, and s/he can do it him/herself. also a change here is that layer.options will always be initialized, never null.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@882 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-07-04 17:48:50 +00:00 |
|
euzuro
|
199ad05b5c
|
readability, setting precedent.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@881 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-07-04 17:00:52 +00:00 |
|
euzuro
|
9cb9f6200c
|
fix class name. coding standards
git-svn-id: http://svn.openlayers.org/trunk/openlayers@880 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-07-04 16:48:09 +00:00 |
|
euzuro
|
f528178e53
|
add clone() method to Layer class, add test.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@879 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-07-04 16:32:08 +00:00 |
|
euzuro
|
9149468971
|
store a reference to the options. this will be used for cloning.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@878 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-07-04 15:49:05 +00:00 |
|
euzuro
|
718d84d6d2
|
when cloning an icon, set the calculateOffset() function too, if it exists.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@877 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-07-04 15:30:11 +00:00 |
|
euzuro
|
4ba3a290b8
|
change these alerts so as not to confuse ourselves when grepping for alerts to remove debugging code. :-)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@876 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-07-04 14:02:02 +00:00 |
|
euzuro
|
076632122b
|
update triggerEvent() so that it doesnt bomb if user tries to trigger a non-enabled event. Added thorough testing.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@875 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-07-04 13:54:04 +00:00 |
|
euzuro
|
56472f15a0
|
protect unregister() from someone trying to unregister an un-enabled event. total extreme case, but whatever. added test.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@873 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-07-04 13:23:11 +00:00 |
|
euzuro
|
83eb0e1b34
|
do not let users register on an event that has not been specifically enabled at initialize. add test.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@872 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-07-04 13:18:16 +00:00 |
|
euzuro
|
585ec9e192
|
fix remove() function and add test
git-svn-id: http://svn.openlayers.org/trunk/openlayers@871 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-07-04 13:13:41 +00:00 |
|
euzuro
|
abac8a5d44
|
fixed functionality of unregister() function, added ability to pass null value for obj. Added tests.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@870 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-07-04 12:57:34 +00:00 |
|
euzuro
|
7d6f4dea78
|
changing functionality of Events.register(). Now if a null callback is passed in, no action is taken. If a null *obj* is passed in, however, the obj used is this.object (the Events Object's related object). Added tests to make sure this works.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@869 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-07-04 12:44:29 +00:00 |
|
euzuro
|
e59c5e08f3
|
once property is set, use it instead of the argument.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@867 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-07-04 11:58:38 +00:00 |
|
euzuro
|
10cbef9274
|
since we can technically register events for any domelement, there is no reason this variable should be named 'div'. Change it to 'element' and update its use everywhere.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@866 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-07-04 11:57:18 +00:00 |
|
euzuro
|
994e00ad20
|
add more complete comment to register function, sort of explaining binding.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@865 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-07-04 11:42:20 +00:00 |
|
euzuro
|
5544bbf134
|
adding commenting/readability to initialize()
git-svn-id: http://svn.openlayers.org/trunk/openlayers@864 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-07-04 11:25:54 +00:00 |
|
euzuro
|
1301102b1a
|
adding commenting/readability to triggerEvent()
git-svn-id: http://svn.openlayers.org/trunk/openlayers@863 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-07-04 11:18:06 +00:00 |
|
euzuro
|
9746ac23fe
|
adding comments, coding standards, jsdoc
git-svn-id: http://svn.openlayers.org/trunk/openlayers@862 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-07-04 11:10:27 +00:00 |
|
euzuro
|
2bea4fed77
|
jsdoc
git-svn-id: http://svn.openlayers.org/trunk/openlayers@861 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-07-04 10:34:15 +00:00 |
|
euzuro
|
397b4cc7ba
|
hack to catch as best as possible the resize event in both mozilla and IE. we cant catch the actual resize on the div in IE, so we do that. in mozilla the best we can do is catch the resize of the window. so that is what we do.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@860 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-07-03 20:08:02 +00:00 |
|
euzuro
|
65ae34d4e7
|
add contains() function to string library. added tests too.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@859 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-07-03 19:54:00 +00:00 |
|