Commit Graph

2784 Commits

Author SHA1 Message Date
Frederic Junod 448e300a03 Add ol.DeviceOrientation 2013-06-07 16:16:02 +02:00
ahocevar 3a6c7cf204 Renaming featureInfoFunction to transformFeatureInfo 2013-06-07 15:34:13 +02:00
ahocevar 77d22c4038 getFeatures method and featureInfo templates
To avoid surprises for application developers, this change
creates a new getFeatures method. So it is clear now beforehand
whether features or feature info markup is returned. The result
is now also grouped by layer, so application developers always
have a link between a layer and the feature info it returns.

To make getFeatureInfo return markup for vector layers, this
change also adds a featureInfoFunction property to the vector
layer, which gives developers full control over how features are
rendered to feature info markup.
2013-06-07 15:34:13 +02:00
Tom Payne a858664035 Add warning about internal API to example 2013-06-06 18:36:00 +02:00
Tom Payne 5850dff254 Use long LineString in ten-thousand-points example 2013-06-01 18:16:44 +02:00
Tom Payne f55fed9bc3 Add ten thousand points example 2013-06-01 18:16:42 +02:00
Éric Lemoine 93fd685ca7 Display hue/saturation value in button text 2013-05-31 15:47:17 +02:00
Éric Lemoine 84b1886666 Display brightness/contrast value in button text 2013-05-31 15:45:40 +02:00
Tom Payne 075f4aadc7 Merge pull request #748 from twpayne/rename-projection-to-proj
Rename ol.projection to ol.proj
2013-05-31 04:34:22 -07:00
Frederic Junod 984002a7ec Change ol.Object event name syntax
'changed' to 'change' and '<attribute>_changed' to 'change:<attribute>'.
2013-05-31 12:38:37 +02:00
Tom Payne 46553c719c Rename ol.projection to ol.proj 2013-05-30 18:55:58 +02:00
Tom Payne 6900c90bc5 Remove unused variables in examples 2013-05-28 15:15:49 +02:00
Frederic Junod 82d2fa373a Dispatch an error on Geolocation failure 2013-05-27 12:46:36 +02:00
Bart van den Eijnden b921bece0e Merge pull request #725 from bartvde/gpx
Implement GPX parser (read/write). (r=@fredj)
2013-05-27 01:42:09 -07:00
ahocevar 8c0f1f979a Store the feature's commonly used id
To not clobber the feature's attributes, this is a separate
member property.
2013-05-23 11:16:17 -05:00
Frederic Junod 2991c4ab57 Add a resolution input 2013-05-22 16:13:17 +02:00
Frederic Junod fc12370765 Remove stray end tag fieldset 2013-05-22 16:03:59 +02:00
Frederic Junod 7ba4045e59 geolocation example: suppresses line breaks in tooltip 2013-05-22 15:53:55 +02:00
Bart van den Eijnden 0f0ea7e63f make feature info work on touch devices for gpx example see #727 2013-05-22 13:06:56 +02:00
Bart van den Eijnden 969b47c78c address review by @fredj 2013-05-22 13:01:41 +02:00
Frederic Junod db34b37716 getFeatureInfo examples: listen to click events
This make the examples works on touch devices.
2013-05-22 12:30:31 +02:00
Bart van den Eijnden dc922b4ffa Implement GPX parser (read/write).
Implement a parser for GPX which supports read and write.
2013-05-22 10:44:36 +02:00
Frederic Junod 7d544e0868 Pass layers as array instead of ol.Collection 2013-05-21 12:35:02 +02:00
Bart van den Eijnden 0aa4fe258e GML options not always applied.
This is a follow-up for https://github.com/openlayers/ol3/pull/711
for the GML parser. Also use goog.array.map instead of map as was
pointed out by @twpayne on the WKT review and update the example data
to use all US states as pointed out by @tschaub on the Google hangout.
2013-05-17 11:48:05 +02:00
ahocevar 037e44e084 Accurate hit detection
With this change, hit detection for lines and points gets very
accurate, because the vector renderer instance keeps track of
line widths and point symbol sizes. After doing a bbox query in
the RTree, returned lines and points are evaluated against the
thresholds of their line width or symbol size. The KML example
with its different symbolizers now has getFeatureInfo too to
show this in action.
2013-05-15 23:44:22 +02:00
Bart van den Eijnden e8ed1674ea do not specify the source projection in ol.parser.ReadFeaturesOptions anymore 2013-05-15 15:34:11 +02:00
Bart van den Eijnden 2ad3ee6f99 incorporate review from @ahocevar 2013-05-15 14:50:37 +02:00
Bart van den Eijnden 5ad4734c24 GML parser.
This adds a parser (read/write) for GML v2 and v3. GML v3 is limited to the
simple features profile of GML 3.1.1, just like OpenLayers 2 was. This will
be the basis for the WFS parser, but it only makes sense to continue this work
once feature modification (insert, update, delete) is in place in ol3. So the
WFS parser will be another pull request.
2013-05-14 20:12:05 +02:00
Éric Lemoine 42cc4d7683 Merge pull request #706 from elemoine/user-extensions
Custom control framework
2013-05-10 04:47:39 -07:00
Éric Lemoine 4e51888651 Add a custom controls example
Inspired from @cedricmoullet's ZoomExtent example in https://github.com/cedricmoullet/ol3/commit/3312c37ed0ac93e9b3c2cb0cea76a070ea1c2cf4.
2013-05-10 10:24:11 +02:00
ahocevar 53b85c99ae map#getFeatureInfo does not return anything
Thanks @elemoine for catching this.
2013-05-09 22:32:40 +02:00
ahocevar 7b256c3ec6 Asynchronous API for map#getFeatureInfo
This change allows us to use feature info services on the
server. It will also be useful for the GetFeature control to
get results from a WFS.
2013-05-09 22:26:55 +02:00
Tom Payne 9286d63133 Merge pull request #693 from twpayne/class-name
Add className option to control options
2013-05-08 05:35:37 -07:00
ahocevar 96c3a86314 Merge pull request #692 from ahocevar/pnpoly
Point-in-polygon improvements. r=@bartvde
2013-05-08 05:11:16 -07:00
Tom Payne 97510ba0be Use className in mouse position example 2013-05-07 17:33:33 +02:00
Tom Payne 2ad5dea737 Rename ol-mouseposition to ol-mouse-position 2013-05-07 17:31:26 +02:00
ahocevar 666a010e3b Point-in-polygon improvements
As suggested by @tschaub in #674, geom.pointInPoly is not needed
if we have geom.LinearRing#containsCoordinate. This pull request
also adds tests and documentation on the limitations of the
containsCoordinate method.

I think for now it is ok to keep geometry/topology functions as
simple as possible in ol3. If we decide to not rely on third
party libraries like jsts for topology operations, we can always
refine what we have and e.g. port topology operations over from
ol2.
2013-05-07 10:49:51 +02:00
Thomas f219393149 Add default CSS style for mouse position
Missing CSS was confirmed with issue #680, this commit is to fix it and change
ol-mouse-position class to ol-mouseposition. I choose for the moment the top
right corner to display the coordinates from mouse position control because of
potential conflict with the scaleline control.
2013-05-06 14:07:13 +02:00
Tim Schaub ffe9105891 Rename onOnce to once (see #678) 2013-04-30 14:58:39 -06:00
ahocevar d2c81db06a Info box instead of tooltip as suggested by @fredj 2013-04-30 14:15:39 +02:00
ahocevar cc1b70c74b Giving the map a getFeatureInfoForPixel method
This method is an entry point for getting feature information.
Renderers can use a hit canvas or defer to a layer (source) to
get matching features for a pixel.

For now this is only implemented for vector layers, and it uses
a bbox query because we cannot refine the result because of
missing geometry intersection functions yet.
2013-04-30 13:32:16 +02:00
Tom Payne 390cc17161 Cosmetic clean-ups 2013-04-28 20:01:44 +02:00
Tom Payne b666fc49b7 Add spiral to Madrid animation example 2013-04-28 20:01:25 +02:00
Tom Payne 3643908427 Only set center once in mobile full screen example 2013-04-25 19:41:03 +02:00
Tom Payne bd0512fea7 Show off 2013-04-24 01:38:03 +02:00
Tom Payne bedfa5e2d3 Merge pull request #640 from twpayne/interaction-options
Interaction options
2013-04-23 07:11:56 -07:00
Tom Payne d1b2e4e483 Add drag rotate and zoom example 2013-04-23 15:31:16 +02:00
Éric Lemoine 29e69d3833 Simplify teleport example 2013-04-23 14:05:11 +02:00
Éric Lemoine 8e8804caf1 Add a teleport map example 2013-04-23 10:42:18 +02:00
Bart van den Eijnden feb6c4c2d7 Add AsyncStringFeatureParser and use plain
XMLHttpRequest in the KML example

Since the content-type on github.io is application/octet-stream we need
to implement an Async string based parser interface in the KML parser.
Also use plain XmlHttpRequest in the example instead of jQuery Ajax since
the vector-features example also uses that.
2013-04-22 16:45:33 +02:00