Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#25 2009-04-27 15:03:18

catnip
Member
From: Sydney Australia
Registered: 2006-07-29
Posts: 58
Website

Re: msd_google_map: Easily associate a location with your articles

Matt, pretty cool.
Is there an easy way to implement the map in a contact form or article comment so that a visitor can place the marker on the map and submit their location?

Offline

#26 2009-04-27 15:40:10

MattD
Plugin Author
From: Monterey, California
Registered: 2008-03-21
Posts: 1,254
Website

Re: msd_google_map: Easily associate a location with your articles

catnip wrote:

Matt, pretty cool.
Is there an easy way to implement the map in a contact form or article comment so that a visitor can place the marker on the map and submit their location?

That could easily be done using something like zem_contact_reborn. My plugin sets the value of the custom field when the map is clicked. You could similarly set the value of a hidden zem_contact field.


My Plugins

Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker

Offline

#27 2009-04-27 15:50:13

catnip
Member
From: Sydney Australia
Registered: 2006-07-29
Posts: 58
Website

Re: msd_google_map: Easily associate a location with your articles

Thanks for the prompt response. I’ll have to give it a try.

What I’m actually looking to do is a project in which people post where they’re coming from and where they’re going to and create a visualisation out of that. Would I have to use two maps in the contact form?

Offline

#28 2009-04-27 17:47:05

MattD
Plugin Author
From: Monterey, California
Registered: 2008-03-21
Posts: 1,254
Website

Re: msd_google_map: Easily associate a location with your articles

@catnip –

I threw together a little code to demonstrate how location data could be included in your contact form. I can look at selecting two locations when I have more time.


My Plugins

Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker

Offline

#29 2009-04-27 18:27:30

catnip
Member
From: Sydney Australia
Registered: 2006-07-29
Posts: 58
Website

Re: msd_google_map: Easily associate a location with your articles

Thanks Matt. I’m probably doing something wrong. Not sure if I need the plugin for this, but having just installed it, I can’t really see the new fields in the write tab. Do I actually need to go through this ?
BTW I’v been trying this on a 4.0.7

Offline

#30 2009-04-27 18:30:26

MattD
Plugin Author
From: Monterey, California
Registered: 2008-03-21
Posts: 1,254
Website

Re: msd_google_map: Easily associate a location with your articles

For the write tab you do not need to follow that tutorial. You’ve activated the plugin and updated your google maps api key on the Extensions tab here /textpattern/index.php?event=msd_google_map?


My Plugins

Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker

Offline

#31 2009-04-27 18:39:19

catnip
Member
From: Sydney Australia
Registered: 2006-07-29
Posts: 58
Website

Re: msd_google_map: Easily associate a location with your articles

Didn’t realise it was under extensions. Was looking for the Article Location Preferences tab in Admin/Preferences. Ok, plonked my API and now I get the map interface in the write tab, but my test contact form doesn’t display a map.

Last edited by catnip (2009-04-27 23:42:35)

Offline

#32 2009-04-27 21:02:28

MattD
Plugin Author
From: Monterey, California
Registered: 2008-03-21
Posts: 1,254
Website

Re: msd_google_map: Easily associate a location with your articles

You’re missing

<script src="http://maps.google.com/maps?file=api&amp;v=2&amp;sensor=false&amp;key=YOUR API KEY"></script>

which should be in the head of your document.

Note: This is not related to msd_google_map plugin since it is on the public side of your site.


My Plugins

Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker

Offline

#33 2009-04-27 21:46:36

catnip
Member
From: Sydney Australia
Registered: 2006-07-29
Posts: 58
Website

Re: msd_google_map: Easily associate a location with your articles

Works a treat

THANK YOU VERY MUCH!

Offline

#34 2009-08-31 17:26:53

MattD
Plugin Author
From: Monterey, California
Registered: 2008-03-21
Posts: 1,254
Website

Re: msd_google_map: Easily associate a location with your articles

I’ve created a demonstration of one way to use your article location data to create a map of your articles.


My Plugins

Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker

Offline

#35 2009-08-31 18:11:16

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,011
Website GitHub Mastodon Twitter

Re: msd_google_map: Easily associate a location with your articles

matt,

Looks promising. I’m currently working on the IMCA and I may will need this plugin. There is a problem with your demo as the images are not contained in the “clouds”, and neither are the texts.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#36 2009-08-31 19:59:35

MattD
Plugin Author
From: Monterey, California
Registered: 2008-03-21
Posts: 1,254
Website

Re: msd_google_map: Easily associate a location with your articles

colak wrote:

There is a problem with your demo as the images are not contained in the “clouds”, and neither are the texts.

What browser are you using? For me the images and text are within the bubble.


My Plugins

Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker

Offline

Board footer

Powered by FluxBB