Created
July 12, 2016 15:58
-
-
Save mousebird/e8d8778a567c9ccad368e46866bdf444 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func insertClusteredMarkers(compB : NSArray, theBaseView: MaplyBaseViewController) { | |
let size = CGSizeMake(32, 32) | |
let image = UIImage (named: "alcohol-shop-24@2x") | |
var markers = [MaplyScreenMarker]() | |
for object in compB { | |
let marker = MaplyScreenMarker() | |
marker.image = image | |
marker.loc = (object as! MaplyVectorObject).center() | |
marker.size = size | |
marker.userObject = object.userObject | |
markers.append(marker) | |
} | |
theBaseView.addScreenMarkers(markers, desc: [kMaplyClusterGroup: 0], mode: MaplyThreadMode.Current) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment