Titanium JIRA Archive
Appcelerator Modules (MOD)

[MOD-2344] iOS: Ti.Map - MapView not drawing polygon in some cases

GitHub Issuen/a
TypeBug
PriorityHigh
StatusResolved
ResolutionCannot Reproduce
Resolution Date2018-02-11T11:04:26.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsMap
Labelsoverlays, ti.map
ReporterHans Knöchel
AssigneeUnknown
Created2017-07-04T17:28:19.000+0000
Updated2018-03-06T18:52:38.000+0000

Description

From the community on Github: {quote} Hi, thanks for the module! I ran into a situation where a convoluted set of user actions on iOS (device rotation, textfield focus/blur, tab swapping) ended up getting the MKMapView into a state where if I called mapView.addPolygons from the JS, they wouldn't actually render until the map was zoomed or panned. This was the only successful workaround I could find. I also tried posting different combinations of setNeedsDisplay, invalidatePath, and setNeedsLayout on both the current and main queue for the mapview as well as the overlay renderer. That said, it was a tough bug to reproduce so its possible that this doesnt actually fix things in the end. {quote} PR: https://github.com/appcelerator-modules/ti.map/pull/205

Comments

  1. Hans Knöchel 2018-02-11

    Resolving as Cannot reproduce as the original issue could not be reproduced and the PR is in an unmaintaned state.

JSON Source