Php 为什么codeigniter谷歌地图库没有';t加载标记图标

Php 为什么codeigniter谷歌地图库没有';t加载标记图标,php,codeigniter,google-maps-api-3,Php,Codeigniter,Google Maps Api 3,我将codeigniter与附带的Google maps API V3库一起使用。所有内容都加载到构造函数等中 我的控制器内容来自 $config['icon'] = "http://localhost/xampp/zadanie_/myimg.png"; $config['center'] = $data['lat'].",".$data['lon']; $config['map_height'] = 180; $config['sensor'] = false;

我将codeigniter与附带的Google maps API V3库一起使用。所有内容都加载到构造函数等中

我的控制器内容来自

   $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);


            }

没有图标项。我做了什么坏事(

$config['icon'];
替换为
$marker['icon'];
解决了这个问题。

$config['icon'];
替换为
$marker['icon'];
解决了问题。

感谢您使用我的库。我将很快锁定验证,以便用户立即注意到类似的错误。如果遇到任何其他问题,请随时直接告诉我。为使用我的库干杯。我将很快锁定验证,以便避免错误这样的kes会立即引起用户的注意。如果您遇到任何其他问题,请随时直接告诉我。干杯