Commit Graph

12 Commits

Author SHA1 Message Date
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
Éric Lemoine 8402eee0c3 Map "click" event renamed to "singleclick"
As discussed with @tschaub in #1195.
2013-10-31 09:37:16 +01:00
Éric Lemoine 16b817b830 Overlay stopEvent and insertFirst default to true 2013-10-30 09:49:38 +01:00
Bruno Binet 8f92deeac2 Fix overlay positioning in icon example 2013-10-07 18:51:34 +02:00
Tom Payne c82aeb586f Merge pull request #998 from twpayne/consistent-names
Consistent names
2013-09-09 07:48:42 -07:00
Tom Payne 8f8f94e697 Rename ol.layer.TileLayer to ol.layer.Tile 2013-09-09 15:14:45 +02:00
Frederic Junod 0efe92ab4c Fix popover in icon example 2013-09-09 10:23:28 +02:00
Éric Lemoine 7e25ecb3dc Remove map from OverlayOptions 2013-09-02 14:15:11 +02:00
Tim Schaub dd37d0e736 Slightly less giant icon 2013-08-28 10:45:24 -06:00
Tim Schaub ab2c4387b8 Move png to data to work with host-examples task 2013-08-27 16:36:13 -06:00
Tim Schaub efeb00e4a5 Add x/y offset for icon symbolizers 2013-08-27 16:22:45 -06:00
Tim Schaub 9c824584b3 Example using an icon symbolizer and displaying a popup
I'm adding this example to demonstrate a few things that should change:

 * the icon symbolizer should accept xOffset and yOffset in pixels
 * the `ol.geom.Geometry.prototype.getCoordinates` method should be exported
 * overlays should have a `panIntoView` method
2013-08-27 16:22:45 -06:00