Commit Graph

480 Commits

Author SHA1 Message Date
crschmidt
c20390c864 KaMap can't round. It works fine for degrees, but when you're working in inches, feet, meters, the rounding errors become quite significant.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@802 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-27 20:17:37 +00:00
crschmidt
6abc62718c aughhhh. This pains me, but it's in the spec. (Support ',' as a seperator for georss:point data.)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@793 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-27 12:53:50 +00:00
euzuro
f4342723e4 use bound's built in getCenter() function.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@790 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-27 10:47:48 +00:00
Schuyler Erle
fbbf1b317a Applied Corey Puffault's zoomToExtent() patch from #107.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@789 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-27 04:42:17 +00:00
Schuyler Erle
c92cd6d88a Pulled down bug fixes, example updates, etc. r717:r787 from source:/branches/openlayers/1.0.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@788 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-27 04:40:52 +00:00
crschmidt
067bbb5d75 Refactor GeoRSS Layer to support 'real' GeoRSS :) (geo:lat, geo:lon).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@783 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-27 04:04:41 +00:00
crschmidt
d7bb634cce Add GeoRSS layer and example. Only support for georss:point for the time being. Probably has a fair number of cases where it can fail, but it works for a first run, and the community can build from here :)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@778 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-27 03:35:55 +00:00
crschmidt
05025e97d0 Round the scale value. KaMap rounds internally, so adding extra precision here only breaks client-side caching.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@766 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-26 14:29:37 +00:00
crschmidt
a3e5944e4e KaMap layer now sublasses initTiles, to implement the kamap 0-based tiling scheme instead of the OpenLayers/WW -180,-90 method. This means that there are no longer any restrictions on using ka-Map with other layers! woohoo! You can use ka-map on top of WorldWind, or with another ka-map layer, even if it has differently sized tiles. yay!
git-svn-id: http://svn.openlayers.org/trunk/openlayers@764 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-26 13:54:14 +00:00
crschmidt
1912d4355c OpenLayers.Layer.KaMap is now working much better. The TIGER example which was just a hack before is now working properly, and there's an actual scale calculation being performed based on params passed into the constructor of 'units' and 'resolution', both of which are determined by the mapfile. The only limitation yet to be tackled is that maxResolution on the map must split the map up such that 0,0 is a tile corner. This requires subclassing more (or perhaps all) of the Layer.Grid functions, so I'm off to do that now.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@763 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-26 13:15:20 +00:00
crschmidt
e0c564c0e3 Add worldwind support to OpenLayers. To define a worldwind layer, you need a URL, a lzd (level zero degrees), a maxZoom level, and a param name 'T' to define the map you're pulling from.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@695 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-23 04:20:46 +00:00
crschmidt
891fdf7a38 'true', in quotes, not true. we're checking the value that's being passed through to the WMS server.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@683 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-22 19:11:09 +00:00
crschmidt
50babaeb34 Also pass the transparent param on to addTile in the column/row functions.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@682 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-22 19:10:44 +00:00
crschmidt
8e0793b191 Only draw transparent images if the tiles are transparent.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@681 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-22 19:02:33 +00:00
crschmidt
7584d12ae5 Turn off selecting in IE, so we don't end up selecting tiles while dragging a box.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@680 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-22 18:53:36 +00:00
crschmidt
2dc364f417 In IE, we use the image hack, so changing the img.src doesn't help.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@679 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-22 18:47:51 +00:00
crschmidt
cff8c06621 Convert Layer/UntiledWMS to Layer/WMS/Untiled. Update example. Update include list. Update exclude list for singlefile build.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@675 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-22 15:59:23 +00:00
crschmidt
6b28c78655 Make the UntiledWMS work better. This changes the API for an internal function (moveToNewExtent), but doesn't break any existing code.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@674 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-22 15:35:33 +00:00
crschmidt
17f955279d Commit an untiled WMS class, per discussion in #kamap. Partly this is a demonstration of how quick it can be to develop in OpenLayers.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@672 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-22 14:18:21 +00:00
crschmidt
d370a3c5f9 Safari: also known as Lint for Javascript!
git-svn-id: http://svn.openlayers.org/trunk/openlayers@671 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-22 12:40:11 +00:00
crschmidt
2a1ad38ce2 Bad Syntax. Was breaking Safari.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@670 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-22 12:39:29 +00:00
crschmidt
7791ab952e Fix for #69: "Non-visible layers suffer deficiencies when turned on." Add the layerContainer offset to the pixel location of the images, to place them in the map correctly.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@669 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-22 11:36:25 +00:00
crschmidt
8600f7d688 More work on KaMap layer. This TIGER demo looks good, but it's really broken underneath.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@666 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-22 10:47:43 +00:00
crschmidt
98ed96e4ec OpenLayers.Layer.KaMap, for displaying KaMap-tiles in OpenLayers. Currently specific to the example -- needs work on determining 'scale' from resolution. possibly just simple math. I'm not sure yet.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@665 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-21 21:49:31 +00:00
Schuyler Erle
bf6ad055df Renamed zoomExtent to zoomToFullExtent, added tests for it and for the new lonlat/px convenience functions.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@663 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-21 17:12:19 +00:00
Schuyler Erle
221aedebc6 Added convenience functions getLonLatFromPixel and getPixelFromLonLat; added some more jsdoc.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@662 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-21 17:04:16 +00:00
crschmidt
c8c780a941 Remove a temporary hack for layers setting their own div.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@661 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-21 16:48:34 +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
crschmidt
9b9a902ec0 Add additional fallback for Map.js if getDimensions doesn't work. I think this is essentially a 'special case' for our testing process, but it fixes it for this case.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@652 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-21 15:04:59 +00:00
euzuro
abb950a7c3 coding standards
git-svn-id: http://svn.openlayers.org/trunk/openlayers@651 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-21 14:32:27 +00:00
euzuro
705555f1f7 add concept of slideFactor to panzoom
git-svn-id: http://svn.openlayers.org/trunk/openlayers@650 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-21 14:31:34 +00:00
euzuro
61a93c8d38 add() method on lonlat does not modify actual lonlat, but rather creates new lonlat with the add affected. must therefore assign from return value.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@649 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-21 14:29:06 +00:00
euzuro
91e9c17c98 small fix - context was not correctly set to get the slide factor
git-svn-id: http://svn.openlayers.org/trunk/openlayers@648 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-21 14:06:21 +00:00
euzuro
82f40f8f3f commenting/JSDOC/coding standards
git-svn-id: http://svn.openlayers.org/trunk/openlayers@647 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-21 13:44:30 +00:00
euzuro
ee2b60ff6b allow user to set the slide factor in keyboarddefauls
git-svn-id: http://svn.openlayers.org/trunk/openlayers@646 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-21 13:09:17 +00:00
euzuro
1cca9fcde7 one last small optimisation / readability fix
git-svn-id: http://svn.openlayers.org/trunk/openlayers@645 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-21 13:05:50 +00:00
euzuro
3323a0e2a8 small code reorganization and bringing up to date with JSDOC and coding standards
git-svn-id: http://svn.openlayers.org/trunk/openlayers@644 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-21 13:03:00 +00:00
euzuro
e9bc79203b correct comment/JSDOC
git-svn-id: http://svn.openlayers.org/trunk/openlayers@643 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-21 12:48:44 +00:00
euzuro
823d2ddedd add comment regarding current handling of base layers
git-svn-id: http://svn.openlayers.org/trunk/openlayers@642 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-21 11:51:59 +00:00
euzuro
76156b7317 give Map the concept of a base layer
git-svn-id: http://svn.openlayers.org/trunk/openlayers@641 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-21 11:48:27 +00:00
Schuyler Erle
b6f7222282 Bug fix to map.updateSize for IE when size is a percentage. Calls Element.getDimensions from Prototype.js, which hopefully is the right thing to do. Fixes ticket #37.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@638 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-21 02:35:04 +00:00
euzuro
91a566ca61 the last of the screen -> viewPort changes
git-svn-id: http://svn.openlayers.org/trunk/openlayers@634 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-20 23:23:31 +00:00
euzuro
9a74fc1f7e update comment
git-svn-id: http://svn.openlayers.org/trunk/openlayers@633 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-20 23:08:10 +00:00
euzuro
33e84b6ff0 more screen->viewPort
git-svn-id: http://svn.openlayers.org/trunk/openlayers@632 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-20 23:07:30 +00:00
euzuro
adf91b1d10 again, change function name from ScreenPx to ViewPortPx
git-svn-id: http://svn.openlayers.org/trunk/openlayers@631 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-20 22:57:18 +00:00
euzuro
ed3c2a6f0b change function name from ScreenPx to ViewPortPx
git-svn-id: http://svn.openlayers.org/trunk/openlayers@630 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-20 22:51:55 +00:00
euzuro
7ebaf2a630 wms is not a base layer if it is transparent
git-svn-id: http://svn.openlayers.org/trunk/openlayers@629 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-20 22:31:44 +00:00
euzuro
8ef2cc58d5 these layers are never base layers
git-svn-id: http://svn.openlayers.org/trunk/openlayers@628 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-20 22:16:38 +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
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