Gpolyline"

From Documentation
Line 30: Line 30:
 
  since 3.3.0
 
  since 3.3.0
  
In order to preserve bandwidth the polyline/polygon path coordinates are encoded (default) with a [https://developers.google.cn/maps/documentation/utilities/polylinealgorithm lossy algorithm] (i.e. some precision is lost  
+
In order to preserve bandwidth the polyline/polygon path coordinates are encoded (default) with a [https://developers.google.cn/maps/documentation/utilities/polylinealgorithm lossy algorithm] (i.e. some precision is lost - visible at high zoom levels). In cases where the highest precision is needed (e.g. when editing a polyline/polygon) this encoding can be disabled by setting <code>pathEncoded="false"</code> / <code>polygon.setPathEncoded(false);</code> - at the cost of increased network request and response sizes.
- visible at high zoom levels). In cases where the highest precision is needed (e.g. when editing a polyline/polygon) this encoding can be disabled by setting <code>pathEncoded="false"</code> / <code>polygon.setPathEncoded(false);</code> - at the cost of increased network request and response sizes.
 
  
 
=Supported Events=
 
=Supported Events=

Revision as of 03:44, 10 September 2021

Gpolyline

  • Demonstration: Gmaps
  • Java API: N/A
  • JavaScript API: N/A
  • Style Guide: N/A

Employment/Purpose

Polyline drawn on the Google Maps per the given (latitude, longitude) points and visible zoom level(0~3).

Example

ZKComRef Gpolyline Example.png

<window title="Google Maps" border="normal" width="520px">
    <script type="text/javascript" content="zk.googleAPIkey='Your-Google-API-Key'"/>
    <gmaps id="mymap" width="500px" height="300px" showSmallCtrl="true">
        <gpolyline points="37.42838786,-122.13998795,3,37.43561240,-122.13277816,3,37.42416187,-122.11441040,3,
                                       37.42157162,-122.12007522,3,37.41734524,-122.12316513,3,37.42838786,-122.13998795,3"/>
    </gmaps>
</window>

Disable Path Encoding

since 3.3.0

In order to preserve bandwidth the polyline/polygon path coordinates are encoded (default) with a lossy algorithm (i.e. some precision is lost - visible at high zoom levels). In cases where the highest precision is needed (e.g. when editing a polyline/polygon) this encoding can be disabled by setting pathEncoded="false" / polygon.setPathEncoded(false); - at the cost of increased network request and response sizes.

Supported Events

Name
Event Type
None None

Supported Children

*None

Use Cases

Version Description Example Location
     

Version History

Last Update : 2021/09/10


Version Date Content
     



Last Update : 2021/09/10

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.