Google Maps API Stylers Demo Documentation

Google Maps API Stylers Demo Documentation


DEMO                                        DOWNLOAD

Stylers

Stylers are formatting options of type MapTypeStyler which are applied to map features. The following MapTypeStyler options are supported:
  • hue (an RGB hex string) indicates the basic color.
  • lightness (a floating point value between -100 and 100) indicates the percentage change in brightness of the element. Negative values increase darkness (where -100 specifies black) while positive values increase brightness (where +100 specifies white).
  • saturation (a floating point value between -100 and 100) indicates the percentage change in intensity of the basic color to apply to the element.
  • gamma (a floating point value between 0.01 and 10.0, where 1.0 applies no correction) indicates the amount of gamma correction to apply to the element. Gammas modify the lightness of hues in a non-linear fashion, while not impacting white or black values. Gammas are typically used to modify the contrast of multiple elements. For example, you could modify the gamma to increase or decrease the contrast between the edges and interiors of elements. Low gamma values (< 1) increase contrast, while high values (> 1) decrease contrast.
  • inverse_lightness (if true) simply inverts the existing lightness. This is useful, for example, for quickly switching to a darker map with white text.
  • visibility (onoff, or simplified) indicates whether and how the element appears on the map. A simplified visibility removes some style features from the affected features; roads, for example, are simplified into thinner lines without outlines, while parks lose their label text but retain the label icon.
  • color (an RGB hex string) sets the color of the feature.
  • weight (an integer value, greater than or equal to zero) sets the weight of the feature, in pixels. Setting the weight to a high value may result in clipping near tile borders.
The color of a feature may be set with either a single color value, or modified by combination of huesaturation and lightness. These properties represent two different methods of representing color but it's possible to combine the two methods. For example, you might set a color and then alter the saturation and lightness to fade out the map when displaying a dialog. For more information on color models, see The Hue, Saturation, Lightness Model documentation.
Styler rules are applied in the order they appear within the MapTypeStyler array. Do not combine multiple operations into a single styler operation; instead, define each operation as a separate entry in the styler array. Order is important, as some operations are not commutative. Features and/or elements that are modified through styler operations (usually) already have existing styles; the operations act on those existing styles




Author : Solomon David

 

 Facebook , Google+     

Comments

Popular posts from this blog

Like And Dislike Rating System With PHP ,MySQL and Jquery

Best Social Networking Software CMS 2013 - Free