Maps in Drupal

6 views
Skip to first unread message

MattyB

unread,
Apr 21, 2010, 8:10:09 AM4/21/10
to TAL Unconference April 2010
I'm sorry to say I missed out on the mapping session in the afternoon,
I would have loved to have come along, but as a web developer, I
really did need to attend Nickys course on finding stories.

For anyone who is considering or already using the wonderful drupal
open source content management system, it's got some excellent add on
modules that can really add some life to your pages. In most cases
you'll just embed a map from google maps and have done with it, which
is fine in 99% of all cases.

Every now and then you might want to do a little bit more, and this is
where dupal's gmap and location module come in,

One of the tools available from these add ons is the ability for the
"gmap" module, to work hand in hand with drupals list building modules
"Views".
Every entry in the My Tunstall business directory can have a address
added to it, making use of druapals "location" module, and it offers a
range of fields such as street, town, city, county, postcode. When you
submit your page/node/entry the location module then tries to get a
longitude and latitude value from google's (or other services) API.

Any entry in my business directory database that has been geocoded
will automatically be pulled onto the map.
http://mytunstall.co.uk/directorymap/all
You'll also noticed that different business types are in set colours.
Another powerful feature is it's taxonomy features (categories to you
and me), which you can assign a colour to.

To set up, you don't need to be a developer either, just a bit of
patience, but if anyone is working with drupal and wants a heads up,
please give me a shout.

Macro Builder
Another tool that comes with drupal's gmaps module is it's macro
builder, that allows you in it's most basic form, to pop a map onto
you page. It also has other tools such as the ability to draw circles,
lines, polygons, pin pricks on a map, and it will give you the code to
pop into your drupal pages.

For instance the map found here was plotted with the macro builder
tool,
http://mytunstall.co.uk/forum/where-stoke-north-picture-3-where-tunstall-north-stoke-picture-competition#comment-4761

Which gave this chunk of code to be pasted into the site, it might not
look pretty, but it works

[gmap polygon=53.0418322948451,-2.219409942626953 +
53.03703284298958,-2.211942672729492 +
53.0348651734726,-2.2054195404052734 +
53.038890758700504,-2.2003555297851562 +
53.0408518050969,-2.1958065032958984 +
53.04152266891268,-2.1904850006103516 +
53.04668281079559,-2.1857643127441406 +
53.04926265010124,-2.1794986724853516 +
53.06050894517696,-2.185506820678711 +
53.071133480932524,-2.1938323974609375 +
53.073402459593915,-2.1973514556884766 +
53.07066935693269,-2.203531265258789 +
53.07072092651301,-2.2173500061035156 +
53.06711090675205,-2.2250747680664062 +
53.06344900615901,-2.2242164611816406 +
53.061488987799535,-2.2247314453125 +
53.060199453400976,-2.2189807891845703 +
53.05798136394119,-2.21923828125 +
53.05535045863127,-2.2195816040039062 +
53.05359643250981,-2.2206974029541016 +
53.0508104795635,-2.224130630493164 +
53.04596042811766,-2.2217273712158203 +
53.0426063499471,-2.2199249267578125 |zoom=13 |
center=53.05400915096188,-2.1928024291992188 |width=550px |
height=400px |control=Large |type=Map]

Drupal
http://drupal.org/
Modules
http://drupal.org/project/gmap
http://drupal.org/project/location

Cheers - Matt


--
Subscription settings: http://groups.google.com/group/tal-unconference-april-2010/subscribe?hl=en-GB

CountCulture

unread,
Apr 21, 2010, 8:28:53 AM4/21/10
to tal-unconfere...@googlegroups.com
Matt

Great stuff. Would be worth posting in the new TAL Exchange I'd have
thought.

Chris
-------------------------------------------------------
OpenlyLocal :: Making Local Government More Transparent
http://openlylocal.com
Blog: http://countculture.wordpress.com
Twitter: http://twitter.com/CountCulture

Hugh Flouch

unread,
Apr 21, 2010, 8:35:19 AM4/21/10
to tal-unconfere...@googlegroups.com
Tal Exchange?

Hugh Flouch

MattyB

unread,
Apr 21, 2010, 8:41:13 AM4/21/10
to TAL Unconference April 2010
Will, do, I'll give it a re-read, and get some screen grabs handy, and
package it up.

I got a few raised eyebrows and the odd thrown when I said I was a
drupal developer at the weekend, but I think once your over that
initial what the hells this then, which you get when you first install
drupal, it's an amazing system.

I'd love to talk it up more if there is a need for it in Talkabout
Local Land, and it's not a freely hosted system like wordpress is and
ning is/was.

Matt
> >http://mytunstall.co.uk/forum/where-stoke-north-picture-3-where-tunst...
> OpenlyLocal :: Making Local Government More Transparenthttp://openlylocal.com
> Subscription settings:http://groups.google.com/group/tal-unconference-april-2010/subscribe?...
Reply all
Reply to author
Forward
0 new messages