是否有文档化的API用于启动诺基亚的HERE Maps iOS应用程序以进行精细导航?
我有一个简单的XAML脚本,里面有一个map对象,不会出现任何问题.然而,在调试应用程序时,我收到了一个XAMLParseException.我根据需要添加了xmlns声明,无法理解抛出异常的原因.
这是我的代码:
<Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
<maps:Map />
</Grid>
Run Code Online (Sandbox Code Playgroud)
例外细节:
System.Windows.Markup.XamlParseException occurred
HResult=-2146233087
Message=Cannot create instance of type 'Microsoft.Phone.Maps.Controls.Map' [Line: 34 Position: 28]
Source=System.Windows
LineNumber=34
LinePosition=28
InnerException: System.UnauthorizedAccessException
HResult=-2147024891
Message=Access to Maps requires ID_CAP_MAP to be defined in the manifest
Source=Microsoft.Phone.Maps
InnerException:
Run Code Online (Sandbox Code Playgroud) 当我尝试通过模板在Windows Phone 8中将我的地图添加用户位置标记时,所有点都会出现在地图的左上角.我确信我有不同的位置这是我的代码:
<maps:Map x:Name="myMap" Center="{Binding CenterPoint}" ZoomLevel="5">
<toolkit:MapExtensions.Children>
<ItemsControl ItemsSource="{Binding AllLocations}">
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
<Grid/>
</ItemsPanelTemplate>
</ItemsControl.ItemsPanel>
<ItemsControl.ItemTemplate>
<DataTemplate>
<toolkit:MapChildControl>
<toolkit:UserLocationMarker Background="Blue" Foreground="Green" GeoCoordinate="{Binding coordinate,Converter={StaticResource GeoCoordinateConverter}}"/>
</toolkit:MapChildControl>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
</toolkit:MapExtensions.Children>
</maps:Map>
Run Code Online (Sandbox Code Playgroud) 我一直在使用getlinkinfo命令来查看速度限制.API返回的值相对于我社区道路上的公布速度限制减少了3.6倍.例如,这里是加拿大NB州弗雷德里克顿101号高速公路路段的请求,其上限速度为90公里/小时:
(短链接 - http://goo.gl/EWfKDe)
This request returns a speed limit of "25" and the actual posted speed limit is 90. Can you tell me why the <SpeedLimit> values do not contain the actual posted speed limit? Is it because I am using the "DemoAppId"?
Run Code Online (Sandbox Code Playgroud)
伯尼.
我在HERE Map中创建了一个标记,如下所示
searchMarker = new H.map.DomMarker({lat:lat, lng:lon});
map.addObject(searchMarker);
function removeMarker()
{
}
Run Code Online (Sandbox Code Playgroud)
我在按钮点击时调用了一个函数来删除searchMarker.我怎样才能做到这一点?
因此,我注意到在较旧版本的API中存在maxZoomLevelunder nokia.maps.map.Display。但是,我在JS API 3.0中找不到与此类似的东西。
目前我正在使用
map.addEventListener('mapviewchange', function () {
var zoom=map.getZoom();
if(zoom<=maxZoom) {
map.setZoom(maxZoom)
}
});
Run Code Online (Sandbox Code Playgroud)
但是,一旦它碰到,maxZoom并且您放大得更多,它就会变得非常不稳定,因为它会稍微缩小一点,然后将其设置为maxZoom。有什么更好的方法吗?
我正在为地图使用HERE Maps API。每当单击地图时,我都可以添加标记和信息气泡。但是,我只希望地图上有最新的标记和信息气泡,并删除了所有其他标记和信息。下面是我的代码,其中包含我多次单击地图后的所有标记和信息气泡。
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="initial-scale=1.0, width=device-width" />
<link rel="stylesheet" type="text/css" href="https://js.api.here.com/v3/3.0/mapsjs-ui.css?dp-version=1533195059" />
<script type="text/javascript" src="https://js.api.here.com/v3/3.0/mapsjs-core.js"></script>
<script type="text/javascript" src="https://js.api.here.com/v3/3.0/mapsjs-service.js"></script>
<script type="text/javascript" src="https://js.api.here.com/v3/3.0/mapsjs-ui.js"></script>
<script type="text/javascript" src="https://js.api.here.com/v3/3.0/mapsjs-mapevents.js"></script>
</head>
<body>
<div id="map" style="height:550px;width:720px;"></div>
<script>
//Step 1: initialize communication with the platform
var platform = new H.service.Platform({
app_id: 'devportal-demo-20180625',
app_code: '9v2BkviRwi9Ot26kp2IysQ',
useHTTPS: true
});
var pixelRatio = window.devicePixelRatio || 1;
var defaultLayers = platform.createDefaultLayers({
tileSize: pixelRatio === 1 ? 256 : 512,
ppi: pixelRatio === 1 ? undefined : 320 …Run Code Online (Sandbox Code Playgroud) 我正在使用 Here api ( https://developer.here.com/documentation )开发地图,并寻找一个类似的网站https://snazzymaps.com/但要在 Here 生成地图的样式。
配置是一个Yaml文件,查看示例:https ://developer.here.com/documentation/examples/maps-js/styles/change-style-at-load
如果你能帮助我的话谢谢你。:)
我只想改变街道、水、公园和一些标签的颜色