Google Earth and Google Maps KML Mismatch -


I am working on KML I have created the following KML which works fine for Google Earth but Google Maps does not work properly. Does not work well for

The problem is that not all icons are showing

Does anyone tell me what I am doing?

Thanks in advance

When KML is not displaying correctly The first thing to check is whether the KML corresponds to the standard. The sequence of elements of KML is a strict ordering and style element, for example, the point must be before gemetry so that KML is not valid. The correct structure of KML placemark can be found with element sequence.

Here an example has been found with the wrong ordering in the original Kashmir:

  & lt; Placemark & ​​gt; & Lt; Point & gt; & Lt; Coordinate & gt; 180, -5.0 & lt; / Coordinate & gt; & Lt; / Point & gt; & Lt; Style id = "- 5180.png" & gt; & Lt; IconStyle & gt; & Lt; Symbols & gt; & Lt; Href & gt; Http: //theinternallight.com/KML/IconLatLong/-5180.png< / Href & gt; & Lt; / Symbol & gt; & Lt; / IconStyle & gt; & Lt; / Style & gt; & Lt; / Placemark & ​​gt;   

Apart from a strict XML perspective, "ID" attributes must be a valid NCNAME data type that does not begin with alphanumeric characters, but rather to remove "id" to simplify you "Attributes from inline styles within the placemark - these are not necessary.

You can rewrite it as:

  & lt; placemark & Gt; & lt; Style & gt; & lt; IconStyle & gt; & lt; Symbol & gt; & lt; href & gt; http: //theinternallight.com/KML/Icon LatLong / -5180.png & lt; / a href & gt; & lt; / symbol> & lt; / IconStyle & gt; & gt; / Style & gt; & lt; point & gt; & lt; coordinate & gt; 180, -5,0 
coordinate> Verify KML using Galdos If you want a standalone command line KML verifier, then you can use the tool.

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -