skmaps

Skobbler Android - How to set a custom image in an annotation on a map?

回眸只為那壹抹淺笑 提交于 2019-12-14 02:10:48
问题 As indicated in the title, I try to put my own image in an annotation on a map. For this I use this code: annotation.setImagePath (mImagePath); annotation.setImageSize (4096); annotation.setOffset (mSKScreenPoint)); No error but nothing appears. Yet I followed indications of the doc: "Sets the absolute path of the image file to be added as an annotation. The picture must be a square image and the size must be a power of 2. _ (32x32, 64x64, etc.)." The size of my image is 64 * 64. I had a

Heavy lags in certain conditions

天大地大妈咪最大 提交于 2019-12-13 20:24:05
问题 I use Skobbler SDK 2.5 with a Samsung Galaxy Tab 8,4 / Kitkat 4.4 and I am experiencing heavy performance issues that start after a while when dragging in certain zoom level ranges (heavy lags, frames take about 1 second to update). Profiling shows that it seems to be GL related ( MapRenderer.render() in GLThread takes about 500ms). It only seems to occur in certain zoom ranges, and disappears when zooming in closely or zooming out vary far. I guess that it also needs some time to occur,

Skobbler : Set the language of advice instruction and the distance between the instructions

风格不统一 提交于 2019-12-13 20:13:43
问题 I'am doing turn by turn navigation app, i have two questions to ask: 1- How can i change the language of advice instructions? i did like this : SKAdvisorSettings *adviceSettings = [[SKAdvisorSettings alloc]init]; adviceSettings.advisorType = SKAdvisorTypeTextToSpeech; adviceSettings.language = SKAdvisorLanguageFR; But i get always instruction in English. 2- How can i change the distance between advices, for example i want to speech instruction every 500/200/10 . Thanks you for help. 回答1: 1

Skobbler SDK 3.0.2: prebundled map

穿精又带淫゛_ 提交于 2019-12-13 08:32:56
问题 I'm using Skobbler SDK 3.0.2 and I can't load prebundled map. I prepared the map package for prebundling (SKMaps.zip) following instruction in https://developer.skobbler.com/getting-started/android. I want to use only a prebundle map in offline mode in my project. This is my code: SKMapsInitSettings mapsInitSettings = new SKMapsInitSettings(); mapsInitSettings.setConnectivityMode(SKMaps.CONNECTIVITY_MODE_OFFLINE); mapsInitSettings.setPreinstalledMapsPath(getAssets() +"/SKMaps/PreinstalledMaps

Skobbler map not zooming with zoomToRouteWithInsets

两盒软妹~` 提交于 2019-12-12 18:28:27
问题 In the skobbler map, I have calculated a route. If I drag some where in the map, After that in button Click I want to see my route. In the doumentation given these method for ' Zooms the map to the current calculated route. '. [[SKRoutingService sharedInstance] zoomToRouteWithInsets:UIEdgeInsetsMake(100, 100, 0, 0)]; I have given this but, When I called zoomToRouteWithInsets After drag on the map , then only it showing the route. 回答1: There is a bug with zoomToRouteWithInsets that will be

Method didSelectAnnotation does not work (Skobbler iOS)

人走茶凉 提交于 2019-12-12 15:05:07
问题 This problem appeared after an update to the latest Skobbler version. When I try to select any annotation, only this method get's called -(void)mapView:(SKMapView *)mapView didTapAtCoordinate:(CLLocationCoordinate2D)coordinate But not didSelectAnnotation . After zooming the didSelectAnnotation method works fine. Anyone knows what's happening? 回答1: The answer is simple. I've just set annotationTapZoomLimit = 0 in map's settings. Thanks for attention. 来源: https://stackoverflow.com/questions

Skobbler Annotation disappears from map when zooming out on Android

拜拜、爱过 提交于 2019-12-12 14:01:12
问题 Currently, I am adding a list of annotations to a mapview with code similar to the following: // Add to map view SKAnnotation annotation = new SKAnnotation(i++); annotation.getLocation().setLongitude(result.longitude); annotation.getLocation().setLatitude(result.latitude); annotation.setMininumZoomLevel(1); annotation.setAnnotationType(SKAnnotation.SK_ANNOTATION_TYPE_PURPLE); mapView.addAnnotation(annotation, SKAnimationSettings.ANIMATION_POP_OUT); Yet whenever I view the annotations on the

skobbler can i cache json data?

ⅰ亾dé卋堺 提交于 2019-12-11 12:13:58
问题 I'm using skobbler and skmaps for an app that download for offline use some regions of the map. I'm using the code i have found in the example of the framework package, in this case MapJSONViewController MapDownloadViewController I have implemented also the app delegate code, so every time i start the app, it download and parse a json of about 1mb - (void)mapsVersioningManager:(SKMapsVersioningManager *)versioningManager loadedWithMapVersion:(NSString *)currentMapVersion { [[XMLParser

EXC_BAD_ACCESS when calling startNavigationWithSettings(navSettings)

…衆ロ難τιáo~ 提交于 2019-12-11 11:53:52
问题 I setup an example using Skobbler's Handling navigation events snippet. When I call SKRoutingService.sharedInstance().startNavigationWithSettings(navSettings) I get EXC_BAD_ACCESS . Here is the code: override func viewDidLoad() { super.viewDidLoad() let mapView = SKMapView(frame: CGRectMake( 0.0, 0.0, CGRectGetWidth(self.view.frame), CGRectGetHeight(self.view.frame))) mapView.delegate = self self.view.addSubview(mapView) SKRoutingService.sharedInstance().routingDelegate = self

How do I set a custom image on an map annotation?

时光总嘲笑我的痴心妄想 提交于 2019-12-11 08:29:04
问题 I want to set a custom image to a SKAnnotation but when I set the image path the markers wont appear. I set the marker image with the following code: annotation.imagePath = [[NSBundle mainBundle] pathForResource:@"64-map-test" ofType:@"png"]; annotation.imageSize = 64; When I use a default image: annotation.annotationType = SKAnnotationTypeGreen; the markers do appear correctly. How do I set a custom image on an map annotation? 回答1: png-8 file format is not supported. Using a png-24 file