Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kml Style width for LineString is not rendered in pixels #1401

Open
AiswaryaS opened this issue Oct 9, 2024 · 0 comments
Open

Kml Style width for LineString is not rendered in pixels #1401

AiswaryaS opened this issue Oct 9, 2024 · 0 comments
Labels
triage me I really want to be triaged. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@AiswaryaS
Copy link

Summary

Kml Style width for LineString is not rendered in pixels

Expected behavior

The KML style width in float needs to be converted to pixels while rendering map.

Observed behavior

The KML style width is very thin on the map and there is a difference between 10dp width line and 10.0 as strokline width. The rendering of the same KML file line strings on google maps on Android is different from the thickness of the line strings on iOS.We also observed that the kml file without width element appears too thick on Android and very thin on iOS.

Environment details

  1. All android versions and all device model
  2. Google maps utility version "com.google.maps.android:android-maps-utils:3.8.2")

Steps to reproduce

Render any kml that has this style element and apply to line strings:

<Style> 9aB10FDA 10.0 </Style>

Code example

val kmlLayer = KmlLayer(
googleMap,
replaceWidthValue(ByteArrayInputStream(kmlByteArray)),
this
)
kmlLayer?.addLayerToMap()

I am unable to override the style using this kmlLayer object as the KmlStyle is not exposed. Please help to fix this as the rendering is not uniform on iOS and Android. Kindly provide us with as solution or workaround quickly if possible.

Thanks,
Aiswarya

@AiswaryaS AiswaryaS added triage me I really want to be triaged. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. labels Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage me I really want to be triaged. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
Development

No branches or pull requests

1 participant