Results 1 to 4 of 4

Thread: Android : unable to set multiple maps

  1. #1
    Neuer skobbler
    Join Date
    07.04.2015
    Posts
    4

    Android : unable to set multiple maps

    I need two SKMapSurfaceView instances, in separate screens - so I've followed doc for SKMapSurfaceView.preserveGLContext :
    Default value is true. If multiple map instances need to be supported then this has to be set to false before setContentView is called for the layout containing the first map . This can be done once when starting the application.
    but it doesn't seem to work, i don't see onSurfaceCreated() callback for 2nd map.
    Did anyone manage to create two maps?

    Thx.

  2. #2
    Oberskobbler
    Join Date
    22.07.2014
    Posts
    399
    Hello,

    Can you attempt to reproduce your problem in our demo app so that we can properly investigate it? or could you please send us your demo project at dev@skobbler.com?

  3. #3
    Neuer skobbler
    Join Date
    07.04.2015
    Posts
    4
    Hi Adela,

    Just completed the demo prj with my scenario (second map added), and realized there's no problem in displaying second map in demo prj. Of course that I've started to look for what I've done differently comparing to my prj, and
    found what I did wrong - I was obtaining SKMapSurfaceView object not in onCreate method, but in a btn onClick method. After moving these lines
    SKMapViewHolder mapViewGroup = (SKMapViewHolder) findViewById(R.id.map);
    mapView = mapViewGroup.getMapSurfaceView();

    in onCreate() everything went well.

    Thank you for your support.

  4. #4
    Oberskobbler
    Join Date
    22.07.2014
    Posts
    399
    Glad to hear you managed to make it work

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •