ios - How to perform an action on all CEMarker's in a CEMarkerGroup -


i've setup cemarkergroup's according data, , have displayed them. according citymaps' documentation, indicate following:

using marker group marker groups allow organize markers , perform functions on markers in group simultaneously, , perform operations need implement otherwise.

however, there don't appear exposed class or instance methods allow action on particular group. below, i've setup code

cemarkergroup *grpcondo  = [self.mapview markergroupwithname:@"grpcondo"]; cemarkergroup *grprental = [self.mapview markergroupwithname:@"grprental"]; cemarkergroup *grpcoop   = [self.mapview markergroupwithname:@"grpcoop"]; cemarkergroup *grpcondop = [self.mapview markergroupwithname:@"grpcondop"]; 

later, loop through list of markers i'm adding, specify group based on category (cat) value.

if ([cat isequaltostring:@"condo"]) {     [grpcondo  addmarker:marker]; } if ([cat isequaltostring:@"condop"]) {     [grpcondop addmarker:marker]; } if ([cat isequaltostring:@"rental unit"]) {     [grprental addmarker:marker]; } if ([cat isequaltostring:@"co-op"]) {     [grpcoop   addmarker:marker]; } 

these groups, associated map object, display fine, cannot find way act on these individual groups (e.g., hide group, show group, etc.) thoughts out there?

thanks!

i developer @ citymaps.

cemarkergroup rather bare, , part way organize objects are. batch operation have on marker group right remove markers in group map. have collision detection feature, saw other post on.

cemarkergroup provide readonly access markers, if want perform action each cemarker in group.

edit: answer comment, here code sample of how toggle markers in marker group.

    // toggled value     bool showrentals = yes;     for(cemarker *rentalmarker in grprental.markers) {         // property not yet exposed. have marker automatically fade in or out based on fadetime.         //rentalmarker.hidden = !showrentals;          // can use proof of concept         rentalmarker.alpha = showrentals ? 1.f : 0.f;     } 

Comments

Popular posts from this blog

jquery - How do you format the date used in the popover widget title of FullCalendar? -

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -