Imported KML does not show formatted description in Google Maps - google-maps

I created two KML files by copying and pasting their content directly from Google Manual. One file it the first example (using CDATA), another one is the second (without CDATA). I then created a new custom Google Map and added two layers importing both KML files.
The problem is that I cannot make formatting work. There are no red, italic, or bold fonts on the description as they should be according to both KML files.
That is how I can see the description in both Chrome and IE, on two different computers (Windows 10 64 and Windows 7 64):
Any ideas why I cannot see formats and how to make them work?

I think Google Earth supports HTML tags, but Google custom map (old name : my map) does not support HTML tags currently. KML file is just a data file. Supporting all features of KML format, or not is depends on the application.

Related

Embed google docs

I have several Google Docs, each is a policy or png, etc. I want to create a consolidated Google doc that embeds each of the Google policies. This ‘consolidated’ document would contain all the other embedded documents, thus allowing a single print or view of all the policies in one place. I am currently using cut-paste but better would be to embed so that when my original is changed my consolidated document is also changed. I would like it to work similar to a png that is embedded / linked so that I see an UPDATE message if there is a change.

Load styles in Google Maps Wizard

Im using the Google Maps Wizard to customize the color of some maps I need to embed on an website.
I got some JSON that loads ok but if I need to make a change I need to touch the code and load the map every time I change a value to see the results.
Is there any way I can load the styles I already have on a .js file into the Google Maps Wizard or is there any third party tool that allow me to do that?
http://www.mapstylr.com/ is a better solution. It has a load option so you can paste your current style and continue with it.
Besides, it lets you save the map and publish it. They have a showcase to browse and download styles other people did.
Just stumbled upon this Github project which is a version of the original styled maps wizard with json import functionality:
http://instrument.github.io/styled-maps-wizard/

Link to .HTM document will not open within HTML pop-up within Google Earth

Within ArcMap, I have created KML's from various shapefiles with an attribute/column containting the location of an HTM document related to a particular point.
When I test the HTML pop-up via the verify button in ArcMap it works great. It opens the linked document just fine.
When I simply type out the link in word pad and save as .htm, the link works fine as well e.g.
test link
When I have this identical link in the pop-up window of a specific placemark in Google Earth, the document won't open. The text is blue signifying a hyperlink but when clicked nothing happens.
Any thoughts?
Google Earth has security enabled by default and won't allow arbitrary KML to access user files unless explicitly requested.
Under the Tools/Options menu of Google Earth click the General tab then check 'Allow access to local files and personal data'. Then you should be allowed to access the local files.
It's easiest to keep linked files relative to location of the KML file because absolute URLs can be burdensome. Also there are some issues in older versions of Google Earth if you have whitespace or special characters in the file names or paths.

Display netCDF files to Google Maps

I have some meteorological data wich are exported to netCDF format and I want to display them in Google Maps.
I tried the Panoply software, mainly following these http://marinedataliteracy.org/ops/pano_gridsvecs.htm instructions and succesfully exported the data into .kml files.
The kml file displays fine in Google Earth, but when loading it in Google Maps nothing is being displayed.
The JavaScript code that is loading the kml is definitely correct, because other types of kml are displayed correctly. Just in case, this is the code:
var kmzLayer = new google.maps.KmlLayer("LINK_TO_KML");
kmzLayer.setMap(map);
There is also a project called netcdf2gmaps here http://code.google.com/p/netcdf2gmaps/ but it seems abandoned and there is no feedback for it.
So is there any way to display the netCDF data to Google Maps?
I don't know if you solved your problem, but for reference to question title I thought to add more info.
Panoply (or IDV) export to KMZ (zipped KML) in a manner of simple PNG snapshot of their current display and lon/lat boundaries, like this:
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://earth.google.com/kml/2.0">
<GroundOverlay>
<name>Maximum_temperature_Maximum_unwe in GEFS_Global_1p0deg_Ensemble_deri</name>
<Icon>
<href>Maximum_temperature_Maximum_unwe in GEFS_Global_1p0deg_Ensemble_deri.png</href>
</Icon>
<LatLonBox>
<west>-29.1622</west>
<north>55.0</north>
<east>49.1622</east>
<south>25.0</south>
</LatLonBox>
</GroundOverlay>
</kml>
And that seems like only way to Google Earth interface - bitmap images. Which is a sad fact that Google Earth is not designed for visualization or numerical model data, as it can't represent varaious other features.
If overlaying bitmap in Google Earth/Maps is the task than as you have already noticed it's just a matter of double clicking produced KMZ file:
or for Google Maps, uploading the file and pasting the path in Google Maps search bar:

How do I link to internal files in a KMZ file?

I'm trying to set up a KMZ file for use in Google Earth where the balloon contents are mostly defined in HTML files, which are embedded using iframes. The setup works with a plain KML file and the extra HTML files when using relative links on the local filesystem (assuming filesystem access is enabled).
My problem is that I can't find a way to create a KMZ file containing all files in an interlinked fashion. The KML specification doesn't talk about the issue at all (in fact KMZ appears only a few times in the whole document). I couldn't find any other documentation on KMZ either.
Is it possible to link to other HTML files within a KMZ? If yes: how?
Yes the Kml specification allows this, you just use relative paths.
However your issue is really to do with the security restrictions in specific applications on certain types of content.
For example the full Google Earth Client allows you to load Flash (swf) content in to Balloons whilst the Goggle Earth Plug-in does not. The same goes for iFramed content, etc.
So the answer to question would totally depend on which application are you viewing the Kml/kmz in and has nothing to do with Kml or Kmz specification.
Realize that there is the OGC KML Standard and how the specification of that standard gets interpreted and implemented in the Google Earth software. In particular there are some grey areas not well-defined in the spec that Google Earth implements as it does. The rules governing KMZ files and embedded content is not well defined and are clearly implementation specific. Some of the details are defined in Google KML Reference documentation and some are not. Some inconsistencies and undocumented features of KML and Google Earth can be found in the KML Errata.
There are restrictions both for what media content (embedded inside KMZ file) can be displayed inline within a description balloon and as well as what content can be linked to and accessed.
Here are some restrictions for <iframe> content listed in the KMZ Tutorial
The <src> element within an <iframe> element cannot point to a local
file on disk, nor can it point to a file inside a KMZ file; it must
point to a URL on the Internet that a browser can visit.
As an exception to this rule you can in fact have an HTML file within a KMZ file and include that as <src> element within an <iframe> in the feature description with a relative URL but not many other media types are supported.
If you enable the "Allow access to local files and personal data" option in Tools/Option/General menu panel then this relaxes some access rules and are able to access some links to content (e.g. HTML, PDF, etc.) as you would from a web browser but mostly local files external to the KMZ file.