OK i'm getting myself all in a muddle here.

We have events listed with a location and contact details listed with a location. All of these are quite findable on googlemaps and i would love to have the map created within the node so it helps members find the location easier.

Now i've tried the maps module locally but this has a TinyMCE plugin that i can't use to test (my local copy of TinyMCE never displays even though its an exact copy of my live site where it works perfectly, bever understood it) so i couldn't test that at all. Its likely to work on the main site but i only install modules on there when i know 100% they will suit my needs.

I then installed the gmap module, entered my key and then promptly sat looking at the screen on what to do next. There was no new node type for these maps, no addition to exisiting nodes and no clue what i was supposed to do with them.

So anybody care to jump in and help me out here ? I would imagine the maps would have to be created manually somewhere, although obviously if an automated option is available that would be so much better.

Anyone care to throw me a bone ? :)

Comments

MarekP’s picture

After you enable the Gmap module, you will notice a new command "build a macro" in the admin menu. Use it to build a Gmap macro (selected map region with markers or lines) and than include it in your page (or story, or any other node type). Don't forget to enable "GMap filter" for the content filters you have been using for pages with the maps. You can do it under "administer » input formats".

Live sample of the result: http://corsica.forhikers.com/ferries

-- it's nothing more just a makro built by Gmap module.

desm0n’s picture

Thanks for getting back to me here on this.

Your example is great but try as i might i cannot see a build macro anywhere in either the admin section or indeed in add content. I'm sure im missing something, but have no idea what :)
--
http://www.porttalbotchat.co.uk
-------------------------------------------------
Our mission is to discuss issues and topics of residents of Port Talbot. We provide info on events, issues, concerns and discussions of our local area.

desm0n’s picture

Ah i have the link now. I think it was because i had both modules installed that caused issues ...

Now how do i add some text to markers ?
--
http://www.porttalbotchat.co.uk
-------------------------------------------------
Our mission is to discuss issues and topics of residents of Port Talbot. We provide info on events, issues, concerns and discussions of our local area.

MarekP’s picture

Here is a sample macro from ma site:

[gmap |id=map |center=42.2, 9.0 |zoom=8 |width=100% |height=400px |control=Small |type=Map |markers=41.91990617504295,8.788375854492188:<p>Ajaccio - Campo dell Oro (AJA)</p> + 42.545239614512,9.479656219482422:<p>Bastia - Poretta (BIA)</p> + 42.521521904625054,8.790435791015625:<p>Calvi - Sainte Catherine Aeroport (CLY)</p> + 41.49957819023732,9.100799560546875:<p>Figari Sud Corse Airport (FSC)</p>]

As you can see, the text for the info windows that are opened after you click on a marker, should go just behind the coordinates and it is separated from them by colon.

desm0n’s picture

Perfect, thanks ever so much for your help here. Works great .

Want point however, if i put html in there it disables the map. So this would work -

[gmap |id=map |center=51.598134134554584, -3.783867359161377 |zoom=16 |width=400px |height=300px |control=Small |type=Map |markers=51.59802750296516,-3.7841248512268066:test]

But this doesn't

[gmap |id=map |center=51.598134134554584, -3.783867359161377 |zoom=16 |width=400px |height=300px |control=Small |type=Map |markers=51.59802750296516,-3.7841248512268066:

test

]

Any ideas ?
--
http://www.porttalbotchat.co.uk
-------------------------------------------------
Our mission is to discuss issues and topics of residents of Port Talbot. We provide info on events, issues, concerns and discussions of our local area.

desm0n’s picture

Ah its the linebreak filter, problem solved.

Thanks again for helping me through this ..
--
http://www.porttalbotchat.co.uk
-------------------------------------------------
Our mission is to discuss issues and topics of residents of Port Talbot. We provide info on events, issues, concerns and discussions of our local area.