This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
currentLocation= posManager.getPosition().getCoordinate(); | |
m_map.setCenter(currentLocation, | |
Map.Animation.BOW); | |
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
posManager.start(PositioningManager.LocationMethod.GPS_NETWORK); | |
m_mapFragment.getPositionIndicator().setVisible(true); | |
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
posManager = PositioningManager.getInstance(); | |
PositioningManager.getInstance(); | |
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
m_map = m_mapFragment.getMap(); | |
m_map.setPedestrianFeaturesVisible(EnumSet.of | |
(PedestrianFeature.CROSSWALK, | |
PedestrianFeature.STAIRS, | |
PedestrianFeature.BRIDGE, | |
PedestrianFeature.TUNNEL)); | |
// setting the center of the map to Berlin | |
m_map.setCenter(new GeoCoordinate(52.505229, 13.44915), | |
Map.Animation.NONE); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
private void requestPermissions() { | |
final List<String> requiredSDKPermissions = new ArrayList<String>(); | |
requiredSDKPermissions.add(Manifest.permission.ACCESS_FINE_LOCATION); | |
requiredSDKPermissions.add(Manifest.permission.WRITE_EXTERNAL_STORAGE); | |
requiredSDKPermissions.add(Manifest.permission.INTERNET); | |
requiredSDKPermissions.add(Manifest.permission.ACCESS_WIFI_STATE); | |
requiredSDKPermissions.add(Manifest.permission.ACCESS_NETWORK_STATE); | |
requiredSDKPermissions.add(Manifest.permission.READ_EXTERNAL_STORAGE); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div #map style="width: 1280px; height: 768px"></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
import NMAKit | |
class ViewController: UIViewController { | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
/* HERE Maps */ | |
let mapView = NMAMapView() | |
let coordinates = NMAGeoCoordinates(latitude: 47.611571, longitude: -122.333003) | |
mapView.useHighResolutionMap = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
import NMAKit | |
@UIApplicationMain | |
class AppDelegate: UIResponder, UIApplicationDelegate { | |
var window: UIWindow? | |
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { | |
/* HERE Maps */ | |
NMAApplicationContext.set(appId: "YOUR-HERE-ID", appCode: "YOUR-HERE-CODE") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
target 'here-maps' do | |
use_frameworks! | |
pod 'HEREMapsStarter' | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
import SCSDKCreativeKit | |
import CoreLocation | |
class ViewController: UIViewController, CLLocationManagerDelegate { | |
var locationManager = CLLocationManager() | |
override func viewDidLoad() { | |
super.viewDidLoad() |