google map integration in Cocos2d-x

  • asnagni
    Likes 0

    Problem Description

    Hi guys,

       I would like to know if there is a solotion that you would be aware off to integrate Google Map into a Cocos2d-x scene for iOS and Android. Thank you for your help.

     

    Thank you

  • Sonar Systems admin
    Likes 0

    In what capacity, how would you like to use it in your app.

  • asnagni
    Likes 0

    I would like to embed it in a cocos2d-x scene. From the UI/UX perspective it looks much nicer. I will add on the map some pins and use Google Map API to handle callbacks: When the user does click on the pins I will show a different scene. 

     

    Thank you

  • Sonar Systems admin
    Likes 0

    Would you like any other part of the app to interact with the map or just a standalone map.

  • asnagni
    Likes 0

    Hi,

      Yes is a multithread App, so some other parts(Threads) of the App  will send information to be updated on the Map. That’s said only one Scene containing the Map that is running on Cocos2d-x thread will interact directly with the Map. 

     

    Thank you

  • asnagni
    Likes 0

    I’m looking for a way to embedded the Map into a Cocos2d-x Scene. Have you any idea on how to do that? Or perhaps a documentation or an article?

     

    Thank you

  • Sonar Systems admin
    Likes 0

    But do you want information from the Map to be used in the Application?

  • asnagni
    Likes 0

    Hi

     No no need for that, but I can easily see a need for that. But for what looking right now there is no need for that. What would I will need it’s 2 callbacks to know that user clicked on the Marcker or cliked on the marcker when it’s open.

     

    Thank you.

  • Sonar Systems admin
    Likes 0

    Have you tried using the UIWebView in Cocos2d-x?


    This reply has been verified.
  • asnagni
    Likes 0

    Yes I’m using the UIWebView in my App.

  • Sonar Systems admin
    Likes 0

    This will help you https://github.com/pasu/sunmap 

  • asnagni
    Likes 0

    Sorry for the delay, and thank you for the info. I have alook now.

  • asnagni
    Likes 0

    Hi guys,

     I checked and I think there is no real solution offered by cocos2d-x. The best way to go is to use the library offered by Google. for ios this is what is available: https://developers.google.com/maps/documentation/ios-sdk/intro

     

    Thank you again.

  • Sonar Systems admin
    Likes 0

    Yes unfortunately

  • asnagni
    Likes 0

    yes

Login to reply