Commit Graph

9827 Commits

Author SHA1 Message Date
Tom Payne
8c2b01948b Add ScaleLine control 2013-03-04 00:43:37 +01:00
Tom Payne
5c6821ce71 Use more in-place transforms where possible 2013-03-04 00:31:36 +01:00
Tom Payne
a8760108d4 Estimate point resolution for Proj4js projections 2013-03-04 00:25:42 +01:00
Tom Payne
343768df6a Implement getPointResolution for EPSG:4326 2013-03-04 00:12:51 +01:00
Tom Payne
98d7391024 Implement getPointResolution for EPSG:3587 2013-03-04 00:12:51 +01:00
Tom Payne
d3e49d0a19 Add ol.Projection.getPointResolution 2013-03-04 00:12:51 +01:00
Tom Payne
e6f08df72c Add the normal sphere 2013-03-04 00:12:51 +01:00
Tom Payne
684ea35673 Add sphere with radius equal to the semi-major axis of the WGS84 ellipsoid 2013-03-04 00:12:51 +01:00
Éric Lemoine
85db5273be Merge pull request #257 from elemoine/verify-examples
Verify hosted examples at precommit time
2013-03-03 15:06:11 -08:00
Tim Schaub
303f2df9e1 Merge pull request #256 from tschaub/transform-arrays
Updating ol.TransformFunction instances so they work with arrays instead of coordinates.
2013-03-03 14:46:22 -08:00
Frédéric Junod
d783df0840 Merge pull request #223 from fredj/touch-click
Click handling broken
2013-03-03 12:43:01 -08:00
Tim Schaub
e9fa08fccb Use in-place transforms where possible 2013-03-03 20:53:13 +01:00
Bruno Binet
2816e3256c Add support for multiple tileSizes in the tilegrid.
This is needed by WMTS.
2013-03-03 20:43:46 +01:00
Bruno Binet
7c440d087f Ensure we cannot set both origin and origins in the tilegrid 2013-03-03 20:43:46 +01:00
Bruno Binet
f7a895a823 Remove unused tileGrid.getTileSize() call. 2013-03-03 20:43:45 +01:00
Tim Schaub
40bde4056b Accept a destination array for transforms
This allows in-place transforms.
2013-03-03 20:24:14 +01:00
Éric Lemoine
26cf882d68 Make createLayerRenderer always return a renderer 2013-03-03 19:46:09 +01:00
Tim Schaub
7a5e6a06d8 Make transform functions work with arrays
Instead of working with ol.Coordinate instances, transform functions work with arrays.  This is in anticipation of using transform functions to transform large arrays of vertex coordinate values.  The ol.projection.transform and ol.projection.transformWithCodes are slightly more convenient functions for dealing with ol.Coordinate instances.  Whether we make this more consistent with the use of functions returned by ol.projection.getTransform is up for discussion.
2013-03-03 19:27:57 +01:00
ahocevar
f1120287c3 Features can now have symbolizers
If specified, feature symbolizers take precedence over rule
based styling.
2013-03-03 18:55:52 +01:00
ahocevar
44ca6c9ff6 Merge branch 'master' of github.com:openlayers/ol3 into vector 2013-03-03 18:37:02 +01:00
Éric Lemoine
d0c0231d98 Add exports for the canvas export feature 2013-03-03 17:10:50 +01:00
Tim Schaub
5a73529da5 Merge branch 'master' of github.com:openlayers/ol3 into vector 2013-03-03 15:52:40 +01:00
Tim Schaub
b247031fe2 Test reading with shared vertices 2013-03-03 15:51:24 +01:00
Tim Schaub
4af32560ce Removing abstract methods for now
Later we'll discuss having more specific FeatureParser and readFeatures type methods.
2013-03-03 15:50:33 +01:00
Tom Payne
7126d63db5 Merge pull request #247 from twpayne/hyperbolic-functions
Add hyperbolic functions
2013-03-03 06:47:32 -08:00
Tom Payne
183df560ad Merge pull request #245 from twpayne/projection-refactoring
Projection refactoring
2013-03-03 06:46:38 -08:00
ahocevar
63c048edb2 Use the actual value, not just the index in the array. 2013-03-03 15:22:52 +01:00
ahocevar
db52ff926e Return an empty array for features without geometry
This ensures that the static applyDefaultStyle() method works
exactly the same way as the instance's apply() method.
2013-03-03 15:22:33 +01:00
Tom Payne
00ce5c6a78 Add hyperbolic functions 2013-03-03 14:47:25 +01:00
Frederic Junod
0a80feccfc Allow touch event (touchstart) to fire click events 2013-03-03 14:45:12 +01:00
Frederic Junod
c72877b33b Listen to both click and touchend events 2013-03-03 14:45:12 +01:00
ahocevar
9d1f737bce ol.Filter is now a (base) class, not an interface any more
ol.Filter can now also be used to provide a simple filter that
just evaluates a user provided filter function against a
feature.
2013-03-03 14:38:04 +01:00
Tom Payne
bf944e158a Make Proj4js classes and functions private 2013-03-03 13:14:08 +01:00
Tom Payne
fcc620af7d Separate ol.projection module from ol.Projection class 2013-03-03 13:09:13 +01:00
Frederic Junod
0fcc06b8ae Set ol-zoom content in css using :before pseudo class 2013-03-03 12:23:29 +01:00
Tom Payne
17bd715495 Cope with axis orientation in single image WMS sources 2013-03-03 12:22:24 +01:00
Tom Payne
66e5b1d736 Cope with axis orientation for tiled WMS sources 2013-03-03 12:22:24 +01:00
Tom Payne
6b26cbfb38 Refactor projection architecture 2013-03-03 12:22:24 +01:00
Tim Schaub
69b6fae744 Parser base class
GeoJSON is now a parser.  The idea is that we'll want to pass parsers to sources or protocols and want a known type.
2013-03-03 11:50:51 +01:00
Frederic Junod
66d4c44159 Rename ol.ViewHint.PANNING to ol.ViewHint.INTERACTING 2013-03-03 10:44:58 +01:00
Tim Schaub
93ab45432b Merge branch 'master' of github.com:openlayers/ol3 into vector 2013-03-03 09:46:11 +01:00
Tim Schaub
b52d283641 Allow geometries to use a shared vertex array
The ol.geom.SharedVertices structure represents a flattened array of vertex coordinates.  This is intended to support optimal WebGL rendering.
2013-03-02 18:39:24 +01:00
ahocevar
bdfa2cc88c Fixing return type to make Closure compiler happy 2013-03-02 17:44:15 +01:00
ahocevar
f4a4522eb4 Giving vector layers the style they deserve
Now vector layers can have a style. ol.Style instances have an
apply method to get the symbolizer literals for a feature. If the
layer does not have a style defined, there is also a static
applyDefaultStyle function on ol.Style to get the default
symbolizer literals for a feature. The vector layer also got a
groupFeaturesBySymbolizerLiteral method, which returns an array
with features grouped by symbolizer, as needed by the canvas
renderer.
2013-03-02 17:38:01 +01:00
ahocevar
fcd5804d2d Symbolizer and SymbolizerLiteral as base class, not interface 2013-03-02 14:08:52 +01:00
ahocevar
da7820121f Renaming the 'evaluate' method to 'applies' 2013-03-02 12:50:53 +01:00
Bruno Binet
4bdf59bc6b Remove extent property from ol.tilegrid.TileGridOptions
This follows tilegrid extent_ property removal from #216.
2013-03-02 10:36:11 +01:00
Tim Schaub
ff27fd33a1 Merge pull request #232 from tschaub/projection-tests
Projection tests
2013-02-27 21:06:54 -08:00
Frederic Junod
90cb0e8fcb Export ol.easing.* 2013-02-27 13:52:39 +01:00
Frederic Junod
dda4060d84 Export ol.animation.zoom 2013-02-27 13:35:32 +01:00