在钛中需要 mapbox 地图时出错

error on require mapbox maps in titanium

我正在尝试在我的钛项目上添加来自 mapbox 的地图以与 android 和 IOS 一起使用,但是当我像这样提出要求时:

var mapbox = require('com.polancomedia.mapbox');

var mapView = mapbox.createView({
    map: 'control-room',
    //map: 'road-trip',
    minZoom: 0,
    maxZoom: 6,
    zoom: 10,
    accessToken: 'pk.xyz.abc', //my token tha I have generated
    centerLatLng: [20.7972,-88.1598],
    width: Ti.UI.FILL,
    height: Ti.UI.FILL
});

win.add(mapView);
win.open();

它总是 returns 一个错误说:

找不到模块:com.polancomedia.mapbox architecture:x86_64

有人有解决方案可以使用 mapbox 中的地图吗?

这里有两种解决方案:

1) 当对模块执行 require 时,如果路径错误并且无论出于何种原因它都找不到模块,您会收到 64 位消息,这可能有点误导,请检查路径是否正确以及字符串使用了正确的大小写,检查大写字母是否不匹配。

2) 如果这不起作用,那么您需要确保该模块支持 64 位架构。由于该模块无法支持 64 位,请查看 http://gitt.io/ to find modules that have 64 bit support and if need one that isn't follow this guide to upgrade the module http://docs.appcelerator.com/titanium/release-notes/?version=3.5.0.RC#modules