Commit Graph
100 Commits
Author SHA1 Message Date
ahocevar 62134f6ee2 Fixing tests (see #1093) 2013-10-03 14:37:02 -06:00
ahocevar de999b9463 Merge pull request #1093 from ahocevar/symbolizer-id
Adding counter expression function
2013-10-03 12:16:02 -07:00
ahocevar 32f8826622 Minor doc change 2013-10-03 13:16:03 -06:00
ahocevar f2a9c45447 Merge pull request #1091 from ahocevar/render-zindex
Sort symbolizer groups by zIndex
2013-10-03 11:02:29 -07:00
ahocevar 41e7a6a059 Marking sort function private 2013-10-03 12:02:29 -06:00
ahocevar 4937f08971 Adding counter expression function
This function can e.g. be used to get a symbolizer literal with
an ever increasing zIndex.
2013-10-03 11:41:02 -06:00
ahocevar 87e755e9e4 Sort symbolizer groups by zIndex
Now rendering order can be controlled by setting the zIndex
symbolizer property.
2013-10-03 09:37:08 -06:00
ahocevar c03e690882 Merge pull request #1089 from ahocevar/no-geometry-type-groups
No longer group features by geometry type
2013-10-03 07:35:14 -07:00
ahocevar dbb9525515 No longer group features by geometry type
With symbolizer literals now being geometry type specific, we no
longer need the overhead to query the RTree separately for each
geometry type and render symbolizer groups by geometry type.

The geometry type index of the FeatureCache is no longer needed.

The filtering functionality of the FeatureCache's
getFeaturesObject method can be removed because it is no longer
used.
2013-10-03 08:35:11 -06:00
ahocevar 5dbd200e2b Merge pull request #1088 from ahocevar/rename-vectorrenderer
Rename ol.renderer.canvas.VectorRenderer
2013-10-02 15:55:21 -07:00
ahocevar adc1d130c8 Rename ol.renderer.canvas.VectorRenderer
To be consistent with our naming convention, this one should be
renamed to ol.renderer.canvas.Vector.
2013-10-02 15:58:27 -06:00
ahocevar 3349bded1c Merge pull request #1065 from ahocevar/skip-hidden
Select interaction does not work with shape symbolizers and canvas renderer
2013-09-27 05:45:50 -07:00
ahocevar 6c6f9a3ef5 Doc improvements
Thanks @tschaub for suggesting these.
2013-09-27 12:11:41 +02:00
ahocevar f8e891ff15 Making the condition for adding to selection configurable 2013-09-27 11:45:15 +02:00
ahocevar c556ddd593 Skip hidden features for hit detection 2013-09-26 12:56:49 +02:00
ahocevar 79750c662c Merge pull request #1056 from openlayers/doc
Basic docs
2013-09-24 07:21:43 -07:00
ahocevar 9e274a61db Fixing typo 2013-09-24 15:06:22 +02:00
ahocevar 860735d7e4 Nicer search box position 2013-09-24 14:56:25 +02:00
ahocevar b80022036f ol3 logo for examples and apidoc header 2013-09-24 14:42:04 +02:00
ahocevar d1c0665926 Adding heading 2013-09-24 13:46:14 +02:00
ahocevar 3adc46ae4a Adding basic concepts tutorial 2013-09-24 13:28:42 +02:00
ahocevar 5ab7803402 New font and header background color
With this change, API docs and examples match the website design
of the new-build branch of openlayers.github.io better.
2013-09-24 10:50:27 +02:00
ahocevar 94942e636c Merge pull request #969 from ahocevar/master
WMS getFeatureInfoOptions ignored in minified build
2013-09-03 12:57:09 -07:00
ahocevar 3bce782943 Making sure that options are not renamed 2013-09-03 20:02:49 +02:00
ahocevar 39b4da5ca2 Merge pull request #945 from ahocevar/select-followup
Follow-up improvements for #897
2013-09-02 06:47:01 -07:00
ahocevar d8bc769758 Do not delete from oldFeatureMap 2013-08-30 23:18:59 +02:00
ahocevar cbf7f91cfb instanceof check to avoid ducktyping 2013-08-30 23:18:17 +02:00
ahocevar 9dfbfab648 Follow-up improvements for #897
* Interaction is no goog.Disposable any more.
* Permanent cleanup during selection instead of disposeInternal.
* Moved selectionLayers creation outside feature loop.
* Maintain selectedFeatures and unselectedFeatures only for
  layers that have a setRenderIntent method.
2013-08-30 16:26:49 +02:00
ahocevar 29317c3316 Merge pull request #897 from ahocevar/select
Select control
2013-08-30 06:25:14 -07:00
ahocevar 643eb5c4cc Better initial extent 2013-08-30 14:46:32 +02:00
ahocevar 9dae49dc18 Symbolizer defaults for the select renderIntent 2013-08-30 13:47:43 +02:00
ahocevar 83720975f8 More specific INTENTCHANGE instead of SYMBOLIZER event 2013-08-30 12:10:55 +02:00
ahocevar e2c4fec253 Let's at least be disposable, so we can clean up after ourselves 2013-08-30 12:00:06 +02:00
ahocevar 2a4aef0b58 THIS_IDENTIFIER no longer needed 2013-08-30 11:44:52 +02:00
ahocevar 6bb23cdda5 No longer inheriting from EventTarget 2013-08-30 11:43:35 +02:00
ahocevar 8a180e63b2 Filter layer by id 2013-08-29 16:50:55 +02:00
ahocevar 43c67ba09f Do not dispatch selection events for now 2013-08-29 16:50:55 +02:00
ahocevar 95cf0e1264 Less closures 2013-08-29 16:50:55 +02:00
ahocevar 0c1f2328f9 Do not implement a specific clone method
What we need here is a mix of deep and shallow cloning, and we
do not want to do this in a generic ol.Feature#clone() method.
2013-08-29 16:50:55 +02:00
ahocevar 2394b39f6f Use select as keyword 2013-08-29 16:50:54 +02:00
ahocevar 0fbf07fef1 Using a renderIntent lib function instead of this identifier
A 'this' identifier is quite useless with compressed JavaScript,
and in fact it turned out to fail in advanced mode when trying
to access a feature's renderIntent property with it. The added
renderIntent lib function as a Call expression does the job
well.
2013-08-29 16:50:54 +02:00
ahocevar 526dbebadc Re-adding @requires that got lost during rebase. 2013-08-29 16:50:54 +02:00
ahocevar c47634b2ee Renaming condition to clickOnly, and fixing docs 2013-08-29 16:50:54 +02:00
ahocevar bb93a86528 Do not export 'dispose' for now 2013-08-29 16:50:54 +02:00
ahocevar e5b095bfdf Simplifying setRenderIntent API for bulk changing all features 2013-08-29 16:50:53 +02:00
ahocevar 100b85a7b0 Converting control to an interaction
To dispatch events, the interaction base class now inherits from
goog.events.EventTarget.
2013-08-29 16:50:53 +02:00
ahocevar c6e61e2d23 Dynamic layers and lazy selection layer creation
With this change, the user provides a filter function instead of
an array of layers. Selection layers are created lazily, and
addition/removal of layers is not handled by the control to give
the user more options, as suggested by @elemoine.
2013-08-29 16:50:53 +02:00
ahocevar a417b75c1f Simplifying layer mapping
By making selectionLayer an object keyed by source layer UIDs,
we save some indexOf lookups.
2013-08-29 16:50:53 +02:00
ahocevar d5c0fdd557 Removing addressed TODOs 2013-08-29 16:50:53 +02:00
ahocevar 0391a028c5 Adding layer visibility/addition/removal handling
The Select control creates a selection layer for each layer it
is configured with. When a configured layer is removed from the
map, the selection layer will be made invisible. For configured
layers on the map, the 'visible' property of the selection layer
is bound to the configured layer.
2013-08-29 16:50:53 +02:00
ahocevar 56c228d009 Removing option for temporary layer
Instead, adding setter and getter for a private temp_ property,
as suggested by @elemoine.
2013-08-29 16:50:52 +02:00
ahocevar 3a50a754aa Implementing renderIntent handling 2013-08-29 16:50:52 +02:00
ahocevar 4f2d37b6a3 New ThisIdentifier expression
This allows member expressions to use the 'this' keyword.
2013-08-29 16:50:52 +02:00
ahocevar 89052079b7 Example update after recent API changes 2013-08-29 16:50:52 +02:00
ahocevar 14b69d15f1 One selection layer per source layer
This way all styles can be defined on the source layer, by
defining a rule with a select renderIntent. It also will make
addition and removal of layers easier while the select control
is active.
2013-08-29 16:50:52 +02:00
ahocevar 760694582e Adding missing @requires 2013-08-29 16:50:52 +02:00
ahocevar f05629b3c3 Work with clones rather than the original features 2013-08-29 16:50:51 +02:00
ahocevar fdd79a385a Making JSDoc happy 2013-08-29 16:50:51 +02:00
ahocevar d7e277d0f5 Adding exports 2013-08-29 16:50:51 +02:00
ahocevar 414f4828d6 Making Travis happy 2013-08-29 16:50:51 +02:00
ahocevar 0c54cbd9cc Adding tests 2013-08-29 16:50:51 +02:00
ahocevar 3d22ec4ca8 Simplifying clear/append detection 2013-08-29 16:50:51 +02:00
ahocevar b06526781c Adding change event 2013-08-29 16:50:51 +02:00
ahocevar 6be1ab80d2 Require layers 2013-08-29 16:50:50 +02:00
ahocevar 19a00bbe27 Making the control's button work 2013-08-29 16:50:50 +02:00
ahocevar 871388d2c0 Adding selection layer and implementing basic click selection 2013-08-29 16:50:50 +02:00
ahocevar e2526621d1 Select example and skeleton with event listeners 2013-08-29 16:50:50 +02:00
ahocevar 5673feb48f Merge pull request #885 from ahocevar/wms-getfeatureinfo
Implement WMS GetFeatureInfo
2013-08-08 07:44:04 -07:00
ahocevar f1e01511b9 Fixing example title
Thanks @bartvde for catching this.
2013-08-08 15:55:37 +02:00
ahocevar 2f37816608 Use X, Y or I, J depending on WMS version
This also adds consistency - Pixel coordinates are now always
rounded to integers.
2013-08-08 14:43:49 +02:00
ahocevar c1746f2549 No array needed for a single event
Thanks @bartvde.
2013-08-08 13:19:26 +02:00
ahocevar 759e6ff925 Merge pull request #880 from openlayers/parser-projection
Get source projection from parser
2013-08-05 00:57:27 -07:00
ahocevar cc29ea912b Updating the TopoJSON parser to return a ReadFeaturesResult 2013-08-04 15:10:11 +02:00
ahocevar 9578da0cfb Renaming readFeaturesWithMetadata* back to readFeatures*
Since this is not exported and we do not have a counterpart that
does not return the metadata, it should be fine to use a shorter
name.
2013-08-04 15:10:11 +02:00
ahocevar 0aed05a413 Renaming handleWriteOptions to applyWriteOptions 2013-08-04 15:10:10 +02:00
ahocevar 3ebbdbb48f Use goog.functions.sequence 2013-08-04 15:10:10 +02:00
ahocevar 6f3fa14c53 Sensible axisOrientation and srsName defaults 2013-08-04 15:10:09 +02:00
ahocevar 023d3faf3c Do not translate projections using regular expressions 2013-08-04 15:10:09 +02:00
ahocevar e32da90f5a Fixing typo
Thanks @bartvde for spotting this.
2013-08-04 15:10:09 +02:00
ahocevar 56e8b1cfb4 Get projection and axis order from GML data
To make tests pass, the winding order of the coordinates in the
test data had to be reversed to conform to common gml practice.
2013-08-04 15:10:09 +02:00
ahocevar 109ec71877 Using single argument for callback and string for projection
This makes the asynchronous and synchronous versions of
readFeatures work with the same data structures, and leaves
projection handling outside the parsers.
2013-08-04 15:10:09 +02:00
ahocevar 0168c2e46f Better interface for passing projection and other metadata 2013-08-04 15:10:08 +02:00
ahocevar b0c1ef04a1 Implementing getProjection for KML and GPX 2013-08-04 15:10:08 +02:00
ahocevar 55697dea28 getProjection method on parsers
With this, vector sources/layers do not need to make
assumptions on the data projection.
2013-08-04 15:10:08 +02:00
ahocevar 82a158bdd2 Merge pull request #889 from ahocevar/advanced-param
check-examples target failing because of G+ widgets
2013-08-04 06:09:25 -07:00
ahocevar da2fd4f80f Append '?mode=advanced' for advanced mode to avoid G+ inclusion 2013-08-04 14:38:55 +02:00
ahocevar 58949ed856 Adding tests, and fixing an issue revealed by the tests 2013-07-31 23:42:08 +02:00
ahocevar 5acff857e7 Add example, and use getFeatures in other examples
The new dedicated getfeatureinfo example shows how to combine
feature info from a WMS and a vector layer. The other examples
that previously used getFeatureInfo from vector layers now use
the more appropriate getFeatures.
2013-07-31 17:47:16 +02:00
ahocevar 4dd148a731 Implementing GetFeatureInfo for WMS 2013-07-31 12:10:02 +02:00
ahocevar f333acc183 Interface for GetFeatureInfo
When a source implements this interface, the layer renderer can
access the source to get feature info.
2013-07-31 12:09:39 +02:00
ahocevar 5307e5ea3f Until we know what we want to return, return undefined 2013-07-31 11:58:45 +02:00
ahocevar 53765ebd0f Merge pull request #878 from ahocevar/polygon-labels
Better label placement for polygons
2013-07-30 01:04:44 -07:00
ahocevar b2e25c8f6b Renaming method to getInteriorPoint
as suggested by @tschaub. Also giving credit to JTS.
2013-07-30 09:25:24 +02:00
ahocevar 2d08b5ff2c Merge pull request #850 from ahocevar/vector-events
Render changes when adding and removing features
2013-07-20 02:41:05 -07:00
ahocevar ca9f9b7563 Re-adding type cast, as suggested by @elemoine 2013-07-20 11:11:26 +02:00
ahocevar b43625820e Removing addFeatures from the API 2013-07-20 11:09:49 +02:00
ahocevar 11ef2cb7d1 Better label placement for polygons
Using the y-coordinate of the polygon's bounding box, this
simple algorithm intersects the polygon with the horizontal
center line of its bounding box. The x-coordinate of the label
point is the center of the longest segment of this intersection
that is inside the polygon.
2013-07-20 10:36:13 +02:00
ahocevar 781caff9e5 Expire tile by range and listen to changes
Instead of just listening for the first change, we now listen
for all changes, and expire tiles by tile range. The outcome is
that the vector layer's addFeatures and removeFeatures methods
now show instant results on the rendered map.
2013-07-19 14:07:16 +02:00
ahocevar d04c6f4c01 New pruneTileRange method
This also adds an assert that cache values are an instance of
ol.Tile in expireCache, instead of doing a type cast. Later we
will want to enforce the ol.Tile type by overriding the set
method.
2013-07-19 14:07:16 +02:00
ahocevar ac67c10acd Add and remove features with meaningful events
This adds a removeFeatures method, and makes the CHANGE event
more useful by adding information about changed features and
extent.
2013-07-19 14:07:15 +02:00