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
... | |
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
... | |
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
... | |
searchRequest.setCollectionSize(5); | |
searchRequest.setSearchArea(currentLocation,5000); | |
... |
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
... | |
SearchRequest searchRequest = new SearchRequest("Pub"); | |
... |
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
... | |
searchRequest.execute(discoveryResultPageListener); | |
... |
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 |