<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>THE MOLITOR FORUMS &#187; Topic: Adding KML Layer</title>
		<link>http://www.themolitor.com/forums/topic/adding-kml-layer</link>
		<description>THE MOLITOR FORUMS &#187; Topic: Adding KML Layer</description>
		<language>en-US</language>
		<pubDate>Tue, 28 Apr 2026 18:27:26 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.themolitor.com/forums/search.php</link>
		</textInput>
		<atom:link href="http://www.themolitor.com/forums/rss/topic/adding-kml-layer" rel="self" type="application/rss+xml" />

		<item>
			<title>TarasTravel on "Adding KML Layer"</title>
			<link>http://www.themolitor.com/forums/topic/adding-kml-layer#post-18299</link>
			<pubDate>Fri, 08 Feb 2013 16:18:10 +0000</pubDate>
			<dc:creator>TarasTravel</dc:creator>
			<guid isPermaLink="false">18299@http://www.themolitor.com/forums/</guid>
			<description><p>Hey Hjaltland,<br />
Developer of google maps integration for the theme actually managed to help me with this.<br />
Contact me through my mail, <a href="mailto:t.tsmukh@gmail.com">t.tsmukh@gmail.com</a> or skype: lvivyanyn. I'm willing to try to help you with this ;)
</p></description>
		</item>
		<item>
			<title>Hjaltland on "Adding KML Layer"</title>
			<link>http://www.themolitor.com/forums/topic/adding-kml-layer#post-18225</link>
			<pubDate>Thu, 07 Feb 2013 01:52:00 +0000</pubDate>
			<dc:creator>Hjaltland</dc:creator>
			<guid isPermaLink="false">18225@http://www.themolitor.com/forums/</guid>
			<description><p>Won't let me edit posts, so this is turning into a really busy thread.</p>
<p>Right.  Didn't realise you needed to enter a lat/long to display the KML.  That's sorted, it's showing the KML, almost everything is peachy!</p>
<p>@TarasTravel - I'm using the full url to the KML - <a href="http://nav.hjaltlandnetwork.com/kml/varangian.kml" rel="nofollow">http://nav.hjaltlandnetwork.com/kml/varangian.kml</a> in my test case.
</p></description>
		</item>
		<item>
			<title>Hjaltland on "Adding KML Layer"</title>
			<link>http://www.themolitor.com/forums/topic/adding-kml-layer#post-18224</link>
			<pubDate>Thu, 07 Feb 2013 01:44:46 +0000</pubDate>
			<dc:creator>Hjaltland</dc:creator>
			<guid isPermaLink="false">18224@http://www.themolitor.com/forums/</guid>
			<description><p>Nope, sorry.  Mark that one down to poor use of copy and paste.  Honestly, some days I shouldn't be allowed out.  Working for normal posts, still not displaying KML layers but it's only a matter of time.
</p></description>
		</item>
		<item>
			<title>Hjaltland on "Adding KML Layer"</title>
			<link>http://www.themolitor.com/forums/topic/adding-kml-layer#post-18197</link>
			<pubDate>Wed, 06 Feb 2013 08:18:16 +0000</pubDate>
			<dc:creator>Hjaltland</dc:creator>
			<guid isPermaLink="false">18197@http://www.themolitor.com/forums/</guid>
			<description><p>Furthermore, removing the customisation didn't fix the problem for the existing posts!
</p></description>
		</item>
		<item>
			<title>Hjaltland on "Adding KML Layer"</title>
			<link>http://www.themolitor.com/forums/topic/adding-kml-layer#post-18196</link>
			<pubDate>Wed, 06 Feb 2013 08:14:55 +0000</pubDate>
			<dc:creator>Hjaltland</dc:creator>
			<guid isPermaLink="false">18196@http://www.themolitor.com/forums/</guid>
			<description><p>Followed the steps indicated - no sign of errors - but now all posts are showing with just a plain gray background whether they have a KML file or not.
</p></description>
		</item>
		<item>
			<title>TarasTravel on "Adding KML Layer"</title>
			<link>http://www.themolitor.com/forums/topic/adding-kml-layer#post-16405</link>
			<pubDate>Sat, 08 Dec 2012 07:47:04 +0000</pubDate>
			<dc:creator>TarasTravel</dc:creator>
			<guid isPermaLink="false">16405@http://www.themolitor.com/forums/</guid>
			<description><p>Hi Hans, I followed all the steps that you've mentioned, unfortunately kml layer is still not being displayed. I think there is something wrong with the kml-path. How exactly should it be added?
</p></description>
		</item>
		<item>
			<title>backcountryexplorer on "Adding KML Layer"</title>
			<link>http://www.themolitor.com/forums/topic/adding-kml-layer#post-9785</link>
			<pubDate>Tue, 08 May 2012 14:33:13 +0000</pubDate>
			<dc:creator>backcountryexplorer</dc:creator>
			<guid isPermaLink="false">9785@http://www.themolitor.com/forums/</guid>
			<description><p>First time poster here ... many thanks to the Molitor for this theme and Hans for figuring out how to enable KML layers.</p>
<p>My question is how do I get the labels in the KML file to display?  I downloaded a KML file on California Missions and it displays fine but the names are not showing on the map.  Loaded into Google Earth the same file shows the mission icons and the names of the individual missions. </p>
<p><a href="http://www.robokeefeweb.com/california/2012/05/09/california-missions/" rel="nofollow">http://www.robokeefeweb.com/california/2012/05/09/california-missions/</a>
</p></description>
		</item>
		<item>
			<title>impy on "Adding KML Layer"</title>
			<link>http://www.themolitor.com/forums/topic/adding-kml-layer#post-9111</link>
			<pubDate>Thu, 19 Apr 2012 05:50:10 +0000</pubDate>
			<dc:creator>impy</dc:creator>
			<guid isPermaLink="false">9111@http://www.themolitor.com/forums/</guid>
			<description><p>nice work, Hans!<br />
Thank you so much!</p>
<p>It would be great if the bottom scroll buttons works again soon. But this is also a great solution.
</p></description>
		</item>
		<item>
			<title>BigLake on "Adding KML Layer"</title>
			<link>http://www.themolitor.com/forums/topic/adding-kml-layer#post-9091</link>
			<pubDate>Wed, 18 Apr 2012 12:25:05 +0000</pubDate>
			<dc:creator>BigLake</dc:creator>
			<guid isPermaLink="false">9091@http://www.themolitor.com/forums/</guid>
			<description><p>@ivonic can I just clarify this as I just want to be sure that I have this right. You have several categories and each category as several posts the kml shows a route between each post.</p>
<p>So category south west bus stops (has 200 bus stops)<br />
KML Layer shows the 200 bus stops all joined by the route marker presumably the order defines the start and finish. When you click on bus stop 5 it shows the details of that stop without the kml layer to go back you use the browser back button to return to the category.</p>
<p>Is this how it works?
</p></description>
		</item>
		<item>
			<title>ivovic on "Adding KML Layer"</title>
			<link>http://www.themolitor.com/forums/topic/adding-kml-layer#post-8895</link>
			<pubDate>Thu, 12 Apr 2012 05:06:36 +0000</pubDate>
			<dc:creator>ivovic</dc:creator>
			<guid isPermaLink="false">8895@http://www.themolitor.com/forums/</guid>
			<description><p>Hans, I understand you're adding markers via KML, but I've been implementing the KML on a category map, so that each marker is a wordpress post in that category. The KML just allows me to connect them logically.</p>
<p>Sounds like that's what you want to do as well.
</p></description>
		</item>
		<item>
			<title>Hjaltland on "Adding KML Layer"</title>
			<link>http://www.themolitor.com/forums/topic/adding-kml-layer#post-8841</link>
			<pubDate>Wed, 11 Apr 2012 01:59:48 +0000</pubDate>
			<dc:creator>Hjaltland</dc:creator>
			<guid isPermaLink="false">8841@http://www.themolitor.com/forums/</guid>
			<description><p>Hanswoltering, that's fantastic!  Thank you very much for posting this.  Now, could someone please send me a few extra hours for the working day so I can get it implemented?  Anyone?
</p></description>
		</item>
		<item>
			<title>hanswoltering on "Adding KML Layer"</title>
			<link>http://www.themolitor.com/forums/topic/adding-kml-layer#post-8838</link>
			<pubDate>Wed, 11 Apr 2012 00:07:52 +0000</pubDate>
			<dc:creator>hanswoltering</dc:creator>
			<guid isPermaLink="false">8838@http://www.themolitor.com/forums/</guid>
			<description><p>Great to hear it helped you :) It indeed is good for showing routes. That's what I missed in this theme.<br />
Now I only want to have tooltips like the ones on the main page, for all markers added in a KML, but I guess that's harder to achieve.
</p></description>
		</item>
		<item>
			<title>ivovic on "Adding KML Layer"</title>
			<link>http://www.themolitor.com/forums/topic/adding-kml-layer#post-8695</link>
			<pubDate>Sat, 07 Apr 2012 14:44:17 +0000</pubDate>
			<dc:creator>ivovic</dc:creator>
			<guid isPermaLink="false">8695@http://www.themolitor.com/forums/</guid>
			<description><p>Thank you so much for this. I've implemented it for category views to show the route from one point to another. Now there's some visual logic to all the points of interest on the map.</p>
<p>Thanks for posting your work.
</p></description>
		</item>
		<item>
			<title>hanswoltering on "Adding KML Layer"</title>
			<link>http://www.themolitor.com/forums/topic/adding-kml-layer#post-8592</link>
			<pubDate>Thu, 05 Apr 2012 00:37:06 +0000</pubDate>
			<dc:creator>hanswoltering</dc:creator>
			<guid isPermaLink="false">8592@http://www.themolitor.com/forums/</guid>
			<description><p>Transylmaniac, good to hear that.</p>
<p>Hjaltland, I'm trying to clarify as much as possible. Hope I don't forget anything...</p>
<p><strong>First in the function.php file, go to line 205 and find this code:</strong></p>
<pre><code>&#34;longitude&#34; =&#62; array(
&#34;name&#34; =&#62; &#34;longitude&#34;,
&#34;title&#34; =&#62; &#34;Longitude&#34;,
&#34;description&#34; =&#62; &#34;You can generate this info here: &#60;a target=&#039;_blank&#039; href=&#039;http://itouchmap.com/latlong.html&#039;&#62;http://itouchmap.com/latlong.html&#60;/a&#62;&#34;),

&#34;address_one&#34; =&#62; array(
&#34;name&#34; =&#62; &#34;address_one&#34;,
&#34;title&#34; =&#62; &#34;Address Line 1&#34;,
&#34;description&#34; =&#62; &#34;Example: &#039;100th ST NW&#039;&#34;),</code></pre>
<p><strong>Then, add in between those groups of lines the following text:</strong></p>
<pre><code>&#34;kmllayer&#34; =&#62; array(
&#34;name&#34; =&#62; &#34;kmllayer&#34;,
&#34;title&#34; =&#62; &#34;KML-layer&#34;,
&#34;description&#34; =&#62; &#34;Add URL to KML file to show for this post.&#34;),</code></pre>
<p><strong>It will then look like this:</strong></p>
<pre><code>&#34;longitude&#34; =&#62; array(
&#34;name&#34; =&#62; &#34;longitude&#34;,
&#34;title&#34; =&#62; &#34;Longitude&#34;,
&#34;description&#34; =&#62; &#34;You can generate this info here: &#60;a target=&#039;_blank&#039; href=&#039;http://itouchmap.com/latlong.html&#039;&#62;http://itouchmap.com/latlong.html&#60;/a&#62;&#34;),

&#34;kmllayer&#34; =&#62; array(
&#34;name&#34; =&#62; &#34;kmllayer&#34;,
&#34;title&#34; =&#62; &#34;KML-layer&#34;,
&#34;description&#34; =&#62; &#34;Add URL to KML file to show for this post.&#34;),

&#34;address_one&#34; =&#62; array(
&#34;name&#34; =&#62; &#34;address_one&#34;,
&#34;title&#34; =&#62; &#34;Address Line 1&#34;,
&#34;description&#34; =&#62; &#34;Example: &#039;100th ST NW&#039;&#34;),</code></pre>
<p><strong>Next</strong></p>
<p>This will give you a new box in the admin panel in posts/pages entry screens, where you can ad the full URL to the kml file. So this is including http:// and .kml at the end. Oh, and I found out that using paths that contain spaces don't work. So please give your kml file a filename without space.</p>
<p>Then, you need to add some code to the actual map, so that the kml will be loaded into the single post pages.</p>
<p><strong>In the file single.php, find the following bit of code starting at line 159:</strong></p>
<pre><code>jQuery(&#039;#gMap&#039;).gmap3({
    	action: &#039;addMarker&#039;,
    	lat:&#60;?php echo $data[ &#039;latitude&#039; ]; ?&#62;,
    	lng:&#60;?php echo $data[ &#039;longitude&#039; ]; ?&#62;,
    	marker:{
      		options:{
        		icon: new google.maps.MarkerImage(&#039;&#60;?php echo $pin2;?&#62;&#039;)
      		}
    	},
    	map:{
     	 center: true,
     	 zoom: zoomLevel
   		}
	},

{		action: &#039;setOptions&#039;, args:[{
			scrollwheel:true,
			disableDefaultUI:true,
			disableDoubleClickZoom:false,
			draggable:true,
			mapTypeControl: false,
			panControl:false,
			scaleControl:false,
			streetViewControl:false,
			zoomControl:false,
			mapTypeId:&#039;satellite&#039;
		}]
	});
});</code></pre>
<p><strong>There after first group of text, you need to add the following code:</strong></p>
<pre><code>{ action: &#039;addKmlLayer&#039;,
		url: &#039;&#60;?php echo $data[ &#039;kmllayer&#039; ]; ?&#62;&#039;,
		options:{
		suppressInfoWindows: true
		},
		},</code></pre>
<p><strong>Which will result in this:</strong></p>
<pre><code>jQuery(&#039;#gMap&#039;).gmap3({
    	action: &#039;addMarker&#039;,
    	lat:&#60;?php echo $data[ &#039;latitude&#039; ]; ?&#62;,
    	lng:&#60;?php echo $data[ &#039;longitude&#039; ]; ?&#62;,
    	marker:{
      		options:{
        		icon: new google.maps.MarkerImage(&#039;&#60;?php echo $pin2;?&#62;&#039;)
      		}
    	},
    	map:{
     	 center: true,
     	 zoom: zoomLevel
   		}
	},

		{ action: &#039;addKmlLayer&#039;,
		url: &#039;&#60;?php echo $data[ &#039;kmllayer&#039; ]; ?&#62;&#039;,
		options:{
		suppressInfoWindows: true
		},
		},

{		action: &#039;setOptions&#039;, args:[{
			scrollwheel:true,
			disableDefaultUI:true,
			disableDoubleClickZoom:false,
			draggable:true,
			mapTypeControl: false,
			panControl:false,
			scaleControl:false,
			streetViewControl:false,
			zoomControl:false,
			mapTypeId:&#039;satellite&#039;
		}]
	});
});</code></pre>
<p><strong>That now should load the KML-layer provided in the post or page entry screen.</strong></p>
<p>There are some things I need to clarify as well:<br />
<strong>1.</strong> If you don't provide a KML path (so leave the whole path empty) then it will show the post as normal (1 marker at the given latitude and longitude), together with the zoom level specified.<br />
<strong>2.</strong> If you provide a KML layer, the zoom level will be overruled, and the KML will be shown completely. The zoom level could be a bit of a problem, especially when you use it with the zoom-buttons in the bottom bar of this theme. I solved this by removing those buttons from the admin panel &#62; appearance &#62; theme options. And enable scroll zoom instead (as explained a few posts above this one).<br />
<strong>3.</strong> If your KML-path is not correct, the post will show without a map, a completely grey page, only with the post description/gallery etc in the floating window on top of it. If you see this, then check your KML-path.</p>
<p>Hope this works for you :)</p>
<p>Regards, Hans
</p></description>
		</item>
		<item>
			<title>Justin on "Adding KML Layer"</title>
			<link>http://www.themolitor.com/forums/topic/adding-kml-layer#post-8560</link>
			<pubDate>Wed, 04 Apr 2012 17:38:32 +0000</pubDate>
			<dc:creator>Justin</dc:creator>
			<guid isPermaLink="false">8560@http://www.themolitor.com/forums/</guid>
			<description><p>Nice! Thanks for helping other members, Hans.
</p></description>
		</item>
		<item>
			<title>Transylmaniac on "Adding KML Layer"</title>
			<link>http://www.themolitor.com/forums/topic/adding-kml-layer#post-8537</link>
			<pubDate>Wed, 04 Apr 2012 11:52:46 +0000</pubDate>
			<dc:creator>Transylmaniac</dc:creator>
			<guid isPermaLink="false">8537@http://www.themolitor.com/forums/</guid>
			<description><p>Hey Hans!<br />
Thanks a lot, works out great!
</p></description>
		</item>
		<item>
			<title>Hjaltland on "Adding KML Layer"</title>
			<link>http://www.themolitor.com/forums/topic/adding-kml-layer#post-8536</link>
			<pubDate>Wed, 04 Apr 2012 11:42:57 +0000</pubDate>
			<dc:creator>Hjaltland</dc:creator>
			<guid isPermaLink="false">8536@http://www.themolitor.com/forums/</guid>
			<description><p>Any chance you could post the changes you made in the background to get the KML file to display?
</p></description>
		</item>
		<item>
			<title>hanswoltering on "Adding KML Layer"</title>
			<link>http://www.themolitor.com/forums/topic/adding-kml-layer#post-8422</link>
			<pubDate>Tue, 03 Apr 2012 01:30:04 +0000</pubDate>
			<dc:creator>hanswoltering</dc:creator>
			<guid isPermaLink="false">8422@http://www.themolitor.com/forums/</guid>
			<description><p>Hi Transylmaniac,</p>
<p>The scrolling is very simple to achieve. When you want this to happen on both the overview map and the single posts, you need to change three files:</p>
<p>single.php<br />
script.php<br />
script_list.php</p>
<p>In every file the changes are the same:</p>
<p>Find the following code:</p>
<pre><code>{		action: &#039;setOptions&#039;, args:[{
			scrollwheel:false,
			disableDefaultUI:true,
			disableDoubleClickZoom:false,
			draggable:true,
			mapTypeControl: false,
			panControl:false,
			scaleControl:false,
			streetViewControl:false,
			zoomControl:false,
			mapTypeId:&#039;satellite&#039;</code></pre>
<p>and change this to:</p>
<pre><code>{		action: &#039;setOptions&#039;, args:[{
			scrollwheel:true,
			disableDefaultUI:true,
			disableDoubleClickZoom:false,
			draggable:true,
			mapTypeControl: false,
			panControl:false,
			scaleControl:false,
			streetViewControl:false,
			zoomControl:false,
			mapTypeId:&#039;satellite&#039;</code></pre></description>
		</item>
		<item>
			<title>Transylmaniac on "Adding KML Layer"</title>
			<link>http://www.themolitor.com/forums/topic/adding-kml-layer#post-8350</link>
			<pubDate>Sun, 01 Apr 2012 13:17:16 +0000</pubDate>
			<dc:creator>Transylmaniac</dc:creator>
			<guid isPermaLink="false">8350@http://www.themolitor.com/forums/</guid>
			<description><p>Dear Hans,</p>
<p>could you please kindly share how you did the scroll in/scroll out on the map?</p>
<p>Thanks!
</p></description>
		</item>
		<item>
			<title>Justin on "Adding KML Layer"</title>
			<link>http://www.themolitor.com/forums/topic/adding-kml-layer#post-8308</link>
			<pubDate>Sat, 31 Mar 2012 05:44:52 +0000</pubDate>
			<dc:creator>Justin</dc:creator>
			<guid isPermaLink="false">8308@http://www.themolitor.com/forums/</guid>
			<description><p>Hans,</p>
<p>Nice work! Hopefully other users looking to do the same thing will find your post helpful.  Unfortunately, these are customizations that go beyond the scope of this Forum, so even if I knew the answer, it wouldn't be something I could help with.  </p>
<p>Good luck!<br />
Justin
</p></description>
		</item>
		<item>
			<title>hanswoltering on "Adding KML Layer"</title>
			<link>http://www.themolitor.com/forums/topic/adding-kml-layer#post-8290</link>
			<pubDate>Fri, 30 Mar 2012 13:33:22 +0000</pubDate>
			<dc:creator>hanswoltering</dc:creator>
			<guid isPermaLink="false">8290@http://www.themolitor.com/forums/</guid>
			<description><p>Hi Justin,</p>
<p>I've been going through all the code and tried several things, and I can say that now it works for me.<br />
If for example you'd look at the following page: <a href="http://www.ourtrips.nl/148/malta-2" rel="nofollow">http://www.ourtrips.nl/148/malta-2</a><br />
Then you see that the KML layer gets loaded.</p>
<p>Also, I made this dynamically, by adding a new Metabox at the post/page entry in the admin-panel, where a path to the kml-file can be given.</p>
<p>Now I only have two questions, which you maybe can help me with.</p>
<p>1. For the posts that I have a kml-layer, I would like to hide the marker image of that post. But I can't delete it completely from the post, because it still needs to show up on the 'overview' map.</p>
<p>2. I have read of google maps restriction of using bigger icons in KML's than 32px. But maybe you know a way to get past it, as the icons I use now are slightly bigger and get blurred when scaled down.</p>
<p>Thanks again,<br />
Hans
</p></description>
		</item>
		<item>
			<title>Justin on "Adding KML Layer"</title>
			<link>http://www.themolitor.com/forums/topic/adding-kml-layer#post-7983</link>
			<pubDate>Wed, 21 Mar 2012 18:56:23 +0000</pubDate>
			<dc:creator>Justin</dc:creator>
			<guid isPermaLink="false">7983@http://www.themolitor.com/forums/</guid>
			<description><p>Hey Hans,</p>
<p>Thanks for the kind words!  Unfortunately, using KML layer is not part of the theme from a theme options standpoint.  You would need to modify the files directly. I will suggest it for future updates, but if you're looking to have it added in the near future,  you can fill out a customization request here: <a href="http://themolitor.com/custom" rel="nofollow">http://themolitor.com/custom</a></p>
<p>Thanks,<br />
Justin
</p></description>
		</item>
		<item>
			<title>hanswoltering on "Adding KML Layer"</title>
			<link>http://www.themolitor.com/forums/topic/adding-kml-layer#post-7900</link>
			<pubDate>Tue, 20 Mar 2012 13:50:41 +0000</pubDate>
			<dc:creator>hanswoltering</dc:creator>
			<guid isPermaLink="false">7900@http://www.themolitor.com/forums/</guid>
			<description><p>Hi there,</p>
<p>I bought your theme today and I must say it really looks nice, and response perfectly. Never had such an easy to set-up theme yet, so compliments there.</p>
<p>I now only have a question about adding a KML layer to the map. I see you use gmap3, which supports adding a kml-layer (even multiple layers), but in your theme there's nowhere an option to use it. Now I can imagine it's not implemented, but I really would like to add kml layers (preferably per blogpost), but I don't have the knowledge myself to implement it myself into the theme.</p>
<p>Do you know a way how I can achieve this?</p>
<p>Thanks in advance, Hans
</p></description>
		</item>

	</channel>
</rss>
