Plugin Author
bozdoz
(@bozdoz)
Here’s what I’m getting:
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://static.touraineverte.fr/kml-departement-france-francais/37-Indre-et-Loire.kml. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing).
I’m wondering if you could change the style of your quotations. I had to change your ” (smart quotes) to ” or ‘ (non-smart quotes?). Hope this helps. 🙂
I am having the same trouble. I have tried with single, double, and no quotes. Still no KML polygon.
Thanks,
Brent Jackson
Plugin Author
bozdoz
(@bozdoz)
What shortcode are you trying, @bdjackson?
Hello,
This does not seem to work…
[leaflet-map lat=37.95973423799347 lng=-87.55701988935472 zoom=14]
[leaflet-kml src=’http://unoevansville.org/kml/TepePark.kml’%5D
Brent
Plugin Author
bozdoz
(@bozdoz)
You’re right. This is the same issue. It is Cross-Origin. If you download the kml and host it on your own server/site/anywhere else, it should work fine. That site won’t allow you to access it from your site.
I see. I changed it to ../kml/filename.kml and it worked.
However, none of the kml titles or descriptions on the polygons in the kml seem to be visible. I have read through the documentation and do not see a setting for this?!?
Thanks!
Brent
-
This reply was modified 7 years, 4 months ago by
bdjackson.
Plugin Author
bozdoz
(@bozdoz)
might be able to do this:
[leaflet-kml src="file"]<p>{title}</p><p>{description}</p>[/leaflet-kml]
Where you replace those with the appropriate field names. I’m not sure if the HTML tags actually work though; worth a shot!