Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#85 2008-04-23 01:49:10

nardo
Member
From: tuvalahiti
Registered: 2004-04-22
Posts: 743

Re: [plugin] [ORPHAN] rss_google_map - display articles on google maps

Spot – I have multiple markers (each a separate article) on a single map – but not using this plugin… followed these instructions basically:
David Ramos: Google Maps in Textpattern

Offline

#86 2008-04-23 07:44:39

Spot
Member
Registered: 2006-05-05
Posts: 39
Website

Re: [plugin] [ORPHAN] rss_google_map - display articles on google maps

nardo – your method seems to be the one I am using for this page – the custom fields I am using to fill the xml file are:

lat = latitude
long = longitude
txt = text in the map overlays
url = link from map overlays
img = image used to describe link
icn = category icon for map marker

with added code for the zoom links within the marker boxes.

The problem with this is that you cannot link from the article to that specific related point on the map – easy to link back from the map to your article.

My WordPress installation uses a plugin that does allow two way linking – example – and you can specify at which zoom level you enter the map from the article. Plus it does polygons etc. Click on the link within the map bubble to go to the article and the GeoTag link at the bottom of the article to go back to the map. (At the time of writing I’ve only got one link left, as I’ve separated my blogs and removed all the rest of the links/polygon tracks.)

This is the kind of functionaliity I was after with rss_google_map PLUS the big feature that the WP plugin has of entering meta information into the head of each article page so that even without using a visible marker within your blog page – a geo meta aware browser, such as iCab or Firefox/Flock equipped with the MiniMap plugin – will see that data and link to a GoogleMap. (I’m pretty sure this is not possible with Txp as it stands.)

See this page on main blog for a demo of this – you will need iCab or the MiniMap plugin of course, but I have also included visible geotags for browsers that are not able to see this meta information – incidentally this meta info may be provided as either:

<meta name=“ICBM” content=”-22.656314092003544, 14.565553665161133” />
or
<meta name=“geo.position” content=”-22.656314092003544;14.565553665161133” />
or both!

Cheers

Last edited by Spot (2008-05-18 23:29:58)


iMac 3.06 GHz 2 GB SDRAM
OSX 10.6.2

Offline

#87 2008-04-23 23:16:28

nardo
Member
From: tuvalahiti
Registered: 2004-04-22
Posts: 743

Re: [plugin] [ORPHAN] rss_google_map - display articles on google maps

Spot, I\\you’re way ahead of me with this. But I do have two way linking…

This is the code I have in the article form –

<txp:if_custom_field name="lat"><a href="<txp:site_url />map?lat=<txp:custom_field name="lat" />&amp;long=<txp:custom_field name="long" />">View on map.</a></txp:if_custom_field>

When you click the link, you’re taken to the map page, centered and zoomed on the article’s marker.

RE: meta in the head of the HTML … you could use conditional tags to isolate an individual article from a list page … and in that instance, if your lat/long custom fields are filled out for that article (i.e. it’s a geo-article, not a static page), then output the relevant custom fields into the meta tag…

PS I see u been to Wilpena Pound, that’s a beautiful part of the world!!

Offline

#88 2008-04-24 00:08:17

Spot
Member
Registered: 2006-05-05
Posts: 39
Website

Re: [plugin] [ORPHAN] rss_google_map - display articles on google maps

Hey thanks nardo – that code is pretty much like I use to link to Googlemaps – why didn’t I think of that?!

Only one small problem at the moment – it doesn’t centre on the point. Must be something in my map code, but I can see if I can get it to work, it should be able to carry a zoom value as well.

I think your way ahead of me on the conditional/meta tags – I’ll have to do some reading…

Wilpena – Best part of a day stalking the rare Yelllow-footed Rock Wallaby – nobody else to be seen – brilliant :)

Cheers.


iMac 3.06 GHz 2 GB SDRAM
OSX 10.6.2

Offline

#89 2008-05-19 02:04:42

Spot
Member
Registered: 2006-05-05
Posts: 39
Website

Re: [plugin] [ORPHAN] rss_google_map - display articles on google maps

Revisited this after a little break and the answer came easily – the subconscious at work!

Anyway, now links are to and from blog-map and points are centred-on and zoomed. I’m using a fixed zoom for the points from the blog post, but if I stick another custom field in there, this could equally be passed as a variable. There are zoom controls within the popup overlays.

http://spotthehall.com/map

I’ll put a link to a posting with the code – tomorrow…


iMac 3.06 GHz 2 GB SDRAM
OSX 10.6.2

Offline

#90 2008-05-25 10:08:42

Spot
Member
Registered: 2006-05-05
Posts: 39
Website

Re: [plugin] [ORPHAN] rss_google_map - display articles on google maps

In the absence of anywhere else to post this, here is the link to the TextBook work-through for Geoblogging using Google AJAX API


iMac 3.06 GHz 2 GB SDRAM
OSX 10.6.2

Offline

#91 2009-01-12 14:38:33

duchamp
Member
From: Patagonia
Registered: 2005-02-03
Posts: 222
Website

Re: [plugin] [ORPHAN] rss_google_map - display articles on google maps

Well, I’m lost … is this plugin working as before, using addresses or just with latitude and longitude?
Thx in advance

Offline

#92 2009-01-12 22:40:41

Spot
Member
Registered: 2006-05-05
Posts: 39
Website

Re: [plugin] [ORPHAN] rss_google_map - display articles on google maps

duchamp wrote:

Well, I’m lost … is this plugin working as before, using addresses or just with latitude and longitude?

This is not the plugin, this is the manual way!

See: http://spotthehall.com/geoblogging

I am about to update it again (in a minor way) – just I’m a mite busy at the mo.


iMac 3.06 GHz 2 GB SDRAM
OSX 10.6.2

Offline

#93 2009-01-13 00:08:45

duchamp
Member
From: Patagonia
Registered: 2005-02-03
Posts: 222
Website

Re: [plugin] [ORPHAN] rss_google_map - display articles on google maps

bq.Spot wrote:

This is not the plugin, this is the manual way!

Oops! You’re right! I don’t know how I ended here :) I was reading the Plugin thread … well, I found my own way to make it work, but if its updated I want to use the Plugin soon!
Anyway, Thx!

Offline

#94 2009-01-13 18:55:33

Spot
Member
Registered: 2006-05-05
Posts: 39
Website

Re: [plugin] [ORPHAN] rss_google_map - display articles on google maps

Sorry, looks like a thread hijack ;)

Not sure if the plugin has/is being updated, I could never get it to work the way I wanted, i.e. drawing links onto one centralised map.


iMac 3.06 GHz 2 GB SDRAM
OSX 10.6.2

Offline

#95 2009-02-02 16:18:52

mlarino
Member
Registered: 2007-06-29
Posts: 367

Re: [plugin] [ORPHAN] rss_google_map - display articles on google maps

can this plugin do something like this with all the posts?
if not, is there something I could use?
thanks!
http://www.elmundo.es/callejero/index.html?qver=1&qlat=40.4198&qlng=-3.70307&qzoom=17&qtext=Calle+Salud%2C+19%3Cbr+%2F%3EMadrid%2C+MADRID%3Cbr+%2F%3E&qwidth=750&qheight=500&qsm=0&qhzoom=0&qhmapst=0&qmapt=G_NORMAL_MAP&qsv=0&qinfow=1&qticono=R&md5=36c7e1e3079814cc3e7f07d27e2c8932

Offline

#96 2009-02-02 17:22:50

Spot
Member
Registered: 2006-05-05
Posts: 39
Website

Re: [plugin] [ORPHAN] rss_google_map - display articles on google maps

Yes mlarino, the method with do that at a minimum.

However, it’s not a plugin, you have to activate and label some of the Custom Fields and create a new map page, mapdata page and form, it’s all here


iMac 3.06 GHz 2 GB SDRAM
OSX 10.6.2

Offline

Board footer

Powered by FluxBB