2015-12-02 40 views
0

我想用數字更改列表中的字母。名單上的jQuery商店定位器插件信

我用this plugin,有可能嗎?

我試圖改變這種代碼,但不工作

// Letter markers image 
       letterMarkerImg = { 
        url: 'https://mt.googleapis.com/vt/icon/name=icons/spotlight/spotlight-waypoint-b.png&text=' + letter + '&psize=16&font=fonts/Roboto-Regular.ttf&color=ff333333&ax=44&ay=48' 
       }; 

       // Letter markers 
       marker = new google.maps.Marker({ 
        position : point, 
        map  : map, 
        icon  : letterMarkerImg, 
        draggable: false 
       }); 

感謝。

+0

那麼你從哪裏設置'letter' variable? –

回答

1

這似乎是不可能的,因爲列表「A」的第一個字母直接寫在code

也許你應該打開他們issue並解釋你的需要,或分叉項目和自己實現這個功能:)。

+0

在這些行中,我將字母「A」改爲「1」 – manu