Page 1 of 1

Internal KML

PostPosted: 19 Apr 2016 08:50
by assapan
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

Re: Internal KML

PostPosted: 19 Apr 2016 11:03
by Alexander Bulei
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.

Re: Internal KML

PostPosted: 19 Apr 2016 11:28
by assapan
Damned !!!

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

Thanks alexander
Image

Re: Internal KML

PostPosted: 19 Apr 2016 11:35
by Alexander Bulei
Hi assapan,

No problem ;)

Best Regards.