Use Google Maps Javascript to import KML files to automatically draw maps


layout: post
title: Using Google Maps Javascript to import KML files to automatically draw
date: 2021-08-24 17:41 +8
description: How to directly use KmlLayer to present the data without reading the data yourself. and possible problems.
toc: false
share: true
comments: true
tags: GoogleMaps Javascript Development

code

possible problem

Line thickness is different from what you see on Google My Maps or Google Earth! How come it's so thick?

You need to manually target each item in the KML file <LineStyle></LineStyle> join in 0.001
0.001 can be changed to the desired value.
Tip: Find and Replace </LineStyle> for 0.001

Posted in 網站開發, 軟體工程.

Leave a Reply

Your email address will not be published. Required fields are marked *