ahocevar
f0ad48597f
No more percentage based positioning.
...
Client zoom now supports both over- and undersampling.
2012-08-21 13:57:11 +02:00
Bart van den Eijnden
7b4cb8e3f5
cleanup and always use window resize as suggested by @tonio
2012-08-17 11:36:03 +02:00
Bart van den Eijnden
3b9ce4ca2d
introduce new property on the Map called autoUpdateSize which lets applications take control of window resizing / device orientation changes if they want to
2012-08-17 10:13:04 +02:00
Bart van den Eijnden
2843a18602
Revert "fix issue with orientation changes on mobile devices (tested on Motorola Xoom 2 with Android 3.2.2 in the stock browser)"
...
This reverts commit 39a6d7d8ef .
2012-08-16 16:35:21 +02:00
Bart van den Eijnden
39a6d7d8ef
fix issue with orientation changes on mobile devices (tested on Motorola Xoom 2 with Android 3.2.2 in the stock browser)
2012-08-16 14:21:36 +02:00
ahocevar
032df4b90a
Adding a getMinZoom API method.
...
This can be used by zoom slider controls, e.g. the GeoExt.ZoomSlider. Note that adjustZoom now also respects the map's fractionalZoom setting.
2012-06-13 21:37:59 +02:00
ahocevar
7141d237d9
Create a new reliable updatesize event.
...
The resize event is not fired in all browsers. What we actually need is an event that is called every time the updateSize method is called.
2012-06-13 21:36:17 +02:00
Éric Lemoine
12b8166743
Merge pull request #410 from probins/fixzoom
...
Fix Map so zoomChanged when zoom is constructor option
2012-05-26 09:32:26 -07:00
Éric Lemoine
2608a0ebe7
fix resize handling in IE 9 and better (refs #449 )
2012-05-04 14:28:12 +02:00
Éric Lemoine
c6c1bf1f77
fix movestart, move, moveend sequence on pan with animate:false
2012-04-23 23:57:48 +02:00
Peter Robins
b672a58c35
Fix Map so zoomChanged when zoom is constructor option
2012-04-13 10:29:34 +01:00
Éric Lemoine
e0b93c2e45
The OpenLayers code is published under the 2-clause BSD license
2012-03-30 08:33:55 +02:00
Éric Lemoine
650df2a8f1
change copyright header in every OpenLayers js file
2012-03-29 22:14:56 +02:00
Peter Robins
720a815479
Improvements for projection docs
2012-03-27 14:07:58 +02:00
Antoine Abt
2b41c8926b
Merge pull request #321 from tonio/zoomdefault
...
Make Zoom control be default instead of PanZoom.
2012-03-19 00:50:53 -07:00
Bart van den Eijnden
a3874b8f97
do not cast to LonLat if center is null in Map moveTo
2012-03-15 16:53:22 +01:00
Antoine Abt
e50c44b63c
update doc for control fallback
2012-03-15 10:12:38 +01:00
Antoine Abt
a96c2da6c2
add PanZoom control if Zoom isn’t in build
2012-03-14 22:31:47 +01:00
Antoine Abt
b2727c88f2
make Zoom default instead of PanZoom
2012-03-14 20:25:07 +01:00
ahocevar
4434d195ea
Merge pull request #295 from probins/mapdocs
...
Improve docs for bounds/lonlat, Layer and Map
2012-03-08 09:11:30 -08:00
ahocevar
da3bbbe231
Merge pull request #293 from probins/defnav
...
Map: default controls should include TouchNavigation if present
2012-03-06 04:18:02 -08:00
Peter Robins
93028bbcf8
Map: defaults controls should include TouchNavigation if present
2012-03-06 11:47:27 +00:00
Peter Robins
e8af06e6ae
Improve docs for bounds/lonlat as array
2012-03-06 11:30:28 +00:00
Xavier Mamano
bfb379f349
Fix some problems in the documentation.
2012-03-05 11:43:09 +01:00
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