Commit Graph

407 Commits

Author SHA1 Message Date
Peter Robins
bcba6bb0fd Map: make options.center compatible with permalink 2012-03-03 17:06:14 +00:00
tschaub
4e9701caa8 Making map construction work with permalink.
If a map is configured with a permalink control and a center, the permalink control tries to work with the map center before setCenter is called.  This sequence assumes that the map center will already be a LonLat.  This fails if the map is constructed with a coordinate array.  Safer move is to convert center to LonLat before controls are added.
2012-03-01 13:47:42 -07:00
fredj
f3c48d6963 Store the original map options into 'options' property 2012-02-28 10:07:59 +01:00
Peter Robins
27e5aaf8f0 Map: check default controls are in build 2012-02-25 17:06:30 +00:00
tschaub
977c334fa3 Doc cleanup. 2012-02-16 10:41:05 -07:00
tschaub
2b5ade2dde Adding back events documentation.
When the list of event types became unconstrained in 501b42228a, we lost the documentation for events that are triggered.  This change adds the list of events triggered to the API docs for events properties.
2012-02-16 10:36:34 -07:00
ahocevar
262e2d5bc0 Calculating maxResolution instead of having it in defaults. 2012-02-15 21:09:39 +01:00
ahocevar
11966d231f New OpenLayers.Projection.defaults property.
This allows us to simplify the map and layer configuration, because now the projection also defines defaults for maxExtent, maxResolution and units.
This change also adds transforms for SRS aliases for EPSG:4326 and centralizes axis order information in OpenLayers.Projection.defaults.
2012-02-15 11:09:55 +01:00
Bart van den Eijnden
e9ffef03c7 create APIMethod for obtaining the view port, this is needed by GeoExt to append the map panel items there so that they don't interfere with the zoombox for example 2012-02-09 10:33:24 +01:00
ahocevar
abdd3a2e5b Making sure that new base layer becomes visible.
The new base layer may previously have been out of range, in which case setVisibility(true) would do nothing if the layer was visible already. So we check if it was previously out of range, and redraw it if necessary.
2012-02-02 13:53:37 +01:00
ahocevar
05de2b5109 Don't let button controls interfer with handlers.
This change involves removal of the map's eventsDiv and introduces an OpenLayers.Events.buttonclick component that adds a buttonclick event which makes sure that only events that are not related to clicking a button propagate. This allows button controls to be on the map's viewPortDiv again.
2012-01-20 03:37:11 +01:00
fredj
42fcb70347 Coding standards: variable names to camel case 2012-01-16 09:20:05 +01:00
Frederic Junod
511784d530 Update OpenLayers.Map.{min,max}Px apidoc
OpenLayers.Pixel to simple javascript object.
2012-01-15 18:22:22 +01:00
Frederic Junod
0af2acddb5 Fix OpenLayers.Layer and OpenLayers.Map apidoc
'viewPortPx' parameter for OpenLayers.Layer.getLonLatFromViewPortPx
can be either a Pixel or a simple javascript object. 'lonlat'
parameter for OpenLayers.Layer.getViewPortPxFromLonLat can be either a
LonLat or a simple javascript object.

'px' parameter for OpenLayers.Map.getLonLatFromViewPortPx and
OpenLayers.Map.getLonLatFromPixel can be either a Pixel or a simple
javascript object.
2012-01-15 17:52:36 +01:00
fredj
2355f099be remove map.getSize call to avoid creating new instances 2012-01-14 14:11:25 +01:00
fredj
b900144ce3 remove map.getSize call to avoid creating new instances 2012-01-14 14:11:25 +01:00
fredj
69bc0fc772 replace map.minPx and map.maxPx with simple objects 2012-01-14 14:11:24 +01:00
fredj
8ef0ad8c17 replace Pixel argument with simple object (Map.getLonLatFromViewPortPx) 2012-01-14 14:11:24 +01:00
Xavier Mamano
5cbdd27706 Docs: Set many links as {<...>} 2012-01-12 20:03:40 +01:00
fredj
cbfb68f397 Change all 'Parameter:' to 'Parameters:' in documentation. Non functional change 2012-01-12 09:32:49 +01:00
tschaub
519bf9a50a Removing unused minX and maxX. 2012-01-03 10:28:25 -07:00
tschaub
b844a3b11b Happy New Year!
Updating copyright to 2012.
2012-01-03 09:01:10 -07:00
Xavier Mamano
52e550ea74 "controls" is a APIProperty of Map 2011-12-26 00:02:02 +01:00
ahocevar
9c50bb5c01 Don't set the new lonlat if the new zoom is not valid.
This avoids unwanted panning without zooming when using the mousewheel to zoom out on a wrapDateLine map (see #109).
2011-12-16 11:22:31 +01:00
fredj
9cfa5f562e Don't update the map size on 'movestart' 2011-12-07 09:40:54 +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
ahocevar
0b39d32031 Don't let wrapDateLine maps be wider than one world width. 2011-11-14 17:49:41 +01:00
tschaub
98ee7167c4 Allow use of array for bounds. 2011-10-26 15:40:40 -06:00
tschaub
75a1a8e119 Allow setting center from array. 2011-10-26 15:22:13 -06:00
tschaub
3e163910f7 Tweak maxExtent docs to link to restrictedExtent. 2011-10-25 17:20:12 -06:00
Tom MacWright
9af5126c31 Improve maxExtent documentation 2011-10-25 17:20:15 -04:00
Tim Schaub
6af8178452 Enforcing existing zoomToExtent behavior.
The Map.html and WrapDateLine.html tests that check zoomToExtent were failing with the changes to this method.  These test changes make the expectations more explicit.  It is inconsistent to call wrapDateLine only in zoomToExtent, but this is the minimum change to get the tests passing again.  It would be more consistent to call wrapDateLine in the setCenter sequence.
2011-10-11 21:14:07 -06:00
ahocevar
8c43c4537c Merge branch 'master' into 3526 2011-10-09 09:54:45 +02:00
Éric Lemoine
85d3e8d5e9 Merge branch 'master' into clientzoom 2011-10-07 13:36:58 +02:00
ahocevar
627f32ff39 Merge branch 'master' into 3526 2011-10-06 18:21:05 -04:00
Frédéric Junod
00e2e1bd59 Merge pull request #7 from fredj/3320
Replace OpenLayers.Console.error with exceptions. r=elemoine,bbinet (closes #3320)
2011-10-06 02:03:48 -07:00
ahocevar
91cd42bfe6 Removing unused image load error handling code. r=fredj (closes #3420) 2011-10-05 14:51:22 -04:00
Éric Lemoine
ded64c00d4 apply patch-3531-A0.diff from trac ticket #3531 2011-10-01 21:41:35 +02:00
ahocevar
b782df0849 Merge branch 'master' into 3526 2011-09-30 17:31:31 -06:00
ahocevar
d4fb441da8 removing unneeded code 2011-09-30 14:57:46 -06:00
ahocevar
0277eb1ed3 worldBounds option for containsLonLat.
This is basically the same enhancement we made for intersectsBounds, and we no longer have to do dateline shifting in other components to get proper containsLonLat results.
2011-09-29 13:38:40 -06:00
ahocevar
c53374c797 always start the map extent on the right of the dateline 2011-09-29 10:03:02 -06:00
fredj
6e9a3e4c13 don't translate error message and replace console log with exception 2011-09-20 15:21:16 +02:00
Frédéric Junod
501b42228a remove event type list from Events (lazy listener initialization) p=tschaub,me r=erilem (closes #2555)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12384 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-09-17 19:09:40 +00:00
Éric Lemoine
fe5b8a7a78 a grid layer may be moved while its grid hasn't been initialized yet, r=ahocevar (references #3458)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12236 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-11 13:21:04 +00:00
ahocevar
94c1c7906c reverting r12228 and r12185 (closes #3431)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12231 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-10 08:35:27 +00:00
ahocevar
cc5818d4c7 reverting r12185 (closes #3431)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12230 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-10 08:29:31 +00:00
ahocevar
fecc4d81b0 reverting r12228
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12229 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-10 08:28:47 +00:00
ahocevar
b0e2a0cc56 IE8 specific fix for opacity. r=erilem (closes #3431)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12228 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-08-10 08:04:53 +00:00
ahocevar
2809bc30b5 adjusting dx and dy instad of not moving the map at all when we reach the restrictedExtent. p=me,elemoine, r=elemoine (closes #3388)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12158 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-07-06 07:22:31 +00:00