Commit Graph

3365 Commits

Author SHA1 Message Date
ahocevar
fa1845693b Fixing a typo. 2011-12-07 16:38:07 +01:00
ahocevar
b6df3d871b It turns out we really want to retile sometimes.
The reason is that we want to avoid moveGriddedTiles to run through hundreds of cycles to shift tiles until we reach the new bounds. But containsBounds does not work if extents that cross the date line start on different worlds, so we use intersectsBounds where we can pass the world bounds to handle this case.
2011-12-07 15:55:22 +01:00
Frédéric Junod
6725ee1940 Merge pull request #95 from fredj/2708
getFeatureIdFromEvent return value. r=elemoine
2011-12-07 06:28:49 -08:00
ahocevar
f79520cf9d Don't set zoomOffset - maxResolution and numZoomLevels is enough. r=fredj (closes http://trac.osgeo.org/openlayers/ticket/3550) 2011-12-07 14:53:53 +01:00
fredj
03b8406746 Canvas.getFeatureIdFromEvent: return undefined instead of null 2011-12-07 12:08:04 +01:00
fredj
71fbfff02a return undefined instead of false from getFeatureIdFromEvent 2011-12-07 11:59:53 +01:00
fredj
d20802369f code simplification 2011-12-07 11:52:04 +01:00
fredj
315c37a075 getFeatureIdFromEvent returns a feature id or undefined, fix getFeatureIdFromEvent docstring 2011-12-07 11:50:58 +01:00
fredj
d715a94b0f remove double declaration
(yes, code duplication sucks)
2011-12-07 11:33:34 +01:00
fredj
9cfa5f562e Don't update the map size on 'movestart' 2011-12-07 09:40:54 +01:00
Frédéric Junod
63cdcaeaac Merge pull request #86 from fredj/addLayer-exception
Instead of throwing an exception, return false if the layer can't be added to the map. r=bbinet,tschaub
2011-12-07 00:33:26 -08:00
fredj
8c74e616df Remove undefined variables 2011-12-05 09:39:30 +01:00
Xavier Mamano
fb8a7a5adc Apply the patch:
9f1d0fd49b
2011-12-03 18:13:40 +01:00
ahocevar
08af94cf84 We never need to retile when the zoom didn't change. 2011-12-03 00:13:44 +01:00
ahocevar
84b30d3699 Don't rely on the bounds of the top-right tile.
When the grid crosses the dateline, the top-right tile is in a different world than the bottom-left one. Instead, use the grid size and tile width/height to calculate the top-right coordinate.
2011-12-03 00:05:26 +01:00
ahocevar
c15631ae3e Remove code that never gets called.
OpenLayers.Map has no wrapDateLine property.
2011-12-02 23:57:39 +01:00
fredj
1135c771b7 Instead of throwing an exception, return false if the layer can't be added to the map. 2011-12-01 16:13:35 +01:00
Tim Schaub
3844b91cd6 Avoiding closure compiler warnings.
These comments are not parsed by Natural Docs and result in unnecessary warnings from closure compiler.
2011-11-30 22:25:38 -08:00
ahocevar
c311aa69ea Default pixel tolerance of 2.
This avoids requests to be aborted during hover due to the cursor change caused in some browsers by applying the olCursorWait class.
2011-11-30 20:36:54 +01:00
fredj
6f78dc4c8f Remove call to deprecated events.addEventType function 2011-11-30 09:29:24 +01:00
Xavier Mamano
ec1a44a9f2 before instead of after 2011-11-29 18:29:47 +01:00
Frédéric Junod
e960c1929d Merge pull request #76 from fredj/surface-removal
Remove Geometry.Surface, r=tschaub
2011-11-28 07:50:56 -08:00
fredj
dc991e6f85 Remove Geometry.Surface 2011-11-28 12:41:47 +01:00
ahocevar
c3fa0875dc toString implementation for Filter.
If Format.CQL is not included in the build, toString from Object will be used.
2011-11-28 12:25:28 +01:00
fredj
250e686375 Layer.KaMap cleanup
Remove unused units and resolution properties
Simplify Grid.initialize call
2011-11-24 16:21:49 +01:00
Frédéric Junod
c3b7c06118 Merge pull request #72 from fredj/unneeded-initialize
Remove unneeded initialize functions, r=elemoine
2011-11-24 02:28:36 -08:00
fredj
3252fb134d Remove unneeded initialize functions 2011-11-24 09:17:27 +01:00
fredj
4cab9139f2 Remove unneeded requires 2011-11-24 08:59:55 +01:00
Frederic Junod
7f2c06c5b7 move Protocol.SQL into deprecated.js 2011-11-21 19:10:26 +01:00
Frederic Junod
8360ddefe3 Merge branch 'upstream-master' into gears 2011-11-21 18:54:48 +01:00
Frédéric Junod
2f802750a3 Merge pull request #65 from fredj/deprecated.js
move Layer.Yahoo and Layer.GML into deprecated.js r=tschaub
2011-11-21 09:40:31 -08:00
fredj
735f49cca0 move Protocol.SQL.Gears into deprecated.js 2011-11-21 12:23:05 +01:00
Xavier Mamano
d89819c3f2 #3580 ZoomBox: missing API documentation. 2011-11-20 12:25:01 +01:00
fredj
f0d93d1e85 Merge branch 'upstream-master' into deprecated.js 2011-11-18 13:51:19 +01:00
ahocevar
4b0e45b369 adding comment that the reproject option is deprecated and getBoundsFromLayer is defined in deprecated.js, as suggested by @elemoine. 2011-11-18 13:48:07 +01:00
ahocevar
4d8cd08b91 removing Lang.js and Tile.js dependencies, as suggested by @fredj. 2011-11-18 13:43:06 +01:00
fredj
b630840d83 move Layer.GML into deprecated.js 2011-11-18 13:23:49 +01:00
ahocevar
4f58ff0352 Removing getBoundsFromBaseLayer method.
This method is only needed when the deprecated reproject option is set to true.
2011-11-18 13:06:28 +01:00
fredj
c82ccb4781 Merge branch 'upstream-master' into deprecated.js 2011-11-18 12:14:45 +01:00
fredj
8d01fa6fd8 move Layer.Yahoo into deprecated.js 2011-11-18 12:13:41 +01:00
Frédéric Junod
f713360c67 Merge pull request #52 from fredj/deprecated.js
Move deprecated code into deprecated.js, r=ahocevar
2011-11-18 03:05:29 -08:00
fredj
a04df3e359 doc typo 2011-11-16 12:52:55 +01:00
fredj
6836f4dcdf Remove unneeded requires 2011-11-15 10:11:36 +01:00
fredj
1ed137bd0a move Layer.Grid.getGridBounds function into deprecated.js 2011-11-15 09:06:44 +01:00
ahocevar
0b39d32031 Don't let wrapDateLine maps be wider than one world width. 2011-11-14 17:49:41 +01:00
fredj
b056b19bf0 move Event.stop function into deprecated.js 2011-11-14 15:59:24 +01:00
fredj
3d0d2cbc4e move Layer.VirtualEarth function into deprecated.js 2011-11-14 15:52:39 +01:00
fredj
71f1f4701b move Layer.MultiMap function into deprecated.js 2011-11-14 15:34:04 +01:00
fredj
37de9273a7 move OpenLayers.Feature.WFS into deprecated.js. 2011-11-14 15:29:12 +01:00
Frederic Junod
9a3dc98458 Remove unneeded requires 2011-11-14 15:29:08 +01:00