that Andreas has been working so hard on. I think this is the single most awesome commit I've ever had the pleasure of committing. The results of this commit are described on http://trac.openlayers.org/wiki/Styles: essentially, this makes it possible to style features in all kinds of fun ways based on rules, and will also form the underlying basis for #533. Things this patch adds: * OL.Rule classes. These classes allow you to do tests against the propertie of a feature, and set a style based on these properties -- so you can compare the 'speedlimit' property of a line, and test if it is > 60, and if it is greater than 60, render it in a different color. You can also test combinations of rules using the OL.Rule.Logical class, and test featureids with the FeatureID class. * OL.Style class: The OL.Style class lets you wrap up Rules into styles that can be used with drawFeature to draw the feature in the selected style. * OL.Layer.Vector.drawFeature will check if the given style is an OL.Style object, and if so, it will draw the feature accordingly. examples/georss-flickr.html shows usage of these classes. Many, many thanks go to Andreas for all his hard work on this: this code really is very pretty, and includes unit tests for all the classes (and we know that I am a big fan of tests.) Three cheers for Andreas: Hip hip, hooray! hip hip, hooray! hip hip, hooray! git-svn-id: http://svn.openlayers.org/trunk/openlayers@5429 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
102 lines
3.6 KiB
HTML
102 lines
3.6 KiB
HTML
<ul id="testlist">
|
|
<li>test_BaseTypes.html</li>
|
|
<li>BaseTypes/test_Class.html</li>
|
|
<li>BaseTypes/test_Element.html</li>
|
|
<li>BaseTypes/test_Pixel.html</li>
|
|
<li>BaseTypes/test_Size.html</li>
|
|
<li>BaseTypes/test_LonLat.html</li>
|
|
<li>BaseTypes/test_Bounds.html</li>
|
|
<li>test_Console.html</li>
|
|
<li>test_Geometry.html</li>
|
|
<li>Geometry/test_Point.html</li>
|
|
<li>Geometry/test_Curve.html</li>
|
|
<li>Geometry/test_LineString.html</li>
|
|
<li>Geometry/test_MultiLineString.html</li>
|
|
<li>Geometry/test_LinearRing.html</li>
|
|
<li>Geometry/test_Collection.html</li>
|
|
<li>Geometry/test_MultiPoint.html</li>
|
|
<li>Geometry/test_Polygon.html</li>
|
|
<li>Geometry/test_MultiPolygon.html</li>
|
|
<li>Geometry/test_Rectangle.html</li>
|
|
<li>Geometry/test_Surface.html</li>
|
|
<li>test_Format.html</li>
|
|
<li>Format/test_XML.html</li>
|
|
<li>Format/test_KML.html</li>
|
|
<li>Format/test_GeoRSS.html</li>
|
|
<li>Format/test_JSON.html</li>
|
|
<li>Format/test_GeoJSON.html</li>
|
|
<li>Format/test_GML.html</li>
|
|
<li>Format/test_WKT.html</li>
|
|
<li>test_Icon.html</li>
|
|
<li>test_Marker.html</li>
|
|
<li>Marker/test_Box.html</li>
|
|
<li>test_Popup.html</li>
|
|
<li>Popup/test_Anchored.html</li>
|
|
<li>Popup/test_AnchoredBubble.html</li>
|
|
<li>test_Feature.html</li>
|
|
<li>Feature/test_Vector.html</li>
|
|
<li>test_Style.html</li>
|
|
<li>test_Rule.html</li>
|
|
<li>Rule/test_FeatureId.html</li>
|
|
<li>Rule/test_Logical.html</li>
|
|
<li>Rule/test_Comparison.html</li>
|
|
<li>test_Events.html</li>
|
|
<li>test_Util.html</li>
|
|
<li>test_Layer.html</li>
|
|
<li>test_Renderer.html</li>
|
|
<li>Layer/test_EventPane.html</li>
|
|
<li>Layer/test_FixedZoomLevels.html</li>
|
|
<li>Layer/test_GeoRSS.html</li>
|
|
<li>Layer/test_SphericalMercator.html</li>
|
|
<li>Layer/test_Google.html</li>
|
|
<li>Layer/test_Grid.html</li>
|
|
<li>Layer/test_HTTPRequest.html</li>
|
|
<li>Layer/test_Image.html</li>
|
|
<li>Layer/test_KaMap.html</li>
|
|
<li>Layer/test_Markers.html</li>
|
|
<li>Layer/test_MultiMap.html</li>
|
|
<li>Layer/test_MapServer.html</li>
|
|
<li>Layer/test_Text.html</li>
|
|
<li>Layer/test_WMS.html</li>
|
|
<li>Layer/test_WFS.html</li>
|
|
<li>Layer/test_TMS.html</li>
|
|
<li>Layer/test_TileCache.html</li>
|
|
<li>Layer/test_Vector.html</li>
|
|
<li>Layer/test_Yahoo.html</li>
|
|
<li>Layer/test_GML.html</li>
|
|
<li>Layer/test_WrapDateLine.html</li>
|
|
<li>test_Tile.html</li>
|
|
<li>Tile/test_Image.html</li>
|
|
<li>Tile/test_WFS.html</li>
|
|
<li>test_Control.html</li>
|
|
<li>Control/test_Attribution.html</li>
|
|
<li>Control/test_SelectFeature.html</li>
|
|
<li>Control/test_DragFeature.html</li>
|
|
<li>Control/test_ModifyFeature.html</li>
|
|
<li>Control/test_DragPan.html</li>
|
|
<li>Control/test_OverviewMap.html</li>
|
|
<li>Control/test_NavToolbar.html</li>
|
|
<li>Control/test_MouseToolbar.html</li>
|
|
<li>Control/test_MousePosition.html</li>
|
|
<li>Control/test_LayerSwitcher.html</li>
|
|
<li>Control/test_Panel.html</li>
|
|
<li>Control/test_PanZoom.html</li>
|
|
<li>Control/test_PanZoomBar.html</li>
|
|
<li>Control/test_Permalink.html</li>
|
|
<li>Control/test_Scale.html</li>
|
|
<li>test_Handler.html</li>
|
|
<li>Handler/test_Feature.html</li>
|
|
<li>Handler/test_MouseWheel.html</li>
|
|
<li>Handler/test_Keyboard.html</li>
|
|
<li>Handler/test_Drag.html</li>
|
|
<li>Handler/test_Point.html</li>
|
|
<li>Handler/test_Path.html</li>
|
|
<li>Handler/test_Polygon.html</li>
|
|
<li>Handler/test_RegularPolygon.html</li>
|
|
<li>test_Projection.html</li>
|
|
<li>Renderer/test_Elements.html</li>
|
|
<li>Renderer/test_SVG.html</li>
|
|
<li>Renderer/test_VML.html</li>
|
|
<li>test_Map.html</li>
|
|
</ul>
|