iPhone SDK Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsMobile ProgrammingiPhone SDK Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old March 3rd, 2011, 04:02 AM
masaniparesh masaniparesh is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2011
Posts: 7 masaniparesh User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 41 m 4 sec
Reputation Power: 0
Create Overlayview for set of rectangles..

Hi All,

I am new iPhone developer and really looking for help on following issue I am stuck with. Any help would be appreciated.

I am trying to create overlay of set of rectangles to stack them on one another. I have required coordinates. I know how to create the polyline view and bound them by MapRect to make it visible on loadview.

Code:
// the data representing the route. 
MKPolyline* _route;
MKPolylineView* _routeView;

// Following lines create polyline for my coordinateArray, add into overlay, and make it visible on map
self.route = [MKPolyline polylineWithCoordinates:coordinateArray count:points.count];
[self.mapView addOverlay:self.route];
[self.mapView setVisibleMapRect:[self.route boundingMapRect]];
     

- (MKOverlayView *)mapView:(MKMapView *)mapView viewForOverlay:(id <MKOverlay>)overlay
{          
    if ([overlay isKindOfClass:[MKPolyline class]])
    {
     self.routeView = [[[MKPolylineView alloc] initWithPolyline:self.route] autorelease];
     self.routeView.fillColor = [UIColor redColor];
     self.routeView.strokeColor = [UIColor redColor];
     self.routeView.lineWidth = 8;
     return self.routeView;
    }
    return nil;
}



Now I want to convert all my coordinates into set of rectangles and bound them by the outer rectangle. Could anyone please help me on this.

Thanks in advance.

Reply With Quote
Reply

Viewing: Dev Shed ForumsMobile ProgrammingiPhone SDK Development > Create Overlayview for set of rectangles..

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap