I have a style defined as:
<Style id="style1">
<BalloonStyle><text>$[description]</text></BalloonStyle>
<IconStyle><Icon><href>http://maps.google.com/mapfiles/kml/paddle/red-circle-lv.png</href></Icon></IconStyle>
</Style>
and placemark description as:
<description><![CDATA[
<table width="400"><tr>
<td>Open Image<br><img src="img/test.png" width=200 /></td>
<td>Some Text Goes Here</td>
</tr></table>
]]></description>
Is it possible to make it so that when they click on the image it opens up in the default viewer or in another browser page? Right Click (open in new window, open image, open) doesn't seem to do anything. The images are in the KMZ file.
Peter
Peter - I just duplicated your setup and I saw the same behavior.
After doing some tests, it appears the web browser is only accessed when your link references something on the Internet, not local files (like your img/test.png). Additionally, you need to include the http:// at the beginning of the URL.
I tried using Google and it didn't work. Once I changed the link to Google, then it worked.
So my conclusion is that you need to host your images on a web server somewhere and reference them with a full URL for Google Earth to automatically open the web browser.
Related
I am trying to insert an image into a Gitlab wiki page using an image from Google Storage. When I use the double bracket markdown
[[authenticated url from Google Storage]]
the image loads correctly. But when using the following two methods, the image doesn't load correctly on the wiki page:
![image name](authenticated url from Google Storage)
<img src="authenticated url from Google Storage" width="200" height="500">
Wiki page would show a broken image link icon, and the link of the url would point to something like:
https://user-content.gitlab-static.net/a9c4c509c56582893770ac5b94af6e72c38322d8/68...d6661696c732f73637265656e73686f74732f494d475f313431342e504e47
And I would get a Unsupported content-type returned error. My guess is that the full link got truncated so the .png is not there anymore.
My main objective is to use the img tag so I can resize the image in the wiki page. Is there any way to achieve that?
I know I can just upload the image to Gitlab wiki and then I can use img tag to specify size. But I'd really rather just point to the files to the Google Storage to save time.
Thanks for the help!
Update:
I tried using an image file on GCP with public internet access (with the googleapis.com URL). Both the [[URL]] notation and the <img> tag worked and I was able to specify width and height with img tag in the Gitlab wiki page.
So my guess is that the Gitlab wiki editor can use GCP authenticated URL when using the [[URL]] notation but just can't do it with the <img> tag. Probably a bug.
I want to show the contents of the frame.html file in my extension folder in an iframe on the standalone page where I'm running the extension. But it is looking for this frame.html file in the source of the site and cannot find it so I'm getting a 404 not found error. Regardless of the relevant page, how can I access the frame.html file embedded in the extension file?
Let me show you in the picture what i want;
What I want
On the left is an ordinary web page on which the extension will be activated. Red area is my iframe that activated on the web site due to my extension. This area contents is in the frame.html at extension folder.
when I use <iframe src="extension_src/html/frame.html"></iframe>
I get a "www.......com/extension_src/html/frame.html" not found error
You can point the src to your local file using the template shown below.
<iframe src="chrome-extension://{{id-of-your-extension}}/path-to-file/frame.html"></iframe>
You extension id will be constant when published to the chrome store. When developing locally you can find the extension id by going to the chrome://extensions
Im trying to download and open a kml file on goole earth but a red dot appears over a file in earth. that specific file doesn't appear on earth. I'm bad with tech, I don't know how to code or the coding language so simplified answers will be the most helpful. To find the file, search "nrdc conservation solutions layer for google earth." It is one of the first links/the first kml file that pops up. If it makes any difference I am using a mac. Thank you for the help!
If you have KML with NetworkLinks, the icon in the saved places (left panel) of Google Earth will reflect the state while it is fetching content. A NetworkLink links to another KML file which can a URL to a remote server.
If for example, the network link fails to open then the "error" icon with red circle will be displayed. The red circle basically means the URL failed to load content same as if it failed in a web browser. In most cases, this results from an HTTP 404 not found error that you would see in a web browser for a broken link. It could also be another 4xx code or 5xx HTTP error code. To verify the issue, right-mouse click on the NetworkLink, select "Properties", copy the URL in the link field then paste the URL into a web browser. If the target URL is broken then you'll need to fix the URL then paste back into Google Earth and/or into your KML to work correctly.
If the KML is returned to web browser but not Google Earth then the content-type (aka mime type) might be wrong. You can enable FireBug and/or the web console in your web browser to debug the HTTP response headers.
Here is the full list of icons for the state of NetworkLink from KML 2.2 spec:
I'm trying to use Video.js to display a small video on our team sharepoint page (Sharepoint 2007). It works great, but the 'Do you want to view only the webpage content that was delivered securely?' alert always displays when you navigate to the page. The security settings on the computers cannot be changed, but is there any way I can avoid this alert being displayed?
Thanks in advance for any help.
Thanks,
Simon
This is happening because the page being accessed is served over HTTPS, but some content loaded remotely comes from HTTP. If you're using the Video.js CDN-hosted files, you'd want to change the include tags to look like this:
<link href="//vjs.zencdn.net/4.3/video-js.css" rel="stylesheet">
<script src="//vjs.zencdn.net/4.3/video.js"></script>
These are called protocol relative urls, meaning it will use whatever protocol the page is to load the files.
Hope that helps!
In Sharepoint, how can I link an image in a content editor web part to another URL link by clicking on it?
I pasted my link into the Content Link space but when I apply the change it turns my image into a - and I cannot click the link
a content editor webpart is just raw html. so the way to wrap an image in a link is to use the a (anchor) tag like so.
<img src="yourimagefile.jpg" />