Search code examples
androidskmaps

Android Skobbler Maps startup location


I tried the demo for Skobbler Android integration. When I start this demo it always locate me somewhere in Germany, no matter where I am.

What is the options for control the startup location (map)?


Solution

  • By default is set to start in Berlin. If you want to change that you have to make the changes in the demo project:

     // centers the map on a specific position
    mapView.centerMapOnPosition(new SKCoordinate(-122.430337, 37.779776));
    
    
    // centers the map on current position
    mapView.centerMapOnPosition(new SKCoordinate( currentPosition.getLongitude(), currentPosition.getLatitude()));