Commit Graph

1721 Commits

Author SHA1 Message Date
Tom Payne
b59eec7a83 Merge remote-tracking branch 'openlayers/master' into vector-api 2013-12-13 20:22:06 +01:00
Tom Payne
fdbb9f8d9e Fix type errors in vector-layer-sld example 2013-12-13 19:30:11 +01:00
Tom Payne
4470480dc9 Improve use of view in device-orientation example 2013-12-13 19:27:52 +01:00
Tom Payne
e96d56215b Add typecasts so examples compile 2013-12-13 19:16:05 +01:00
Tim Schaub
0ed59f7be3 Merge pull request #1348 from tschaub/beforechange
Add `ol.ObjectEvent` for changes to `ol.Object` properties.  Previously, `ol.Object` dispatched instances of `goog.events.Event` with type `change`.  Now `ol.ObjectEvent` instances will be dispatched on property changes.  The events include a `getKey` method to get the name of the property being changed.  The `beforepropertychange` type event is fired before a property value changes, and the `propertychange` type event fires after the property value changes.
2013-12-13 07:28:36 -08:00
Éric Lemoine
12c96510c1 Use olx options ns in icon and geojson examples 2013-12-13 13:43:51 +01:00
Tim Schaub
20d74810ab Export a getKey method on ol.ObjectEvent 2013-12-12 16:59:34 -07:00
Bart van den Eijnden
15eec2959c use official EPSG code 2013-12-12 17:02:15 +01:00
Bart van den Eijnden
069f6cce1a remove projection on vector source 2013-12-12 16:54:38 +01:00
Bart van den Eijnden
e7fe809227 now that the data option was removed, parse features manually 2013-12-12 16:02:06 +01:00
Tim Schaub
c8985b9906 Using unique event type values for distinct events
Any event target can be used to dispatch generic goog.events.Event instances with an arbitrary type.  In cases where we dispatch custom events, we should not use type values that collide with those used for generic events (at least internally).  This allows listeners a better chance of knowing what kind of argument they will receive.

As subsequent change will clean up the enumeration and add a bit more consistency.
2013-12-11 16:53:52 -07:00
Tom Payne
a03bf6d447 Add GeometryCollection to geojson example 2013-12-11 17:52:24 +01:00
Tom Payne
0943bbf070 Don't use postcompose in geojson example 2013-12-11 17:52:24 +01:00
Tom Payne
7b3721fa3f Use ol.source.GeoJSON in complex-geometry example 2013-12-11 14:14:33 +01:00
Tom Payne
b31385fcb6 Use ol.source.GeoJSON in vector-layer example 2013-12-11 14:14:33 +01:00
Tom Payne
a814dd11ca Use ol.source.GeoJSON in icon example 2013-12-11 14:14:33 +01:00
Tom Payne
94d392c0c6 Use ol.source.GeoJSON in geojson example 2013-12-11 14:14:33 +01:00
Tim Schaub
3e905d804c Merge pull request #1335 from tschaub/geometry-type
Change geometry type enum and mark as stable.
2013-12-10 08:50:54 -08:00
Tom Payne
514ebb752b Use ol.format.GeoJSON in icon example 2013-12-10 15:35:50 +01:00
Tom Payne
0941f06c0b Use ol.format.GeoJSON in geojson example 2013-12-10 15:35:50 +01:00
Tom Payne
ed5b8b6512 Merge remote-tracking branch 'openlayers/master' into vector-api 2013-12-10 12:54:27 +01:00
Tom Payne
5e710b4e57 Add snapping to synthetic points example (to be removed) 2013-12-09 16:40:54 +01:00
Tom Payne
d0d36193a7 Have some fun in the complex-geometry example 2013-12-09 16:40:54 +01:00
Frederic Junod
02cee684a7 Remove trailing zeros in mtbland.geojson 2013-12-09 16:37:33 +01:00
Tom Payne
90738d559a Add complex-geometry example 2013-12-09 16:37:33 +01:00
Tom Payne
43e4292ec9 Tidy up ol.source.MapGuide and add ratio option 2013-12-06 18:11:01 +01:00
Tom Payne
0a5cc8812c Merge pull request #1236 from jumpinjackie/master
MapGuide untiled map support
2013-12-06 08:59:57 -08:00
Tim Schaub
2f7fa8f442 Using PascalCase for geometry enum values
This adds a bit more inconsistency to the library, but we didn't have complete consistency before.  Almost all existing string enum values are lowercase (a couple are camelCase and one is dash-separated).  The closure library isn't consistent either (with case for enum properties or values).  I imagine this could be justified in saying someone could blindly use GeoJSON type values in places, but in the end, you'll need to read the docs before guessing right.
2013-12-05 14:40:26 -07:00
oterral
bd560bfb0f Add WMS GetCapabilties parser 2013-12-05 16:57:33 +01:00
Tom Payne
1dd5f7f7c8 Merge remote-tracking branch 'openlayers/master' into vector-api 2013-12-05 16:53:04 +01:00
Tom Payne
5acc673c68 Add layer to forEachFeatureAtPixel callbacks in examples 2013-12-04 00:05:45 +01:00
Tom Payne
f1a9f76841 Break out of forEachFeatureAtPixel as soon as hit detected in vector-layer example 2013-12-04 00:05:45 +01:00
Tom Payne
41811e6566 Break out of forEachFeatureAtPixel as soon as hit detected in synthetic-points example 2013-12-04 00:05:45 +01:00
Tom Payne
15fd9f7662 Break out of forEachFeatureAtPixel as soon as hit detected in icon example 2013-12-04 00:05:44 +01:00
Éric Lemoine
6b9bc9d8e8 Use hit detection in vector-layer example
The hit detection code doesn't correctly play well with the skiping of geometries using the renderGeometryFunction. Features/geometries that are not rendered by the replay API are not detected by the hit detection mechanism. For that reason, until we find a solution, we don't use renderGeometryFunction in the vector-layer example.
2013-12-02 15:06:19 +01:00
Éric Lemoine
24e7a81ae5 Detect when mouse is over marker in icon example 2013-12-02 15:06:19 +01:00
Éric Lemoine
53ecc8edb6 Add popup back to icon example 2013-12-02 15:06:19 +01:00
Éric Lemoine
a1e1393f44 Add hit detection to synthetic-points example 2013-12-02 15:06:19 +01:00
Éric Lemoine
e358321b92 The iRender draw functions are passed a data object 2013-12-02 15:06:18 +01:00
Bart van den Eijnden
029c7ea7f3 add missing requires 2013-12-02 09:48:59 +01:00
Bart van den Eijnden
d9ba4e387c add an example to display GPX tracks 2013-12-02 09:46:11 +01:00
Frederic Junod
e2d9c77e08 Notify if WebGL is not supported 2013-11-29 10:43:02 +01:00
Frederic Junod
0908490385 Add lineDash property to ol.style.Stroke 2013-11-28 13:47:31 +01:00
Frederic Junod
b210073ef0 Add lineCap property to ol.style.Stroke 2013-11-28 09:36:54 +01:00
Tim Schaub
8cc4ae8dbd Separate load requests from feature requests
This separates the action of requesting an extent to be loaded from the action of requesting cached features.  The renderer (or any other consumer of a vector source) calls load to request a data extent.  A `featureload` event fires when new features are loaded.  The renderer (or any other consumer) separately asks for cached features given an extent.  This vector source only loads features once, but this separation will also work with sources that make multiple requests for data in different extents.

This also removes the `data` option from the vector source in favor of a `features` option.  Since we no longer have shared data structures for geometries, people can manually create features and pass them to a vector source.  The `addFeatures` method is exported as well.  This is used to add features to a source that don't have a representation on the "remote" (or server).
2013-11-27 12:22:32 -07:00
Tom Payne
424f8fcc6d Merge remote-tracking branch 'openlayers/master' into vector-api 2013-11-27 13:10:20 +01:00
Éric Lemoine
82e03ea508 Add an icon example 2013-11-26 16:32:03 +01:00
Éric Lemoine
1d8fefe683 Adapt styleFunction in vector-layer example 2013-11-26 14:19:24 +01:00
Éric Lemoine
972deebbc6 Adapt styleFunction in synthetic-points example 2013-11-26 14:19:24 +01:00
Éric Lemoine
9be03b2e3a Use ol.style.Style in synthetic-points example 2013-11-26 14:19:24 +01:00