Posts

Post not yet marked as solved
0 Replies
1.1k Views
I am able to load KML on Google map with below code. But now I want to show .KMZ file on Google map. I did unarchived it & added Folder containing doc.kml & Files folder which comntains 1 image, & tried to show doc.kml file on Google map.But didn't succeeded. func showKMLFile(kmlfileurl:URL) { print("fileURL in show is \(kmlfileurl)") var renderer: GMUGeometryRenderer! var kmlParser: GMUKMLParser! if self.mapView != nil { kmlParser = GMUKMLParser(url:kmlfileurl) kmlParser.parse() renderer = GMUGeometryRenderer(map: self.mapView, geometries: kmlParser.placemarks, styles: kmlParser.styles) renderer.render() } } & I am calling this function like let fileManager = FileManager.default do { let docsArray = try fileManager.contentsOfDirectory(atPath: docsPath) print("docarray is \(docsArray)") for obj in docsArray{ if obj == "doc.kml" { self.showKMLFile(kmlfileurl: URL(fileURLWithPath: docsPath + "/" + "FAIRMEAD LF" + "/" + obj)) } } } catch { print(error) }
Posted
by PAGaikwad.
Last updated
.
Post not yet marked as solved
1 Replies
1.1k Views
I can draw more than around 8000 default red markers without setting icon property for marker. But I want to draw markers with different colors depending upon marker's value. In XCOde I get below warning:- "((null)) was false: Reached the max number of texture atlases, can not allocate more.  ((null)) was false: Failed to get the icon for the given CGImageRef. ((null)) was false: Failed to allocate texture space for marker"  from Google Map SDK & after that around 1300 markers it gets crashed. Is there any other way to set different colors to markers without crashing for more than 1300 markers. I am setting marker's colour like below:- marker.icon = GMSMarker.markerImage(with: self.getColorsFromString(strColor: strColor)) func getColorsFromString(strColor:String) -> UIColor { var color = UIColor() switch strColor { case "GREEN": color = UIColor.green case "YELLOW": color = UIColor.yellow case "RED": color = UIColor.red case "ORANGE": color = UIColor.orange case "BLUE": color = UIColor.blue case "CYAN": color = UIColor.cyan case "MAGENTA": color = UIColor.magenta default: color = UIColor.red print("default color") } return color }
Posted
by PAGaikwad.
Last updated
.
Post not yet marked as solved
1 Replies
298 Views
 I want to add image set in Assets for background image. What should be the dimensions for it for@2x,@3x for supporting all iPhone devices including iPhone XS Max? Will there be need of 2 image sets for iPhone X & for other iPhone devices? Will below dimensions work ? iPhone X:-1242X2688 828X1792 414X896 Other:- 1242X2208 828X1472 414X736
Posted
by PAGaikwad.
Last updated
.