Commit Graph

482 Commits

Author SHA1 Message Date
Tom Payne e6eb401e36 Add missing goog.requires 2013-01-30 23:47:13 +01:00
Tom Payne 6e247d9331 Rename modules for support detection 2013-01-30 22:48:03 +01:00
Tom Payne b6f856f962 Remove unused goog.requires 2013-01-30 22:48:03 +01:00
Bruno Binet 39cbba3eb7 Add a frameState property to ol.MapBrowserEvent
so that we will be able to retrieve the current center of the view2d from the
framestate in the dragpan interaction.
2013-01-29 13:00:02 +01:00
Bruno Binet d54864695d Add a removePreRenderFunction method to ol.Map
This will remove the pre-render function from preRenderFunctions_ array if
found.
2013-01-29 12:56:15 +01:00
Bruno Binet 7d0b4c757e Activate kinetic effect by default 2013-01-29 12:39:52 +01:00
Frederic Junod a980de7830 Listen to all ol.MapBrowserEvent events 2013-01-29 11:29:27 +01:00
Éric Lemoine 713828d953 Change a comma to a semi-colon (thanks @bbinet) 2013-01-29 10:33:35 +01:00
Frederic Junod 43fe004917 Add a comment about msTouchAction css on viewport 2013-01-25 17:37:04 +01:00
Frederic Junod 9c794d8b00 Direct all pointer events to js code (IE pointer events).
see: http://msdn.microsoft.com/en-us/library/ie/hh673557(v=vs.85).aspx
2013-01-25 16:38:45 +01:00
Éric Lemoine 4a64837ba1 Make map handle background color changes 2013-01-24 22:31:08 +01:00
Éric Lemoine 2a28b7c699 Add comment 2013-01-24 22:31:08 +01:00
Éric Lemoine 15898b559b Make map handle size changes 2013-01-24 22:31:08 +01:00
Éric Lemoine 71a462cd54 Make map handle view changes
With the frameState stuff the map renderer need not listen to view changes. The map renderer receives orders from the map. These orders are renderFrame_ calls with frameState objects representing the current state.
2013-01-24 22:31:06 +01:00
Tom Payne 4ab09d6df2 Merge pull request #140 from twpayne/array-clean-ups
Array clean ups
2013-01-22 06:00:04 -08:00
Tom Payne f2164e5028 Export map.getLayers 2013-01-22 13:08:40 +01:00
Frederic Junod c836c8d9c4 Add ol.Map.getRenderer function 2013-01-21 15:08:15 +01:00
Tom Payne f1b11866fd Remove dependency on goog.array 2013-01-21 14:20:12 +01:00
Tom Payne 3967e17366 Use in-place filtering for pre-render functions 2013-01-21 14:20:12 +01:00
Tom Payne d76db2005f Use for loop for iterating over layers 2013-01-21 14:20:12 +01:00
Tom Payne 7229428741 Use in-place filtering for post-render functions 2013-01-21 14:20:11 +01:00
Éric Lemoine 2f539bf3be Merge pull request #126 from openlayers/tilequeue
Tile queue requires optimizing
2013-01-21 03:41:18 -08:00
Tom Payne a8dc810696 Use Infinity rather than undefined to drop tiles 2013-01-19 15:24:02 +01:00
Tom Payne 3ec2014ad1 Rename tileUsage to usedTiles 2013-01-19 15:03:01 +01:00
Tom Payne 1c524caae6 Discard unwanted tiles from tile queue 2013-01-19 15:03:01 +01:00
Tom Payne 7babfebef9 Set frame state immediately after rendering 2013-01-19 14:50:18 +01:00
Tom Payne 9cf314fd64 Sort object properties 2013-01-19 14:50:14 +01:00
Tom Payne f3978d200f Use Alt+Shift to rotate by default, refs #21 2013-01-18 14:09:32 +01:00
Tim Schaub 10672ad303 Standardizing color ranges (see #129) 2013-01-17 14:19:50 -07:00
Tim Schaub 141e5aa9fc Trim search string before use
The `window.location.search` string includes the "?" symbol.  Without this change, `createFromQueryData` only works if the "renderer" parameter is not in first position (see 4037bafc45).
2013-01-17 13:05:47 -07:00
Tom Payne 54327fb750 Add canvas renderer 2013-01-17 13:54:52 +01:00
Tom Payne 9fbabc3696 Refactor attribution control 2013-01-16 16:34:31 +01:00
Tom Payne 505987869e Fire postrender events 2013-01-15 18:38:12 +01:00
Tom Payne 4037bafc45 Add function to chose renderer from query string 2013-01-15 10:26:16 +01:00
Tom Payne 183aac90fa Remove unused requires 2013-01-14 20:52:47 +01:00
Tom Payne 9764e76975 Move pixel/coordinate matrices into frame state, remove canRotate 2013-01-14 12:46:39 +01:00
Tom Payne 5d31a44c12 Implement view hints architecture 2013-01-14 12:35:53 +01:00
Tom Payne 52df441cf8 Add tile queue 2013-01-11 16:18:07 +01:00
Tom Payne 2a6cc1ae70 Flag 2D-specific code, thanks @elemoine 2013-01-11 16:06:30 +01:00
Tom Payne f00e299039 Register post-render functions instead of using an event 2013-01-11 15:49:21 +01:00
Tom Payne f3cace499c Implement frame state and animation architecture 2013-01-11 15:48:24 +01:00
Éric Lemoine 927cffb2b7 Add view abstraction 2013-01-09 14:03:16 +01:00
Tom Payne 80e4c46805 Fix non-view-related typecasts in ol.Map 2013-01-07 13:19:00 +01:00
Tom Payne 756792b8db Pass time to render functions and rename them to renderFrame_ 2013-01-03 12:23:50 +01:00
Tom Payne 12099bab56 Implement @elemoine's requestRenderFrame architecture 2013-01-03 12:23:49 +01:00
ahocevar eb4a8683e2 Projection handling improvements
* The Map's private createProjection_ method is now a public
  method of the Projection. It is also used by TiledWMSSource
  to calculate the appropriate projection from the user
  configuration.
* ol.Projection.addProjection now adds the transformation for
  the source == target case. This makes it easy for the user
  to create custom projection maps without including proj4js and
  without adding a custom transformation, as long as the
  userProjection equals the projection.
* The TiledWMSSource now uses the same default resolutions as
  the map (i.e. the OSM resolutions)
* The modulo calculation for wrapping extents now works for all
  grid configurations, by not calculating the number of columns
  based on an assumption about the way the zoom levels relate to
  resolutions.
* The wms-custom-proj example now shows how to properly
  configure a custom resolution, i.e. by using the validity
  extent of the projection as its extent.
2012-10-31 13:17:58 +01:00
Tom Payne af872e25c3 Remove incorrect property export 2012-10-26 11:24:25 +02:00
Tom Payne 0392d898c3 Merge pull request #56 from twpayne/interaction-conditions
Abstract out key conditions for interactions, fixes #51, see also #54
2012-10-12 11:04:12 -07:00
Éric Lemoine 0b411ad69c Have disposeInternal call parent 2012-10-11 17:46:22 +02:00
Éric Lemoine dc491f9114 disposeInternal implementation for ol.Map 2012-10-10 20:24:18 +02:00