CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

Internal KML

by assapan » 19 Apr 2016 08:50

Hi i use KML to define some regions in france, Germany ...
i need to define different colours in region depending of flight rules , so i dynamically change area colors .
My problem is i cannot use local KML file , i have to refer to external address
if i use
Code: Select all
KmlLayer.Options.Url := 'http://myexternalserver/my.kml'
it works
but if i use
Code: Select all
 KmlLayer.Options.Url := 'http://127.0.0.1/my.kml'
it doesn't
Want to visit Ardeche http://leclosdelarc.fr/index.php
The Pont d’Arc Cavern http://en.cavernedupontdarc.fr
Image
User avatar
assapan
 
Posts: 600
Joined: 16 Dec 2013 12:04
Location: France

by Alexander Bulei » 19 Apr 2016 11:03

Hi assapan,

It's correct :)

quoted from google:

The Google Maps API supports the KML and GeoRSS data formats for displaying geographic information. These data formats are displayed on a map using a KmlLayer object, whose constructor takes the URL of a publicly accessible KML or GeoRSS file.


The google can't access the file.

Best Regards.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by assapan » 19 Apr 2016 11:28

Damned !!!

So i solved my problem by sending by ftp my kml to my external server ...

Thanks alexander
Image
Want to visit Ardeche http://leclosdelarc.fr/index.php
The Pont d’Arc Cavern http://en.cavernedupontdarc.fr
Image
User avatar
assapan
 
Posts: 600
Joined: 16 Dec 2013 12:04
Location: France

by Alexander Bulei » 19 Apr 2016 11:35

Hi assapan,

No problem ;)

Best Regards.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal


Return to JQGMap3

cron

Who is online

Users browsing this forum: No registered users and 1 guest

Contact Us.