Gpolygon"
From Documentation
Tmillsclare (talk | contribs) m (Created page with 'init') |
|||
(13 intermediate revisions by 6 users not shown) | |||
Line 1: | Line 1: | ||
− | + | {{ZKComponentReferencePageHeader}} | |
+ | |||
+ | = Gpolygon = | ||
+ | |||
+ | *Demonstration: [http://www.zkoss.org/zkdemo/reporting/google_map Gmaps] | ||
+ | *Java API: [https://github.com/zkoss/zkgmapsz/releases in release zip] | ||
+ | *JavaScript API: N/A | ||
+ | *Style Guide: N/A | ||
+ | |||
+ | = Employment/Purpose = | ||
+ | |||
+ | Polygon drawn on the Google Maps per the given (latitude, longitude) points, visible zoom level(0~3), and fill color, etc.. | ||
+ | |||
+ | = Example = | ||
+ | |||
+ | [[Image:ZKComRef_Gpolygon_Example.png]] | ||
+ | |||
+ | <source lang="xml" > | ||
+ | <script type="text/javascript" content="zk.googleAPIkey='Your-Google-API-Key'"/> | ||
+ | <gmaps id="mymap" width="500px" height="300px" showSmallCtrl="true"> | ||
+ | <gpolygon path="37.42838786,-122.13998795, | ||
+ | 37.43561240,-122.13277816, | ||
+ | 37.42416187,-122.11441040, | ||
+ | 37.42157162,-122.12007522, | ||
+ | 37.41734524,-122.12316513, | ||
+ | 37.42838786,-122.13998795"/> | ||
+ | </gmaps> | ||
+ | </source> | ||
+ | |||
+ | == Disable Path Encoding == | ||
+ | |||
+ | {{versionSince| 3.3.0}} | ||
+ | |||
+ | see: [[ZK_Component_Reference/Diagrams_and_Reports/Gmaps/Gpolyline#Disable_Path_Encoding | Gpolyline - Disable_Path_Encoding]] | ||
+ | |||
+ | =Supported Events= | ||
+ | |||
+ | |||
+ | {| class='wikitable' | width="100%" | ||
+ | ! <center>Name</center> | ||
+ | ! <center>Event Type</center> | ||
+ | |- | ||
+ | | None | ||
+ | | None | ||
+ | |} | ||
+ | *Inherited Supported Events: [[ZK_Component_Reference/Diagrams_and_Reports/Gmaps/Gpolyline#Supported_Events | Gpolyline]] | ||
+ | |||
+ | =Supported Children= | ||
+ | |||
+ | *None | ||
+ | |||
+ | =Use Cases= | ||
+ | |||
+ | {| class='wikitable' | width="100%" | ||
+ | ! Version !! Description !! Example Location | ||
+ | |- | ||
+ | | | ||
+ | | | ||
+ | | | ||
+ | |} | ||
+ | |||
+ | =Version History= | ||
+ | {{LastUpdated}} | ||
+ | |||
+ | {| class='wikitable' | width="100%" | ||
+ | ! Version !! Date !! Content | ||
+ | |- | ||
+ | | | ||
+ | | | ||
+ | | | ||
+ | |} | ||
+ | |||
+ | {{ZKComponentReferencePageFooter}} |
Latest revision as of 09:32, 15 September 2023
Gpolygon
- Demonstration: Gmaps
- Java API: in release zip
- JavaScript API: N/A
- Style Guide: N/A
Employment/Purpose
Polygon drawn on the Google Maps per the given (latitude, longitude) points, visible zoom level(0~3), and fill color, etc..
Example
<script type="text/javascript" content="zk.googleAPIkey='Your-Google-API-Key'"/>
<gmaps id="mymap" width="500px" height="300px" showSmallCtrl="true">
<gpolygon path="37.42838786,-122.13998795,
37.43561240,-122.13277816,
37.42416187,-122.11441040,
37.42157162,-122.12007522,
37.41734524,-122.12316513,
37.42838786,-122.13998795"/>
</gmaps>
Disable Path Encoding
Since 3.3.0
see: Gpolyline - Disable_Path_Encoding
Supported Events
None | None |
- Inherited Supported Events: Gpolyline
Supported Children
*None
Use Cases
Version | Description | Example Location |
---|---|---|
Version History
Version | Date | Content |
---|---|---|