Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7870855
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T01:44:04+00:00 2026-06-03T01:44:04+00:00

Information in map is : <objectgroup name=Waypoint width=32 height=24> <object name=waypointsline x=843 y=3> <polyline

  • 0

Information in map is :

     <objectgroup name="Waypoint" width="32" height="24">
  <object name="waypointsline" x="843" y="3">
   <polyline points="0,0 -13,130 -39,202 -69,237 -125,262 -162,295 -189,340 -184,376 -166,411 -124,453 -98,484 -78,529 -78,598 -80,659 -101,689 -200,695 -317,700 -453,696 -534,693 -566,656 -582,622 -585,563 -586,488 -577,428 -550,335 -547,284 -565,225 -599,190 -675,171 -751,164 -799,133 -829,93 -842,17"/>
  </object>
 </objectgroup>

How can I extract them in objective-C?

I tried:

    NSMutableDictionary *waypoints = [objects objectNamed:@"waypointsline"];
if(waypoints) {
    NSString* v = [waypoints valueForKey:@"waypointsline"];
}

And it returned nil.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T01:44:06+00:00Added an answer on June 3, 2026 at 1:44 am

    Polyline and polygon in TMX were introduced to cocos2d-iphone in version 2.0-rc0:

    [NEW] TileMap: polygon, polilines and gid are parsed from the objects (issue #1311)

    If you are using newer version than 2.0-rc0, I guess you can access the points by something similar to:

    CCTMXObjectGroup *objectGroup = [tileMapLayer objectGroupNamed:@"someGroup"];
    NSMutableDictionary *waypoints = [[objectGroup objectNamed:@"waypointsline"];
    NSString *v = [waypoints objectForKey:@"polylinePoints"];
    

    For more details please refer to:

    • HOW TO: convert TMX polygon objects into box2d shapes for collision detection (look like the category implementations in this post can help with prior-2.0-rc0 versions)
    • cocos2d-iphone issue #1311
    • cocos2d-iphone issue #1311 change on GitHub
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I m using hashmap for a listview. map = new HashMap<String, Object>(); map.put(name, R.string.information);
I have points on the google map v3. I want to display information about
I have a 2d array (lat*long) containing height information. I want to map this
I want to add traffic information to my custom map. Currently I'm using a
What information is important to include in an About dialog? Definitely: Name of the
I've read a multitude of information regarding map projection today. The amount of information
Let's say I store bank accounts information in an immutable Map : val m
Declared a map early on: map<char*,char*> rtable; // used to store routing information Now
We're working on an Android application that shows information about parkings on a map.
I'm using the Google Map API to retrieve city + state/region information from a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.