1
我使用codeigniter与包括谷歌地图API V3库。一切都被载入构造等..从为什么codeigniter谷歌地图库不加载标记图标
我控制器内容...
$config['icon'] = "http://localhost/xampp/zadanie_/myimg.png";
$config['center'] = $data['lat'].",".$data['lon'];
$config['map_height'] = 180;
$config['sensor'] = false;
$config['map_width'] = 198;
$config['disableMapTypeControl'] = TRUE;
$config['disableStreetViewControl'] = TRUE;
$config['zoom'] = '10';
$this->googlemaps->initialize($config);
$marker = array();
$marker['position'] = $data['lat'].",".$data['lon'];
$this->googlemaps->add_marker($marker);
后,加载页面... 生成的JavaScript包含这些代码片段:
function initialize() {
var myLatlng = new google.maps.LatLng(48.1405,17.0948);
var myOptions = {
zoom: 10,
center: myLatlng,
mapTypeId: google.maps.MapTypeId.ROADMAP,
mapTypeControl: false,
streetViewControl: false}
map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
var myLatlng = new google.maps.LatLng(48.1405,17.0948);
var markerOptions = {
map: map,
position: myLatlng
};
marker_0 = createMarker(markerOptions);
}
没有图标 item。我做什么坏事? :(
感谢您使用我的图书馆,我很快就会看着那么像这样的错误被带到用户的注意力马上封锁住了验证。随意如果遇到任何其他问题,请直接给我留言 – BIOSTALL