Title: Kml doesnt work
Last modified: August 23, 2018

---

# Kml doesnt work

 *  Resolved [julienpilette](https://wordpress.org/support/users/julienpilette/)
 * (@julienpilette)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/kml-doesnt-work-2/)
 * this function in a WP page (with plugin Leaflet)
 * <center>[leaflet-map height=600 width=1200 lat=46.9 lng=2.29 zoom=6][leaflet-
   kml src=”[https://static.touraineverte.fr/kml-departement-france-francais/37-Indre-et-Loire.kml”%5D</center&gt](https://static.touraineverte.fr/kml-departement-france-francais/37-Indre-et-Loire.kml”%5D</center&gt);
 * doesn’t work.
 * the kml is ok, and i seethe map, but the kml is notin the map.
 * Thx

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Plugin Author [bozdoz](https://wordpress.org/support/users/bozdoz/)
 * (@bozdoz)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/kml-doesnt-work-2/#post-10619473)
 * 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. 🙂
 *  [bdjackson](https://wordpress.org/support/users/bdjackson/)
 * (@bdjackson)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/kml-doesnt-work-2/#post-11045345)
 * 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](https://wordpress.org/support/users/bozdoz/)
 * (@bozdoz)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/kml-doesnt-work-2/#post-11045945)
 * What shortcode are you trying, [@bdjackson](https://wordpress.org/support/users/bdjackson/)?
 *  [bdjackson](https://wordpress.org/support/users/bdjackson/)
 * (@bdjackson)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/kml-doesnt-work-2/#post-11045984)
 * 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](http://unoevansville.org/kml/TepePark.kml’%5D)
 * Brent
 *  Plugin Author [bozdoz](https://wordpress.org/support/users/bozdoz/)
 * (@bozdoz)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/kml-doesnt-work-2/#post-11046159)
 * 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.
 *  [bdjackson](https://wordpress.org/support/users/bdjackson/)
 * (@bdjackson)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/kml-doesnt-work-2/#post-11046344)
 * 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, 5 months ago by [bdjackson](https://wordpress.org/support/users/bdjackson/).
 *  Plugin Author [bozdoz](https://wordpress.org/support/users/bozdoz/)
 * (@bozdoz)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/kml-doesnt-work-2/#post-11046442)
 * 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!

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Kml doesnt work’ is closed to new replies.

 * ![](https://ps.w.org/leaflet-map/assets/icon-256x256.png?rev=1693083)
 * [Leaflet Map](https://wordpress.org/plugins/leaflet-map/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/leaflet-map/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/leaflet-map/)
 * [Active Topics](https://wordpress.org/support/plugin/leaflet-map/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/leaflet-map/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/leaflet-map/reviews/)

## Tags

 * [kml](https://wordpress.org/support/topic-tag/kml/)

 * 7 replies
 * 3 participants
 * Last reply from: [bozdoz](https://wordpress.org/support/users/bozdoz/)
 * Last activity: [7 years, 5 months ago](https://wordpress.org/support/topic/kml-doesnt-work-2/#post-11046442)
 * Status: resolved