Commit Graph
100 Commits
Author SHA1 Message Date
Andreas Hocevar 6854833fbd Update package version to 3.3.0 2015-03-03 22:27:25 +01:00
Andreas Hocevar c8b90adfef Changelog for v3.3.0 2015-03-03 22:27:15 +01:00
Andreas Hocevar d33a45dfa2 Merge pull request #3263 from cwgrant/master
Support ArcGIS Rest Services
2015-03-03 21:40:33 +01:00
Andreas Hocevar 1cec149681 Merge pull request #3295 from sarametz/wmts-getcap
Add RESTful to WMTS GetCapabilities optionsFromCapabilities
2015-03-03 21:13:00 +01:00
Andreas Hocevar 5b539a75bb Merge pull request #3303 from ahocevar/us-ft
Add constant for us-ft units
2015-03-03 14:01:02 +01:00
Andreas Hocevar a6f80ef4b8 Add constant for us-ft units 2015-03-03 13:51:23 +01:00
Andreas Hocevar de42334b19 Merge pull request #3018 from bjornharrtell/selectevent
Add SelectEvent to interaction
2015-03-03 12:56:42 +01:00
Andreas Hocevar 927a0a4627 Merge pull request #3301 from bjornharrtell/select-tests
Select interaction unit tests
2015-03-02 21:12:15 +01:00
Andreas Hocevar a7205d8aec Merge pull request #3293 from ahocevar/icon-opacity
Add missing opacity option for ol.style.IconOptions
2015-03-01 17:11:02 +01:00
Andreas Hocevar 6d0fb4d74e Add missing opacity option for ol.style.IconOptions 2015-03-01 12:07:19 +01:00
Andreas Hocevar c726cbfcd9 Merge pull request #2385 from ahocevar/update-vectors-while-animating
Option to update vector layers while animating
2015-01-14 17:34:39 +01:00
Andreas Hocevar b1a73da9dd Add updateWhileAnimating option
With this option, vector batches will be recreated with every frame.
For animations, this means that vector data won't be clipped to the
extent at which the animation started.
2015-01-14 16:33:05 +01:00
Andreas Hocevar 017ff47bf8 Merge pull request #3117 from ahocevar/domvector-pixelratio
Add pixelRatio support for DOM vector renderer
2015-01-14 12:55:05 +01:00
Andreas Hocevar bbf074b70a Add pixelRatio support for DOM vector renderer
Adds the scaling and transforms to support pixelRatio values other than
1.
2015-01-12 22:14:52 +01:00
Andreas Hocevar 97afb31a65 Merge pull request #3073 from ahocevar/load-tile-options
Make map's deviceOptions map options
2014-12-23 16:11:22 +01:00
Andreas Hocevar 38b12d3149 Make map's deviceOptions map options
This removes the map's deviceOptions config option, and instead
introduces loadTilesWhileAnimating and loadTilesWhileInteracting map
options. By default, both are false now, to make zooming and panning
smoother on most devices.
2014-12-21 12:03:28 +01:00
Andreas Hocevar cd0bed6291 Merge pull request #3058 from ahocevar/extend-coordinate
Use an API function to extend the extent
2014-12-18 11:22:29 +01:00
Andreas Hocevar 5ca6b5dd81 Use an API function to extend the extent 2014-12-18 11:02:41 +01:00
Andreas Hocevar fe0e17fdaf Merge pull request #3010 from ahocevar/style-geometry
Allow styles to override feature geometries
2014-12-18 10:45:50 +01:00
Andreas Hocevar 784701641d Add a getGeometry method 2014-12-18 10:28:21 +01:00
Andreas Hocevar 2bf191b5e3 Assert that feature.get('foo') returns a geometry 2014-12-18 10:08:35 +01:00
Andreas Hocevar 19015d2ca9 Create typedef 2014-12-18 10:07:57 +01:00
Andreas Hocevar af30b88413 Allow geometryFunction to return undefined 2014-12-16 01:12:08 +01:00
Andreas Hocevar 6478454a93 Use getGeometryFunction() in immediate API 2014-12-15 23:22:26 +01:00
Andreas Hocevar 49f9690786 Add tests for setGeometry 2014-12-15 23:21:02 +01:00
Andreas Hocevar 8d9acb8f48 Add an example showing the use of ol.style.Style#geometry 2014-12-15 23:21:02 +01:00
Andreas Hocevar 2d12531105 Allow styles to override feature geometries
With this change, application developers are able to define styles that
render a different geometry than the feature geometry. This can e.g. be
used to render an interior point of a polygon instead of the polygon, or
to render symbols like arrows along lines.
2014-12-15 23:20:53 +01:00
Andreas Hocevar 7ece729d5f Merge pull request #3046 from ahocevar/pointerinteraction-api
Need exportable constructor for constructor options in olx
2014-12-15 16:41:44 +01:00
Andreas Hocevar 5eb1537f48 Need exportable constructor for constructor options in olx
When a constructor options object is created in the olx namespace,
the constructor that uses it must be exportable as well.
2014-12-15 16:15:30 +01:00
Andreas Hocevar e0f574bd25 Merge pull request #3033 from ahocevar/select-return
Allow custom mousemove conditions for Select interaction
2014-12-15 13:26:40 +01:00
Andreas Hocevar 9b0b1543e0 Allow custom mousemove conditions
When configuring a Select interaction with a custom condition that
includes mousemove, panning the map will not work any more. This is
because the return value of handleMapBrowserEvent is determined by
checking for a default condition function. By checking for the
underlying event type instead, we gain flexibility with custom condition
functions.
2014-12-15 11:28:45 +01:00
Andreas Hocevar 2c9fab22c8 Merge pull request #3015 from klokantech/utfgrid
UTFGrid Support
2014-12-12 12:37:37 +01:00
Andreas Hocevar 6255d8b493 Merge pull request #2997 from ahocevar/opengeo-boundless
Use new demo GeoServer location
2014-12-03 14:25:05 +01:00
Andreas Hocevar 0d16e0f0c8 Use new demo GeoServer location
demo.opengeo.org currently redirects to demo.boundlessgeo.com, so this
change makes it so the new location is used directly.
2014-12-03 14:13:36 +01:00
Andreas Hocevar 4cbeb5ee22 Merge pull request #2987 from kartverket/2966
Image layer renderers use source projection if given and equivalent
2014-12-01 13:06:42 +01:00
Andreas Hocevar 5a29834555 Merge pull request #2978 from ahocevar/mapquest-zoom
Fix zoom levels for the MapQuest Street layer
2014-11-27 19:41:26 +01:00
Andreas Hocevar 5155e7a6ac Fix zoom levels for the MapQuest Street layer
A typo in 65b8e0f915 introduced this bug.
Before that, 18 zoom levels were used. Now we're using 19, which appears
to be available with full world coverage.
2014-11-27 19:13:02 +01:00
Andreas Hocevar ca3dfe2b35 Merge pull request #2959 from ahocevar/unstable-doc-fix
Fix typo in selector
2014-11-18 16:53:25 +01:00
Andreas Hocevar 4714c9b380 Fix typo in selector 2014-11-18 16:37:18 +01:00
Andreas Hocevar cee1575a6c Merge pull request #2936 from ahocevar/unselect-index
Fix unselection of selected features
2014-11-13 08:39:40 +01:00
Andreas Hocevar 96729baa9f Push the feature, not the index 2014-11-11 20:09:24 +01:00
Andreas Hocevar 08aa6ee82d Do not rely on unstable index 2014-11-11 12:35:19 +01:00
Andreas Hocevar 1d221f8166 Add ability to filter out unstable Fires items 2014-11-06 10:32:17 -07:00
Andreas Hocevar bf43816b66 Merge pull request #2706 from yportier/master 2014-11-03 13:24:37 +01:00
Andreas Hocevar 8027c577bc Merge pull request #2891 from ahocevar/imageloadfunction
Introduce a load function for image sources
2014-10-30 09:33:47 +01:00
Andreas Hocevar 765189b86e Add missing types to olx.js 2014-10-30 09:22:45 +01:00
Andreas Hocevar fed6376e26 Add imageLoadFunction option for ol.source.ImageWMS 2014-10-30 09:22:45 +01:00
Andreas Hocevar a1e19b4905 Add imageLoadFunction option for ol.source.ImageStatic 2014-10-30 09:22:44 +01:00
Andreas Hocevar 46870456ac Add imageLoadFunction option to ol.source.ImageMapGuide 2014-10-30 09:22:44 +01:00
Andreas Hocevar f5761daa61 Add a default imageLoadFunction to be used by sources 2014-10-30 09:22:44 +01:00
Andreas Hocevar 46eb14dc96 Give ol.Image an imageLoadFunction argument 2014-10-30 09:22:34 +01:00
Andreas Hocevar 87a06c0086 Rename #getImageElement to #getImage
This adds consistency between ol.Image and ol.ImageTile. Now both have
an exportable getImage method.
2014-10-30 08:42:09 +01:00
Andreas Hocevar 45967992fb Merge pull request #2690 from ahocevar/layer-vectoroverlay
Vector rendering with the DOM renderer
2014-10-23 10:19:20 +02:00
Andreas Hocevar dd337f3526 Add a canvas for FeatureOverlay and pre-/postcompose rendering 2014-10-10 16:17:19 +02:00
Andreas Hocevar 4702aa496a Add DOM vector layer renderer 2014-10-09 19:10:22 +02:00
Andreas Hocevar 27160be639 Merge pull request #2816 from gberaudo/exit_on_check_examples_failure
Exit on check-examples failure
2014-10-08 15:18:37 +02:00
Andreas Hocevar 6b437701a8 Merge pull request #2785 from ahocevar/export-goog
Use goog.* types in externs
2014-10-06 16:50:02 +02:00
Andreas Hocevar 66234a73ba Use goog.* types in externs
To have an externs file as accurate as possible, we also need to use
types that are provided by the Closure library.
2014-10-06 14:20:59 +02:00
Andreas Hocevar b431487435 Merge pull request #2684 from ahocevar/notify-change
Rename ol.Observable#dispatchChangeEvent() to #changed()
2014-09-11 15:51:22 -07:00
Andreas Hocevar 3da9a67162 Merge pull request #2678 from ahocevar/mutable-styles
Mutable symbolizer properties for styles
2014-09-11 13:14:43 -07:00
Andreas Hocevar 267a950435 Mention the need to re-render in a single place only 2014-09-11 13:13:17 -07:00
Andreas Hocevar 593532cb5a Merge pull request #2698 from ahocevar/feature-not-abstract
StaticVector is not an abstract base class
2014-09-10 08:03:15 -07:00
Andreas Hocevar 6eda02f208 StaticVector is not an abstract base class 2014-09-09 13:44:56 -07:00
Andreas Hocevar 0e14639633 Update docs for changes proposed in #2684 2014-09-04 21:01:50 -06:00
Andreas Hocevar ebe3b48e0a Rename ol.Observable#dispatchChangeEvent() to #changed()
Since dispatchChangeEvent does not only dispatch a change event, but
also increases the revision counter, the method name should reflect
this.
2014-09-04 19:30:48 -06:00
Andreas Hocevar 2876902333 Merge pull request #2681 from ahocevar/xyz-tilesize
Make tileSize a config option for ol.source.XYZ
2014-09-04 14:21:46 -06:00
Andreas Hocevar 88c30795d3 Doc improvements 2014-09-04 13:20:25 -06:00
Andreas Hocevar ec00cd3222 Make tileSize a config option for ol.source.XYZ 2014-09-04 11:59:43 -06:00
Andreas Hocevar 0c36d7606b No need to have a mutable_ flag
Instead, educate users to call setStyle.
2014-09-04 11:47:32 -06:00
Andreas Hocevar 13d84e75ad Additional documentation 2014-09-03 18:31:01 -06:00
Andreas Hocevar a50f6d7a2f Mutable symbolizer properties for style functions
This change adds setters for symbolizer properties. In addition, it
introduces a mutable flag on all styles. By default, this is set to
true. ol.style.createStyleFunction sets it to false for all static
styles.

The new setters assert that the mutable flag is true, so whenever an
application tries to set a symbolizer property on a style that was
assigned to a vector layer or feature overlay, the assertion will fail.
2014-09-03 16:57:50 -06:00
Andreas Hocevar 90604fab2a Merge pull request #2644 from ahocevar/extends-externs
Add @extends annotations to generated externs
2014-08-29 10:49:42 +02:00
Andreas Hocevar f724cb65bc Add base classes to info.json and generated externs
This ensures that the inheritance chain is intact, even if the base
class is not exportable.
2014-08-28 19:02:49 +02:00
Andreas Hocevar bc2044d48b Walk up the inheritance chain to an exportable constructor 2014-08-28 15:11:09 +02:00
Andreas Hocevar a0c76aa5ee Do not extend goog.* types 2014-08-28 15:11:09 +02:00
Andreas Hocevar 80ea1772e2 Add @extends annotations to generated externs 2014-08-28 15:11:09 +02:00
Andreas Hocevar d2eceab25e Merge pull request #2643 from ahocevar/interface-externs
Handle interfaces in the generate-externs task
2014-08-28 13:22:15 +02:00
Andreas Hocevar 4d933f0764 Merge pull request #2645 from ahocevar/nullable-externs
Support nullable params and returns in generated externs
2014-08-28 11:52:26 +02:00
Andreas Hocevar 663fef3dfd Support nullable params and returns in generated externs 2014-08-27 18:18:49 +02:00
Andreas Hocevar e560f529c6 Handle interfaces in the generate-externs task 2014-08-27 16:13:12 +02:00
Andreas Hocevar b7ca592334 Merge pull request #2635 from ahocevar/typedefs-after-symbols
Process typedefs last when generating externs
2014-08-27 10:54:27 +02:00
Andreas Hocevar e9457461af Process typedefs last
Becasue typedefs sometimes use namespaces that are actually
constructors, we need to process typedefs after symbols to avoid
duplicate entries for such namespace types.
2014-08-26 22:21:25 +02:00
Andreas Hocevar 45f24ee097 Merge pull request #2518 from probins/centercon
Remove centerConstraintType from API
2014-08-11 20:22:06 +02:00
Andreas Hocevar e69f065a23 Merge pull request #2479 from ahocevar/generate-externs
Node task to generate externs for OpenLayers 3
2014-08-11 18:29:04 +02:00
Andreas Hocevar 286db65d34 Use {*} instead of {goog.*} types in externs file 2014-08-09 09:05:54 +02:00
Andreas Hocevar e294ca1868 Keep track of all symbols
This avoids that we add parent namespaces of symbols that were already
added because they have their own definition in the externs.
2014-08-09 08:53:25 +02:00
Andreas Hocevar 8a56f455f1 Define constructor before its members 2014-08-09 08:53:24 +02:00
Andreas Hocevar 63abbe2597 Prepend 'var ' for root symbols 2014-08-09 08:53:24 +02:00
Andreas Hocevar 9780e9f0c0 Dereference typedef 2014-08-09 08:53:24 +02:00
Andreas Hocevar a35f361683 Build types only for olx.* symbols from externs 2014-08-09 08:53:24 +02:00
Andreas Hocevar 9e814f119f Do not process file type doclets 2014-08-09 08:53:24 +02:00
Andreas Hocevar e8eebd8846 Allow to provide externs for inclusion in info.json 2014-08-09 08:53:24 +02:00
Andreas Hocevar e06fe37607 Merge pull request #2502 from ahocevar/template-test
Add unit test for greedy template replacement
2014-08-07 13:36:24 +02:00
Andreas Hocevar 410b274b6a Add unit test for greedy template replacement 2014-08-07 12:18:03 +02:00
Andreas Hocevar 0a963d4615 Merge pull request #2497 from ahocevar/greedy-template
TileUrlFunction only replaces first instance of placeholder variables
2014-08-07 12:09:24 +02:00
Andreas Hocevar 08039e9894 Replace multiple placeholder occurrences in templates 2014-08-07 10:51:41 +02:00
Andreas Hocevar 2230349b52 Merge pull request #2498 from ahocevar/custom-def
Unprecise transormation used in example
2014-08-07 09:01:34 +02:00
Andreas Hocevar 52ee406938 Use definition with 7-parameter transform for EPSG:21781 2014-08-06 23:26:26 +02:00
Andreas Hocevar 1bd522d96f Merge pull request #2481 from probins/styledoc
Improve docs for style
2014-08-05 12:01:19 +02:00
Andreas Hocevar 9575396aad Fix types in olx.js 2014-08-04 20:37:46 +02:00