Created
July 12, 2016 15:56
-
-
Save mousebird/3cd8337be42edc5e11bcba43d1bcefb3 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