How to do clustering with Google Maps in iOS

Khoa Pham
Khoa Pham
Nov 6 · 2 min read

Basic with Google Maps

Add to Podfile pod 'GoogleMaps'

Add a custom marker

import GoogleMapsfinal class StopMarker: GMSMarker {
let stop: Stop
init(stop: Stop) {
self.stop = stop
super.init()
self.title = stop.name
self.position = stop.toCoordinate()

let imageView = UIImageView(frame: CGRect(x: 0, y: 0, width: 30, height: 30))
imageView.layer.cornerRadius = 15…

Keep the story going. Sign up for an extra free read.

Khoa Pham

Written by

Khoa Pham

My apps https://onmyway133.github.io/

Fantageek

Fantageek

Simple apps that make sense

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade