JQuery的移动地图和Microdata iPhone应用程序

我一直在使用“微数据”和查询地图([示例]) 1在我的应用程序上显示一些标记。 在networking或本地预览中一切正常,但使用模拟器或iPhone时,标记不会出现。

会有什么是停止在iOS设备上显示的数据?

这似乎也打破了主页button。 下面几个摘录:

<!-- !Maps ===================== --> <script src="_config/microdata.js" type="text/javascript"></script> <script type="text/javascript"> $('#gmap').live('pageshow', function(){ $('#map_canvas').gmap({ 'center': new google.maps.LatLng(cc_maps_lat, cc_maps_long), 'navigationControl': cc_map_navcontrol, 'mapTypeControl' : cc_maps_controltype, 'streetViewControl': cc_streetView, 'zoom':cc_maps_zoom, 'callback': function () { $('#map_canvas').gmap('loadMetadata', 'microdata', 'http://data-vocabulary.org/Organization', function(i, item, result) { var latlng = new google.maps.LatLng(result.properties.geo[0].properties.latitude[0], result.properties.geo[0].properties.longitude[0]); $('#map_canvas').gmap('addMarker', { 'bounds':true, 'position': latlng, 'animation': google.maps.Animation.DROP }, function(map, marker){ var content = '<div class="iw"><h1 class="iw-name">'+result.properties.name[0]+'</h1><p class="iw-tel">'+result.properties.tel[0]+'</p><div class="clear"><div></div>'; var iw = $('#map_canvas').gmap('addInfoWindow', { 'position':marker.getPosition(), 'content': content }, function(iw) { $(marker).click(function() { iw.open(map, marker); map.panTo(marker.getPosition()); }); }); $(item).addClass('clickable'); $(item).click(function() { $(marker).triggerEvent('click'); return false; }); }); }); } }); $("#mapdata").listview('refresh'); }); </script> <div id="gmap" data-role="page" data-theme="z"> <div data-role="header" data-position="fixed" data-theme="z"> <h1>Maps</h1> <a href="#home" data-icon="home" class="ui-btn-right" data-iconpos="notext" data-transition="slidedown" data-theme="x" data-ajax="false">Home</a> </div> <div data-role="content"> <div style="padding:5px;"> <div id="map_canvas" style="height:300px;"></div> <ul data-role="listview" data-theme="z" data-inset="true" id="mapdata"></ul> </div> </div> </div> 

*更新我试图通过模拟器时得到Xcode内的错误:

 2011-09-15 10:00:02.107 NASMA[16966:f503] PhoneGapDelegate::shouldStartLoadWithRequest: Received Unhandled URL about:blank