Style js


OpenLayers.Style - OpenLayers OpenLayers.StyleThis class represents a UserStyle obtained from a SLD, containing styling rules.SummaryOpenLayers.StyleThis class represents a UserStyle obtained from a SLD, containing styling rules.Propertiesid{String} A unique id for this session.name{String}title{String} Title of this style (set if included in SLD)description{String} Description of this style (set if abstract is included in SLD)layerName{String} name of the layer that this style belongs to, usually according to the NamedLayer attribute of an SLD document.isDefault{Boolean}rules{Array(OpenLayers.Rule)}context{Object} An optional object with properties that symbolizers’ property values should be evaluated against. defaultStyle{Object} hash of style properties to use as default for merging rule-based style symbolizers onto. defaultsPerSymbolizer{Boolean} If set to true, the defaultStyle will extend the symbolizer of every rule. propertyStyles{Hash of Boolean} cache of style properties that need to be parsed for propertyNames. ConstructorOpenLayers.StyleCreates a UserStyle.Functionsdestroynullify references to prevent circular references and memory leakscreateSymbolizercreates a style by applying all feature-dependent rules to the base style.applySymbolizercreateLiteralscreates literals for all style properties that have an entry in <this.propertyStyles>.findPropertyStylesLooks into all rules for this style and the defaultStyle to collect all the style hash property names containing ${...}addPropertyStylesaddRulesAdds rules to this style.setDefaultStyleSets the default style for this style object.getSymbolizerPrefixReturns the correct symbolizer prefix according to the geometry type of the passed geometrycloneClones this style.createLiteralconverts a style value holding a combination of PropertyName and Literal into a Literal, taking the property values from the passed features.ConstantsOpenLayers.Style.SYMBOLIZER_PREFIXES{Array} prefixes of the sld symbolizers. Properties id{String} A unique id for this session. name{String} title{String} Title of this style (set if included in SLD) description{String} Description of this style (set if abstract is included in SLD) layerName{String} name of the layer that this style belongs to, usually according to the NamedLayer attribute of an SLD document. isDefault{Boolean} rules{Array(OpenLayers.Rule)} context{Object} An optional object with properties that symbolizers’ property values should be evaluated against.  If no context is specified, feature.attributes will be used defaultStyle{Object} hash of style properties to use as default for merging rule-based style symbolizers onto.  If no rules are defined, createSymbolizer will return this style.  If defaultsPerSymbolizer is set to true, the defaultStyle will only be taken into account if there are rules defined. defaultsPerSymbolizer{Boolean} If set to true, the defaultStyle will extend the symbolizer of every rule.  Properties of the defaultStyle will also be used to set missing symbolizer properties if the symbolizer has stroke, fill or graphic set to true.  Default is false. propertyStyles{Hash of Boolean} cache of style properties that need to be parsed for propertyNames.  Property names are keys, values won’t be used. Constructor OpenLayers.StyleCreates a UserStyle.Parametersstyle{Object} Optional hash of style properties that will be used as default style for this style object.  This style applies if no rules are specified.  Symbolizers defined in rules will extend this default style.options{Object} An optional object with properties to set on the style.Valid optionsrules{Array(OpenLayers.Rule)} List of rules to be added to the style.Returns{OpenLayers.Style} Functions destroydestroy: function()nullify references to prevent circular references and memory leaks createSymbolizercreateSymbolizer: function(feature)creates a style by applying all feature-dependent rules to the base style.Parametersfeature{OpenLayers.Feature} feature to evaluate rules forReturns{Object} symbolizer hash applySymbolizerapplySymbolizer: function(rule,style,feature)Parametersrule{OpenLayers.Rule}style{Object}feature{<OpenLayer.Feature.Vector>}Returns{Object} A style with new symbolizer applied. createLiteralscreateLiterals: function(style,feature)creates literals for all style properties that have an entry in <this.propertyStyles>.Parametersstyle{Object} style to create literals for.  Will be modified inline.feature{Object}Returns{Object} the modified style findPropertyStylesfindPropertyStyles: function()Looks into all rules for this style and the defaultStyle to collect all the style hash property names containing ${...} strings that have to be replaced using the createLiteral method before returning them.Returns{Object} hash of property names that need createLiteral parsing.  The name of the property is the key, and the value is true; addPropertyStylesaddPropertyStyles: function(propertyStyles,symbolizer)ParameterspropertyStyles{Object} hash to add new property styles to.  Will be modified inlinesymbolizer{Object} search this symbolizer for property stylesReturns{Object} propertyStyles hash addRulesaddRules: function(rules)Adds rules to this style.Parametersrules{Array(OpenLayers.Rule)} setDefaultStylesetDefaultStyle: function(style)Sets the default style for this style object.Parametersstyle{Object} Hash of style properties getSymbolizerPrefixgetSymbolizerPrefix: function(geometry)Returns the correct symbolizer prefix according to the geometry type of the passed geometryParametersgeometry{OpenLayers.Geometry}Returns{String} key of the according symbolizer cloneclone: function()Clones this style.Returns{OpenLayers.Style} Clone of this style. createLiteralOpenLayers.Style.createLiteral = function(value,context,feature,property)converts a style value holding a combination of PropertyName and Literal into a Literal, taking the property values from the passed features.Parametersvalue{String} value to parse.  If this string contains a construct like “foo ${bar}”, then “foo “ will be taken as literal, and “${bar}” will be replaced by the value of the “bar” attribute of the passed feature.context{Object} context to take attribute values fromfeature{OpenLayers.Feature.Vector} optional feature to pass to OpenLayers.String.format for evaluating functions in the context.property{String} optional, name of the property for which the literal is being created for evaluating functions in the context.Returns{String} the parsed value.  In the example of the value parameter above, the result would be “foo valueOfBar”, assuming that the passed feature has an attribute named “bar” with the value “valueOfBar”. Constants OpenLayers.Style.SYMBOLIZER_PREFIXES{Array} prefixes of the sld symbolizers.  These are the same as the main geometry types Generated by Natural Docs OpenLayersJavaScript Mapping LibraryOpenLayersOpenLayersBaseTypesBase TypesBoundsClassDateElementLonLatPixelSizeControlControlControlArgParserAttributionButtonCacheReadCacheWriteDragFeatureDragPanDrawFeatureEditingToolbarGeolocateGetFeatureGraticuleKeyboardDefaultsLayerSwitcherMeasureModifyFeatureMousePositionNavigationNavigationHistoryNavToolbarOverviewMapPanPanelPanPanelPanZoomPanZoomBarPermalinkPinchZoomScaleScaleLineSelectFeatureSLDSelectSnappingSplitTouchNavigationTransformFeatureUTFGridWMSGetFeatureInfoWMTSGetFeatureInfoZoomZoomBoxZoomInZoomOutZoomPanelZoomToMaxExtentFeatureFeatureVectorFilterFilterComparisonFeatureIdFunctionLogicalSpatialFormatFormatArcXMLArcXML.FeaturesAtomContextCQLCSWGetDomainCSWGetDomain.v2_0_2CSWGetRecordsCSWGetRecords.v2_0_2FilterFilterv1v1_0_0v1_1_0GMLGMLBasev2v3SLDSLDSLD/v1_0_0_GeoServerv1v1_0_0GeoJSONGeoRSSGPXJSONKMLOGCExceptionReportOSMOWSCommonOWSCommonv1v1_0_0v1_1_0OWSContextOWSContext.v0_3_1QueryStringFilterSOSCapabilitiesSOSCapabilities.v1_0_0SOSGetFeatureOfInterestSOSGetObservationTextVersionedOGCWCSGetCoverage version 1.1.0WFSWFSCapabilitiesWFSCapabilitiesv1v1_0_0v1_1_0WFSTWFSTv1v1_0_0v1_1_0WMCWMCv1v1_0_0v1_1_0WMSCapabilitiesWMSCapabilitiesv1v1_1v1_1_0v1_1_1v1_3v1_3_0WMSCapabilities/v1_1_1_WMSCWMSDescribeLayerWMSDescribeLayerv1_1WFSDescribeFeatureTypeWKTWMSGetFeatureInfoWMTSCapabilitiesWMTSCapabilities.v1_0_0WPSCapabilitiesWPSCapabilities.v1_0_0WPSDescribeProcessWPSExecute version 1.0.0XLSXLS.v1XLS.v1_1_0XMLGeometryGeometryCollectionCurveLinearRingLineStringMultiLineStringMultiPointMultiPolygonPointPolygonHandlerHandlerBoxClickDragFeatureHoverKeyboardMouseWheelPathPinchPointPolygonRegularPolygonLangLangarbe-taraskbgbrcacs-CZda-DKdeenen-CAeselfifrfurglgswhrhsbhuiaidioisitjakmkshltndsnbnlnnocplptpt-BRrusksv-SEtevizh-CNzh-TWLayerLayerLayerArcGISCache.jsArcGIS93RestArcIMSBingBoxesEventPaneFixedZoomLevelsGeoRSSGoogleGoogle.v3GridHTTPRequestImageKaMapKaMapCacheMapGuideMapServerMarkersPointGridPointTrackSphericalMercatorTextTileCacheTMSVectorVector.RootContainerWMSWMTSWorldWindXYZZoomifyOSMUTFGridMarkerMarkerBoxPopupPopupAnchoredAnchoredBubbleFramedFramedCloudProtocolProtocolProtocolCSWCSW.v2_0_2HTTPScriptSOS.DEFAULTSSOS.v1_0_0WFSWFSv1v1_0_0v1_1_0RendererRendererCanvasElementsIndexerSVGVMLRequestRequestXMLHttpRequestStrategyStrategyBBOXClusterFilterFixedPagingRefreshSaveSymbolizerSymbolizerLinePointPolygonRasterTextTileTileImageImage.IFrameUTFGridDeprecatedOpenLayersConsoleEventsIconKineticMapProjectionRuleSingleFile.jsStyleStyle2StyleMapTweenUtilSphericalAnimationEvents.buttonclickIndexEverythingClassesConstantsFunctionsPropertiesFilesConstructorEverythingClassesConstantsConstructorFilesFunctionsProperties Contains convenience functions for string manipulation.This class represents an SLD Rule, as being used for rule-based SLD styling.{Object} hash of style properties to use as default for merging rule-based style symbolizers onto. destroy: function()nullify references to prevent circular references and memory leakscreateSymbolizer: function(feature)creates a style by applying all feature-dependent rules to the base style.applySymbolizer: function(rule,style,feature)createLiterals: function(style,feature)creates literals for all style properties that have an entry in this.propertyStyles.findPropertyStyles: function()Looks into all rules for this style and the defaultStyle to collect all the style hash property names containing ${...}addPropertyStyles: function(propertyStyles,symbolizer)addRules: function(rules)Adds rules to this style.setDefaultStyle: function(style)Sets the default style for this style object.getSymbolizerPrefix: function(geometry)Returns the correct symbolizer prefix according to the geometry type of the passed geometryclone: function()Clones this style.OpenLayers.Style.createLiteral = function(value,context,feature,property)converts a style value holding a combination of PropertyName and Literal into a Literal, taking the property values from the passed features.{Boolean} If set to true, the defaultStyle will extend the symbolizer of every rule. Creates a UserStyle.Features are combinations of geography and attributes. A Geometry is a description of a geographic object. Vector features use the OpenLayers.Geometry classes as geometry description. format: function(template,context,args)Given a string with tokens in the form ${token}, return a string with tokens replaced with properties from the given context object. Close

Wyszukiwarka

Podobne podstrony:
Style js
Util js
style
edit style
js zegarek na www
Animation js
yamaha style ludowe DieStern
Format js
Map js
livehelp js
Tile js
PHP JS readme
clock style1
b js
test style reprezentacji

więcej podobnych podstron