2017-09-16 19 views
-1

我想用nativescript制作一个超级类型的应用程序,但我很努力地找到一种方式,当应用程序打开就像打开超级应用程序时一样。我使用谷歌地图API谷歌地图API问题,中心在NativeScript应用程序上的具体位置

谢谢

+0

请阅读https://stackoverflow.com/help/how-to-ask并相应地编辑您的问题。它不清楚你的代码是什么样的,你使用什么插件,以及你如何做到这一点。 – pkanev

回答

0

如果您正在使用nativescript - 谷歌 - 地图-SDK(我想你是因为你还贴在那里的问题),那么你可以这样做:

// Any value from 2 to 20 
mapView.zoom = 15; 

// Moves the map 
mapView.latitude = lat; 
mapView.longitude = lng; 

// Places the marker at the point 
marker.position = mapsModule.Position.positionFromLatLng(lat, lng);