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.
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.
I wanted to change Map theme
How can I change google map theme?
精彩评论