Forums / Developer / Google Earth and Exponential

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

Google Earth and Exponential

Author Message

Bjørn Sandvik

Tuesday 06 February 2007 9:45:14 am

I've used Exponential to generate KML files for Google Earth. To achive this I've made a new pagelayout (kml_pagelayout.kml) and some template overrides (kml_view.country.tpl etc).

You'll find an example on:
http://www.globalis.no/land/afghanistan

Click on the link "Vis land på Google Earth"

This is working with Firefox but Internet Explorer gives an error:
"Could not open file..."

This is a known error and is not directly connected to Exponential:
http://bbs.keyhole.com/ubb/showflat.php?Cat=0&Number=665657&page=2&fpart=all&vc=1

I've tried different solutions but it's still not working.

Does anyone have a solution???

http://blog.thematicmapping.org
http://www.globalis.no

Kristof Coomans

Tuesday 06 February 2007 11:52:15 pm

Hi Bjørn

This has probably something to do with cache control.

I've encountered the problem before with other types of files and I used the following HTTP headers to solve it:

Expires: 0
Cache-Control: private
Content-type: application/x-Research-Info-Systems
Content-Disposition: attachment; filename="export.ris"

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Bjørn Sandvik

Wednesday 07 February 2007 1:17:52 am

Thanks for your reply.

Is it possible to set these HTTP headers without changing the kernel files of Exponential?

http://blog.thematicmapping.org
http://www.globalis.no

Kristof Coomans

Wednesday 07 February 2007 2:06:29 am

Yes, you can: http://ezpedia.org/wiki/en/ez/headers

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Bjørn Sandvik

Wednesday 07 February 2007 9:34:31 am

SOLVED!

I had to add these lines to site.ini.append.php:

[HTTPHeaderSettings]
CustomHeader=enabled
HeaderList[]=Cache-Control
Cache-Control[]
Cache-Control[/layout/set/kml]=private

It is now working in both Internet Explorer and Firefox

Thanks for your help.

http://blog.thematicmapping.org
http://www.globalis.no