Commit Graph

2475 Commits

Author SHA1 Message Date
Tim Schaub 1a63bf078f Basic vector source and layer
The vector source maintains a cache of features.  These are indexed by geometry type in anticipation of the renderer's needs.
2013-01-21 17:59:09 -07:00
Tim Schaub 9543ce4d4a Initial filter package, geometry type filtering only for now 2013-01-21 17:57:12 -07:00
Tim Schaub 89bc69ccc1 Types for rings and mixed collections 2013-01-21 17:56:12 -07:00
Tim Schaub 6ef2184c83 Geometry type enumeration 2013-01-21 17:46:41 -07:00
Tim Schaub 0fad23970c Disallowing mixed geometry collections for now 2013-01-21 14:46:45 -07:00
Tim Schaub 7ef127cfac Shorter name for ol.Feature 2013-01-21 14:46:02 -07:00
Tim Schaub b4d44f815f Add getBounds to geometry 2013-01-21 12:59:04 -07:00
Tim Schaub 216d30ddc1 Getting the nanometer precision we deserve with web mercator 2013-01-21 10:52:17 -07:00
Tim Schaub 3cf3ef629c Lint
Caught by `build.py precommit` not `build.py lint`.
2013-01-21 10:51:38 -07:00
Frédéric Junod 9969a64d81 Merge pull request #143 from fredj/get-renderer-canvas
Get renderer canvas
2013-01-21 07:09:18 -08:00
Tom Payne c0ef84fd5d Remove stale dependencies 2013-01-21 16:07:06 +01:00
ahocevar 300c1048bd Cache and bucket fixes 2013-01-21 15:56:35 +01:00
Frederic Junod 2f2ea373ca Add ol.renderer.Map.getCanvas function. Only valid with the canvas and webgl renderers 2013-01-21 15:18:18 +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
Tom Payne 386bb636bb Add missing dependencies on goog.array 2013-01-21 14:20:11 +01:00
ahocevar e060498fad Fixing compiler errors (mostly caused by typos) 2013-01-21 13:41:18 +01:00
Frédéric Junod a51cd3b9bd Merge pull request #139 from fredj/easing
Add new ol.easing.elastic and ol.easing.bounce easing functions.
2013-01-21 04:36:45 -08:00
Éric Lemoine 2f539bf3be Merge pull request #126 from openlayers/tilequeue
Tile queue requires optimizing
2013-01-21 03:41:18 -08:00
ahocevar d3e63bc98a Basic feature implementation 2013-01-21 12:16:04 +01:00
Frederic Junod 8825251c42 Add new ol.easing.elastic and ol.easing.bounce easing functions. 2013-01-21 09:48:56 +01:00
ahocevar d0d397f98f Tiled vector source
This source has features and provides tiles with the feature
geometries rendered, using the feature symbolizers. Needs more
work because it is still very unefficient, because it renders
all feature geometries to all tiles, and uses a collection of
features, which we do not have yet.
2013-01-20 21:23:19 +01:00
Tom Payne 202df34e71 Merge pull request #137 from twpayne/alt-shift-rotate
Use Alt+Shift to rotate by default, fixes #21
2013-01-20 10:38:24 -08:00
Éric Lemoine 7f38c1683e Remove unused TileQueue clear method 2013-01-20 15:15:13 +01:00
Tim Schaub 4c2ad60619 Add geojson module in io package 2013-01-20 00:28:07 -07:00
Tim Schaub 497eac82c2 Polygon rendering (no holes yet) 2013-01-19 17:50:04 -07:00
Tom Payne 9ef5f0b060 Ensure dropped tiles are properly removed from tile queue 2013-01-19 21:58:01 +01:00
Tom Payne 3383c426b3 Use shifts rather than floor 2013-01-19 18:35:24 +01:00
Tom Payne d43abba154 Use stricter types in private methods, operate on array directly 2013-01-19 15:52:55 +01:00
Tom Payne 6507e71dd7 Clear queued tile keys when queue is cleared 2013-01-19 15:44:01 +01:00
Tom Payne 2bdfd3765b Remove stale FIXME 2013-01-19 15:38:15 +01:00
Tom Payne 4b971b5f32 Optimize tile dropping in reprioritize 2013-01-19 15:24:50 +01:00
Tom Payne a8dc810696 Use Infinity rather than undefined to drop tiles 2013-01-19 15:24:02 +01:00
Tom Payne 4846a6a7b3 Only update wanted tiles if not all tiles are loaded 2013-01-19 15:03:01 +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 111b4585a8 Fix key usage 2013-01-19 14:50:25 +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
Tim Schaub 0414e337b3 Render lines 2013-01-18 17:57:32 -07:00
Tim Schaub 140e9ba355 General purpose canvas renderer
Currently only renders points as circles.  Eventually will have methods for other geometry types and other symbolizer types.  Also provides static methods to render point symbolizers (returning a canvas that can be drawn on another).
2013-01-18 17:42:12 -07:00
Tim Schaub b92fdaf911 Going with point, line, and polygon symbolizers
Separate fill and stroke symbolizers make a nicer API, but less efficient rendering
2013-01-18 17:20:10 -07:00
Tim Schaub fd0a5f3622 Point, linestring, and linearring coordinates as Float32Array 2013-01-18 15:57:48 -07:00
Tim Schaub 278d32061f To be reworked for rendering like geoms with same symbolizer 2013-01-18 15:55:24 -07:00
Tim Schaub 3ac437393a To be reworked as ol.renderer.canvas.VectorLayer 2013-01-18 15:54:48 -07:00
Éric Lemoine c0c9cdef15 New tile queue implementation (heapify-powered) 2013-01-18 21:02:09 +01:00
Tom Payne f3978d200f Use Alt+Shift to rotate by default, refs #21 2013-01-18 14:09:32 +01:00