Commit Graph

16 Commits

Author SHA1 Message Date
crschmidt
7a3f9b8444 KaMap uses a different initTiles because it doesn't use the same starting
point for '0,0'. This meant that with the new initTiles change, we were
not adding enough buffer tiles around the kamap layers, so they would
display funkily. This fixes that issue.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@1156 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-08-09 13:38:59 +00:00
euzuro
f3d6fb8718 add JSDOC commenting and stub moveTo function in WFS tile
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1147 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-08-09 05:42:42 +00:00
crschmidt
0ba7961df4 Commit tile-reuse branch back to trunk. This branch offers numerous performance
improvements in the form of reduced memory use and lower element creating costs,
hopefully making the OpenLayers code more usable in internet explorer as well
as less of a memory hog in Firefox and other browsers. Additionally, a buffer
is available around the main map grid which allows tiles to be loaded outside
of the viewing area for faster dragging.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@1137 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-08-09 03:47:33 +00:00
euzuro
51ac2b4acf remove useless or duplicate functions from Util.js -- no more: Array prepend() append() -- use push() and unshift(). clear() and indexOf() both removed as they are duplicated in Prototype.js -- all instances replaced and tests updated.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1136 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-08-09 03:31:06 +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
crschmidt
c958f9f88a KaMap needs to reimplement initTiles because it uses 0-based indexing instead of lower-left corner indexing, which means that we need to have the tile.draw method also modified here to use this.alpha, and also add the options hash as a param. We should probably move resolution/units into the options param too?
git-svn-id: http://svn.openlayers.org/trunk/openlayers@842 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-30 15:49:48 +00:00
crschmidt
d2d3eb075f We round these values to four decimale places: This saves us on rounding errors on the client-side, which could theoretically increase our cache size when we hit them, and in the case of the left/top values, this also makes sure that we get the closest pixel value, not the integer of it -- this is important when we get around to requesting the tiles, since otherwise we end up a pixel off, and then we don't get our images back.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@821 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-28 12:38:05 +00:00
crschmidt
162d05cb25 Convert KaMap and WorldWind to be isBaseLayers, and change FullExtent to MaxExtent.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@813 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-27 23:51:01 +00:00
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
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
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
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