×
Namespaces

Variants
Actions
Revision as of 02:05, 4 February 2013 by hamishwillee (Talk | contribs)

Talk:HERE Maps API - How to display KML file data on the map

From Nokia Developer Wiki
Jump to: navigation, search

Contents

Eman.Refaat - XMLHttpRequest cannot load Map.kml. Cross origin requests are only supported for HTTP.

Hi There, I try to load map.kml file on map but, I get this error : ( XMLHttpRequest cannot load Map.kml. Cross origin requests are only supported for HTTP.) I use the same code and same domain. any help

Thank you

Eman.Refaat 14:31, 31 January 2013 (EET)

Hamishwillee - Is the URL a local domain?

Hi Eman

As I understand it this happens when you do the request a local file rather than one hosted on a web server. Have you followed the instructions above and accessed via an http url?

If so and this still doesn't work I suggest you post on the Qt discussion board cross linking to here - that way you will get more eyes on the problem.

Regards

Hamish

hamishwillee 00:02, 1 February 2013 (EET)

Eman.Refaat - Useing Local domain

First of All Thank you Hamish very much. I solve the problem through the following steps:

- open project on visual studio. - open (Web.config) file and add handler for kml file as :

 <staticContent>
     <mimeMap fileExtension=".kml" mimeType="application/vnd.google-earth.kml+xml" />
   </staticContent>

the all file :

<configuration>

 <system.web>
   <compilation debug="true" targetFramework="4.5"/>
   <httpRuntime targetFramework="4.5"/>
 </system.web>
 <system.webServer>
   <staticContent>
     <mimeMap fileExtension=".kml" mimeType="application/vnd.google-earth.kml+xml" />
   </staticContent>
 </system.webServer>

</configuration>

Thank you

Eman.Refaat 13:54, 3 February 2013 (EET)

Hamishwillee - That's great

Thanks for adding your solution!

Regards

Hamish

hamishwillee 01:05, 4 February 2013 (EET)

 
×