Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#76 2008-03-02 04:26:54

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

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

Well, I’ve been trying for a few days now to get this plugin to work, and the most I’ve ever managed to get out of it are a few repeated lines saying: Map Not Available

Trouble is I’m completely mystified as to what the problem is – which makes asking questions to try and solve it a problem. It seemed easier just to write the javascript to build a page to pull in 6 Custom Field variables or so, plus an xml file – my current state can bee seen here if anyone cares to have a gander.

Last edited by Spot (2008-04-22 23:14:49)


iMac 3.06 GHz 2 GB SDRAM
OSX 10.6.2

Offline

#77 2008-03-17 09:56:17

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

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

After trying something else I returned to have another go and first success!

Last edited by Spot (2008-04-22 23:12:11)


iMac 3.06 GHz 2 GB SDRAM
OSX 10.6.2

Offline

#78 2008-03-25 16:18:39

renobird
Member
From: Gainesville, Florida
Registered: 2005-03-02
Posts: 786
Website

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

Hey All.

I’ve been using this for quite a while now. All was working well.
Then I upgraded from 0.2 to 0.5 and all went dark.

Just using examples I get weirdness.

Using: <txp:rss_google_map lat="38.898563" long="-77.037223" geotitle="The White House" />
I get a map and all seems fine.

If I use: <txp:rss_google_map address="1600 Pennsylvania Ave NW" city="Washington" state="DC" zip="20500" />
I get “Map Not Available”

I’m just calling this from a page…no forms involved.
Api key is correct and present in the <head>

Running TXP 4.0.6

Any ideas? Thoughts? Directions? Rocks to bash my head against?


Tom

Offline

#79 2008-03-31 21:18:11

eddiejanzer
New Member
Registered: 2008-03-12
Posts: 4

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

I have 4 sites, they all do the very same thing. What did Spot do to correct the issue?

Offline

#80 2008-04-01 02:06:44

renobird
Member
From: Gainesville, Florida
Registered: 2005-03-02
Posts: 786
Website

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

eddiejanzer,

Thanks for the confirmation that I’m not entirely losing my mind.

Anyhow have v0.5 working on 4.0.6?


Tom

Offline

#81 2008-04-01 02:11:43

eddiejanzer
New Member
Registered: 2008-03-12
Posts: 4

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

you have to use longitude and latitude now, only way it will work (not your address)

Offline

#82 2008-04-13 11:22:10

keith
Member
From: Blyth, Northumberland, England
Registered: 2004-12-08
Posts: 199
Website

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

saccade wrote:

Maybe I didn’t find the information, but is there a way to change the first/default view from “Map” to “Satellite” or “Hybrid”?

Ever get/work out an answer to this, Michael?


Keith
Blyth, Northumberland, England
Capture The Moment

Offline

#83 2008-04-14 17:17:59

renobird
Member
From: Gainesville, Florida
Registered: 2005-03-02
Posts: 786
Website

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

you have to use longitude and latitude now, only way it will work (not your address)

What happened? Is there a problem with the Yahoo Geocoding API? That is what converts the address into longitude/latitude values right? This was all working nicely before. I’ve got a site with a bunch of addresses in custom fields…and now the mapping doesn’t work anymore.

Anyone out there have this working with addresses in custom fields?

Plz hlp.


Tom

Last edited by renobird (2008-04-14 17:19:31)

Offline

#84 2008-04-22 23:40:43

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

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

I’ve come to the conclusion that you cannot write a number of posts with co-ordinates in, to be contained within a single map on your site. If you look here – as you scroll down the page you will see the “Map Not Available” where the plugin has tried to place the maps from other posts (have a look at the source code for that page).

I’ve used the following in the body of my map page template: <txp:article_custom form=“rss_map” />
the “rss_map” form being: <txp:rss_google_map section=“articles” latfield=“lat” longfield=“long” usearticle=“1” />
and naturally the first and second Custom Fields set to “lat” and “long”

(I used the first two Custom Fields as they are the same as are used by the .xml file to draw this map I’d kept from earlier.)

If a single map is all that is achievable, beyond putting small inline maps within the page, I think it is a better idea to simply link out to GoogleMaps using an “Override” form (selected when required) for an article that is geotagged.

An example, with the form code is here at least this can then be worked-up to contain further information to display on the GMap – possibly to contain polygon data and a kml file, if required.

Cheers.


iMac 3.06 GHz 2 GB SDRAM
OSX 10.6.2

Offline

#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

Board footer

Powered by FluxBB