This is my View skeleton:
I have implemented the HERE Map for iOS (Lite Edition). I have the MapViewLite inside a UIScrollView. I want the map view and the remaining UIView to scroll simultaneously, but always the UIScrollView intercepts all panning events. In HERE Map for iOS (Starter Edition), there is no scrolling issue, but a specific image marker doesn't display. I updated this SDK, and now I experience this issue.
Any help will be appreciated.
For this first app using the HERE SDK, we want to load one of the default map styles the SDK is shipped with.
mapView.mapScene.loadScene(mapStyle: .normalDay, callback: onLoadScene)
Please refer below documentation and examples on GITHub to run sample code. Also please share the error if any.
https://developer.here.com/documentation/ios-sdk/dev_guide/topics/quick-start.html#integrate-the-here-sdk
https://developer.here.com/documentation/ios-sdk/dev_guide/topics/examples.html
Related
I have integrated HERE maps successfully in my iOS app, but now I am facing an issue in implementing info-bubble on tap of markers on HERE map.I have searched on HERE documentation for iOS SDK, but can't find anything relevant. There are many solutions for JS, but nothing for iOS.
This feature doesn't seem to exist on iOS and Android. In order to create a similar behaviour in iOS, you should use NMAMapOverlay instead and add your own subviews/styling to it.
The iOS SDK documentation states that NMAMapOverlay can be used to display custom UIView-based content at a fixed location on the map. (...) Then, give the overlay a NMAGeoCoordinates location and add it to a map. The overlay will automatically be repositioned on the screen as the map moves.
You can find more information about the best practices for the implementation here:
https://developer.here.com/documentation/ios-premium/3.15/api_reference_jazzy/Classes/NMAMapOverlay.html
I'm doing my graduate project.
I'm making an simple view ios app that detects your lookat point using ARFaceAnchor and use this information to scroll the webpage.
BTW, the webpage is displayed by WKWebKit, not SafariServices.
I didn't find the relative functions to solve this problem.
Thanks very much!
I've got some content to display over the top of an NMAMapView. I'd like to zoom and pan to specific bounding boxes, but I want it to respect a kind of edge inset, so that my overlaid content does not obscure what I want visible in the map view.
I've looked here, but can't find anything that might help me.
I've discovered it's possible to set a 'view frame' on an NMAMapView, using this function: https://developer.here.com/documentation/ios-starter/api_reference_jazzy/Classes/NMAMapView.html#%2Fc:objc(cs)NMAMapView(im)setBoundingBox:insideRect:withAnimation:
I can't work out how to inset the content when using the navigation manager however, which would be great.
this is right usage of NMAMapView API for Starter SDK.
Starter SDK have no NMANavigationManager. It available in Premium SDK.
If you use Starter SDK, please clarify what case with 'navigation manager' do you mean.
For Premium SDK additionally to 'setBoundingBox:insideRect:withAnimation' available 'clipRect' property:
https://developer.here.com/documentation/ios-premium/api_reference_jazzy/Classes/NMAMapView.html#%2Fc:objc(cs)NMAMapView(py)clipRect
I have been searching and coding with the Google Maps iOS SDK 1.7.2
I need to build an app that displays custom InfoWindow after the marker is tapped.
Google posted a YouTube Video, that shows how to do it with just ONE marker.
The practical use scenario uses more than ONE marker, but if we follow the example of YouTube Video adding more than one marker, all the markers would show the same info inside the custom InfoWindows.
I did a iOS sample and uploaded to GitHub Sample Here
My Question is: Could anyone download the sample at GitHub and help me to implement that feature, display more than one marker with custom InfoWindow displaying different info for each marker ? In my sample inside the InfoWindow there is a WebView. For my use scenario I would need to load for each marker a different WebView(url) for each marker on the map but I couldn't load the WebView inside the custom InfoWindow. That WebView would be the size of the custom InfoWindow.I would load all the info for the markers as different webpages in the size of the info window.
It also would help a lot of other people that right now can't find a complete and fully working sample of that custom InfoWindow for iOS.
Thanks and Cheers!
Another vote for SMCalloutView. Check out my answer here for a quick start on implementing it.
Sorry to not actually answer your question per se, but Google's rendered UIView info windows are more hassle than they're worth, I think. You may be able to get a webview to load inside one of them, but the Maps SDK takes the custom UIView you set and then renders it into OpenGL, ignoring most (all?) updates you try to make.
Using SMCalloutView skips all of that and we put its view on top of the map, allowing you better control before and after drawing.
SMCalloutView helps you to custom the InfoWindow, you can download the Sample project and run it.
For displaying multiple InfoWindows, you have to treat GoogleMaps SDK (GMSMapView has a #property(nonatomic, strong) GMSMarker *selectedMarker property, which is not a Set), see the Sample project, in mapView:didTapAtMarker: delegate method.
My problem is that I cannot find any up to date tutorials with iOS6 and map kit that include storyboards instructing you on how to apply annotations/pins with the use of for-ordinates.
My homework tells me that the tutorials out there are xib, iOS 5 related which now defeats the point because apple implemented their own maps with ios6 and are no longer using Google's..
I've used google and checked out apple's developer's guide..
I can't be the only one searching for this answer...?
Many thanks.
The MapKit API is essentially same between iOS5 and iOS6 - what changed was the source of the mapping data, the graphic design of the maps, and the use of vector data over bitmap data. But most of this is opaque at the API level. Between iOS versions you continue to use the same framework and classes. There are a few additions (such as MKMapItem, routing) and a few simplifications, but any code written for Apple's iOS5 MapKit SDK will work with iOS6 MapKit.
Issues of xib vs. storyboard tutorials are not specific to MapKit, and nothing in MapKit relies on one or the other, so you shouldn't allow that to confuse you. However, here is an iOS6 tutorial to get you started:
http://www.raywenderlich.com/21365/introduction-to-mapkit-in-ios-6-tutorial
For an overview of changes between ios5 and ios6 MapsKit, take a look at the WWDC video from 2012,Getting Around Using Map Kit.
so by using the code below, I've manage to place one pin by using coordinates and placing it in viewDidLoad, but when the code is copied, it fails to build. Any solutions for adding multiple co-ordinates?