Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: msd_google_map: Easily associate a location with your articles
maniqui wrote:
I would keep: 1 location = 1 article.
Then, on an article list context (a special section), I would iterate over all the location articles, picking up the two custom fields for each article, and render them on a single Google map.But I’m just thinking out loud.
That’s certainly something I would expect a client side plugin to provide but mine is simply a admin side plugin for entering the data. You may be able to do what your suggesting using rss_google_map but I haven’t used it.
maniqui wrote:
^^ :)
Although I’m not using this plugin, I think this functionality is outside of this plugin scope, right?
I mean, the plugin is just for populate lat/long values into two custom fields.
Then, it’s up to you how you use this values on the front side.In other words, there is “nothing” else this plugin could do (right now) to help on the task of creating a map with many markers. The plugin already does all you need (I think).
Exactly!
Last edited by MattD (2009-04-22 03:11:16)
Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker
Offline
#14 2009-04-21 21:43:05
- candyman
- Member
- From: Italy
- Registered: 2006-08-08
- Posts: 684
Re: msd_google_map: Easily associate a location with your articles
Ops, a strange error with latest version:
Error while loading the plug-in: msd_google_map -> User_Warning: Duplicate entry ’1-13’ for key 1
insert into txp_prefs set name=‘13’, val=‘13’, prefs_id=‘1’ on line 82
I imagine it’s a simple thing to correct in my configuration but I prefer to ask before doing something wrong…
Offline
Re: msd_google_map: Easily associate a location with your articles
Version 1.1 is fixed and ready for your enjoyment.
Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker
Offline
Re: msd_google_map: Easily associate a location with your articles
I just put together a simple example of how you can use the article location data.
In my example I’m displaying a map with markers for each article image.
edit: fixed link to map example
Last edited by MattD (2010-03-25 22:30:12)
Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker
Offline
Re: msd_google_map: Easily associate a location with your articles
Nice.
But… how do you get multiple markers from just one article?
Offline
Re: msd_google_map: Easily associate a location with your articles
You don’t. The example is displaying markers for multiple articles.
Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker
Offline
#19 2009-04-23 10:58:54
- candyman
- Member
- From: Italy
- Registered: 2006-08-08
- Posts: 684
Re: msd_google_map: Easily associate a location with your articles
MattD wrote:
Version 1.1 is fixed and ready for your enjoyment.
Thank you! Problem solved with the new release!
Offline
Re: msd_google_map: Easily associate a location with your articles
MattD wrote:
You don’t. The example is displaying markers for multiple articles.
Ah, ok, so you are using an article (article/map-example
) to display data from other articles, instead of doing it on an article list. That confused me :).
Offline
Re: msd_google_map: Easily associate a location with your articles
Yeah, sorry about that. I’ve added the code used to the article so you can see what I did.
Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker
Offline
Re: msd_google_map: Easily associate a location with your articles
Version 1.2 adds support for TXP 4.0.6 thanks to a tip from jm
See first post for download link
Last edited by MattD (2009-04-24 16:12:07)
Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker
Offline
Re: msd_google_map: Easily associate a location with your articles
Hi everyone.
Sometime ago, I did write a client side plugin to allow me to display articles on a map – the popup showed the article title and excerpt.
I have long ago pulled it from my site, but it worked. I posted by approach in response to a different thread here >== Google maps api integration
Offline
Re: msd_google_map: Easily associate a location with your articles
There is also a tutorial on Textbook
Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker
Offline