distriqt NativeMaps AS3 API-填充多个标记示例

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了distriqt NativeMaps AS3 API-填充多个标记示例相关的知识,希望对你有一定的参考价值。

Just a simple example script for populating a bunch of MapMarker objects on a Map using the distriqt NativeMaps ANE
  1. var markerData:Array = [
  2. { id: -1, name: "myMarker1", title: "marker 1", info: "", location: new LatLng(-37, 144) },
  3. { id: -1, name: "myMarker2", title: "marker 2", info: "", location: new LatLng(-37, 145) },
  4. { id: -1, name: "myMarker3", title: "marker 3", info: "", location: new LatLng(-37, 146) },
  5. { id: -1, name: "myMarker4", title: "marker 4", info: "", location: new LatLng(-37, 147) }
  6. ];
  7.  
  8. for (var i:int = 0; i < markerData.length; i++)
  9. {
  10. var marker:MapMarker = new MapMarker();
  11. marker.name = markerData[i].name;
  12. marker.setPosition( markerData[i].location );
  13. marker.title = markerData[i].title;
  14. marker.info = markerData[i].info;
  15.  
  16. // This stores a reference in our marker data array to the
  17. // ID of the marker which is returned by the addMarker() method
  18. markerData[i].id = NativeMaps.service.addMarker( marker );
  19. }

以上是关于distriqt NativeMaps AS3 API-填充多个标记示例的主要内容,如果未能解决你的问题,请参考以下文章

如何将谷歌游戏服务添加到 AIR AS3?

Distriqt 分享应用价值

来自 distriqt 广告扩展的 Java 错误

Distriqt分享ANE消息和网址没有出现在Facebook上

AS3 转 Java

Flash预加载程序as3类似苹果风格的代码。