开发者

How do I change theme to lighter for Google Maps using Maplace.js plugin

I've created google map with custom marker icons using maplace.js plugin.

icons looks properly but the problem is, on the darker google map, icons doesn't look good.

How do I change theme to lighter for Google Maps using Maplace.js plugin

Javascript Code 开发者_JAVA技巧for Map:

    <script>  
    let obj = JSON.parse('{{data|escapejs}}')
    map_data = []
    for(i in obj){
        let block = `<div>
                        <h6>${obj[i]["Route_Id"]}</h6>
                        <p>Shipping Types : ${obj[i]["Shipping Type Code"]}</p>
                        <p>Product Type : ${obj[i]["Product_Type"]}</p>
                    </div>`
        let icons = obj[i]["icon"].replace('000000', obj[i]['Color'])
        console.log("icon : ",icons);
        let jsn = {"lat":obj[i]["lat"], "lon":obj[i]["lon"], "title":obj[i]["Route_Id"], "html":block, "icon":icons}
        map_data.push(jsn)
      
//create Map Object
    new Maplace({
            locations: map_data,
            controls_on_map: false,
        }).ViewOnMap().Load();
    </script>

So I wanted to change darker google map theme to light google map.

How do I change theme to lighter for Google Maps using Maplace.js plugin

I wanted to change Map theme

How do I change theme to lighter for Google Maps using Maplace.js plugin

How can I change google map theme?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜