Comments on: KML (& NetworkLink) for Nearby & any Geo-WordPress!http://www.nearby.org.uk/blog/2007/02/17/kml-networklink-for-nearby-any-geo-wordpress/
GIS, maps, mapping, geo, UK, Geograph, PHP, Perl and moreTue, 05 May 2015 10:07:08 +0000hourly1http://wordpress.org/?v=3.1.4By: Aaron Spencehttp://www.nearby.org.uk/blog/2007/02/17/kml-networklink-for-nearby-any-geo-wordpress/comment-page-1/#comment-674
Aaron SpenceTue, 27 Feb 2007 23:39:48 +0000http://www.nearby.org.uk/blog/2007/02/17/kml-networklink-for-nearby-any-geo-wordpress/#comment-674Update - Fixed.
Andrew Turner one of the Geopress devs didn't know what was causing the problem, but had updated the code a little. He sent me the updated code, and it's all working fine once again, just as before.
Rather crazy that code can work one day and not the next, but there you have it, the wonderful world of programming, of which I am thankfully, not a part :)
Thanks again, Aaron.Update – Fixed.

Andrew Turner one of the Geopress devs didn’t know what was causing the problem, but had updated the code a little. He sent me the updated code, and it’s all working fine once again, just as before.

Rather crazy that code can work one day and not the next, but there you have it, the wonderful world of programming, of which I am thankfully, not a part

I note the code I pasted has been stripped out. It is line 96 in the wp-kml.php file.

-metadata–? print convert_chars etc

Thanks, Aaron.

]]>By: Aaron Spencehttp://www.nearby.org.uk/blog/2007/02/17/kml-networklink-for-nearby-any-geo-wordpress/comment-page-1/#comment-672
Aaron SpenceTue, 27 Feb 2007 21:55:38 +0000http://www.nearby.org.uk/blog/2007/02/17/kml-networklink-for-nearby-any-geo-wordpress/#comment-672Update:
I does appear the problem is on my end. When I attempt to load the following page into my brower:
http://pano.com.au/blog/wp-kml.php
it is stopped at line 91 which would execute the following line from the wp-kml.php file, but appears reticent to do it.
I know this isn't your problem, but any light you could shed on this to help me track down the problem would be much appreciated.
Thanks, Aaron.Update:

I does appear the problem is on my end. When I attempt to load the following page into my brower:

it is stopped at line 91 which would execute the following line from the wp-kml.php file, but appears reticent to do it.

I know this isn’t your problem, but any light you could shed on this to help me track down the problem would be much appreciated.

Thanks, Aaron.

]]>By: Aaron Spencehttp://www.nearby.org.uk/blog/2007/02/17/kml-networklink-for-nearby-any-geo-wordpress/comment-page-1/#comment-671
Aaron SpenceTue, 27 Feb 2007 20:30:12 +0000http://www.nearby.org.uk/blog/2007/02/17/kml-networklink-for-nearby-any-geo-wordpress/#comment-671G'day Barry,
Sorry to hassel you again. Tried out my google mini-mashup this morning, and it's not working, when yesterday it was fine. AFAIK I haven't changed anything, but you never know.
I came over to check your mini-mashup to see if it was a google issue & yours is gone. Although it's not showing the error all mine are ie 'contains errors'.
So my question, is your mini-mashup still working (and I've messed up my system somehow) or has google changed something?
Thanks, Aaron.G’day Barry,

Sorry to hassel you again. Tried out my google mini-mashup this morning, and it’s not working, when yesterday it was fine. AFAIK I haven’t changed anything, but you never know.

I came over to check your mini-mashup to see if it was a google issue & yours is gone. Although it’s not showing the error all mine are ie ‘contains errors’.

So my question, is your mini-mashup still working (and I’ve messed up my system somehow) or has google changed something?

Thanks, Aaron.

]]>By: Barryhttp://www.nearby.org.uk/blog/2007/02/17/kml-networklink-for-nearby-any-geo-wordpress/comment-page-1/#comment-660
BarrySat, 24 Feb 2007 15:44:18 +0000http://www.nearby.org.uk/blog/2007/02/17/kml-networklink-for-nearby-any-geo-wordpress/#comment-660Thanks Andrew,
yes if you can use the code please do! It's only a quick adaptation of the wp-rss2.php file so there might be a better way to package it, also I guess really would be nice to add a rewrite rule for it.
As for the number of items, yes it would be nice to have a setting, from the quick investigation earlier didn't spot an easy way because it essentially using the rss feed functions just outputting kml.
Aaron - glad to see the code been put to good use!Thanks Andrew,

yes if you can use the code please do! It’s only a quick adaptation of the wp-rss2.php file so there might be a better way to package it, also I guess really would be nice to add a rewrite rule for it.

As for the number of items, yes it would be nice to have a setting, from the quick investigation earlier didn’t spot an easy way because it essentially using the rss feed functions just outputting kml.

Aaron – glad to see the code been put to good use!

]]>By: Aaron Spencehttp://www.nearby.org.uk/blog/2007/02/17/kml-networklink-for-nearby-any-geo-wordpress/comment-page-1/#comment-653
Aaron SpenceSat, 24 Feb 2007 07:25:56 +0000http://www.nearby.org.uk/blog/2007/02/17/kml-networklink-for-nearby-any-geo-wordpress/#comment-653G'day Barry,
I've finally got all my posts updated to the new format to work better inside google maps. I've also created a 'Previous Destinations' page to allow viewers to check out regional blog posts in google maps.
http://pano.com.au/blog/previous-destinations/
I'm extremely pleased with how it's all working, and once again thank you for your great work.
Aaron.G’day Barry,

I’ve finally got all my posts updated to the new format to work better inside google maps. I’ve also created a ‘Previous Destinations’ page to allow viewers to check out regional blog posts in google maps.

I’m extremely pleased with how it’s all working, and once again thank you for your great work.

Aaron.

]]>By: Aaron Spencehttp://www.nearby.org.uk/blog/2007/02/17/kml-networklink-for-nearby-any-geo-wordpress/comment-page-1/#comment-650
Aaron SpenceThu, 22 Feb 2007 00:55:46 +0000http://www.nearby.org.uk/blog/2007/02/17/kml-networklink-for-nearby-any-geo-wordpress/#comment-650G'day Barry,
I've been playing around with my blog and your code and have it working as pointed out in your last comment. ie I can specify a category (tag) for the output, and it will output all the posts I have in that category up to the number of items I have specified in my RSS feed. (In this case 20)
This is fine for the time being as any categories I want to use will have less than 20 posts.
I'm now reworking my post formatting etc to have it work better in google maps. That way people will be able to browse my blog on an area by using google maps which is very cool.
Thanks again, and I'll post a link as soon as I'm done with the redesign.
Aaron.G’day Barry,

I’ve been playing around with my blog and your code and have it working as pointed out in your last comment. ie I can specify a category (tag) for the output, and it will output all the posts I have in that category up to the number of items I have specified in my RSS feed. (In this case 20)

This is fine for the time being as any categories I want to use will have less than 20 posts.

I’m now reworking my post formatting etc to have it work better in google maps. That way people will be able to browse my blog on an area by using google maps which is very cool.

Thanks again, and I’ll post a link as soon as I’m done with the redesign.

Aaron.

]]>By: Andrew Turnerhttp://www.nearby.org.uk/blog/2007/02/17/kml-networklink-for-nearby-any-geo-wordpress/comment-page-1/#comment-647
Andrew TurnerWed, 21 Feb 2007 13:48:30 +0000http://www.nearby.org.uk/blog/2007/02/17/kml-networklink-for-nearby-any-geo-wordpress/#comment-647Hi Barry - very neat addition. If you don't mind, I am going to bundle these additions into GeoPress (with credit & license of course), and they will show up in the next release.
Regarding Aaron's request for the # of items. It appears as though Wordpress force overrides the $posts_per_page when it is a feed, so if you just do wp(); instead of specifying the feed, then you get all the items.
As you point out, this is hacky, because you lose any other logic that Wordpress uses for outputting feed-formatted information. A little more digging may reveal being able to specify an action to override the number of posts - this could then be incorporated into GeoPress as a setting: "Number of locations in KML feed"
AndrewHi Barry – very neat addition. If you don’t mind, I am going to bundle these additions into GeoPress (with credit & license of course), and they will show up in the next release.

Regarding Aaron’s request for the # of items. It appears as though WordPress force overrides the $posts_per_page when it is a feed, so if you just do wp(); instead of specifying the feed, then you get all the items.

As you point out, this is hacky, because you lose any other logic that WordPress uses for outputting feed-formatted information. A little more digging may reveal being able to specify an action to override the number of posts – this could then be incorporated into GeoPress as a setting: “Number of locations in KML feed”

Andrew

]]>By: Barryhttp://www.nearby.org.uk/blog/2007/02/17/kml-networklink-for-nearby-any-geo-wordpress/comment-page-1/#comment-643
BarryMon, 19 Feb 2007 12:46:10 +0000http://www.nearby.org.uk/blog/2007/02/17/kml-networklink-for-nearby-any-geo-wordpress/#comment-643> how about being able to populate the google map by tag
You can do that now with the categories (which are ecentially tags in wp?), .php?cat=20 or .php?category_name=photospot ,
but will still run into problems with the map only displaying as many points as you have items in your rss feed (I guess an option in WP changes this) - if the above fix didnt work then will need more study of the WP documentation - I'll take a look if get a chance...> how about being able to populate the google map by tag

You can do that now with the categories (which are ecentially tags in wp?), .php?cat=20 or .php?category_name=photospot ,

but will still run into problems with the map only displaying as many points as you have items in your rss feed (I guess an option in WP changes this) – if the above fix didnt work then will need more study of the WP documentation – I’ll take a look if get a chance…

]]>By: Aaron Spencehttp://www.nearby.org.uk/blog/2007/02/17/kml-networklink-for-nearby-any-geo-wordpress/comment-page-1/#comment-640
Aaron SpenceMon, 19 Feb 2007 00:04:03 +0000http://www.nearby.org.uk/blog/2007/02/17/kml-networklink-for-nearby-any-geo-wordpress/#comment-640Thanks Barry,
I gave it a run, first altering just the wp-kml.php file, then doing the same to the wp-kml-link.php file, but no go I'm afraid. (you may want to check my files, 'cause as you've seen I ain't the programmer)
http://www.pano.com.au/blog/wp-kml-link.php?bhall=1
I note the dire warnings about using this type of thing above, I guess as the post numbers rise, things will eventually break. So.... how about being able to populate the google map by tag. ie I'm doing Hobart at the moment in my blog, once I'm finished with Hobart, I'd love to have a google map with all the hobart posts on it. (Created automatically with your code of course :)
Don't know if it is possible, but I'm happy to pay to make it happen :)
Thanks, Aaron.Thanks Barry,

I gave it a run, first altering just the wp-kml.php file, then doing the same to the wp-kml-link.php file, but no go I’m afraid. (you may want to check my files, ’cause as you’ve seen I ain’t the programmer)

I note the dire warnings about using this type of thing above, I guess as the post numbers rise, things will eventually break. So…. how about being able to populate the google map by tag. ie I’m doing Hobart at the moment in my blog, once I’m finished with Hobart, I’d love to have a google map with all the hobart posts on it. (Created automatically with your code of course