Jump to content

Recommended Posts

Posted

hi, have been trying unsuccessfully all morning to get a google map onto my contact us page (Rydens School)

i have tried plug-ins and html modules, but it just shifts the page around and doesnt put a map in.

 

I found an article with instructions on how to replace the contacts image with a google map, but it was from 2006 for 1.0.

 

can anyone point me in the right direction? thanks!

Posted

I'm sure you might have tried this but if you click on the Link button on the google maps website (once you have it displaying your area) - it will take you to a screen to generate HTML code to inject into your site.

 

Works for my sites anyway.

 

Tom

Posted

thats the one i was using earlier

How to add a Google Map to your Joomla website

i followed everything fine, but i got stuck on the plugin code

 

-----------------------------------------

Plugin Code

The map at the top of the page was created by adding in the following code, using the coordinates for Times Square. I have removed the {...} which need to surround the entire section otherwise it would post a map. The paragraphs I have added for formatting reasons also need to be removed. The code can be posted anywhere in the body of your html and once inserted will show up as a map on your page. The whole process is very simple.

 

mosmap width='500'|height='400'|lat='40.75671'|lon='-73.98646'|zoom='3'| zoomType='Large'|zoomNew='3'|mapType='map'| showMaptype='1'| overview='1'|text='Good web practices'|lang=''

 

The code is fairly self explanatory in terms of customisation, but a full breakdown of the different parameters can be found here. The best idea is to play with each of the values and reload the map to see how they effect it. There is alot of detailed information on how to add more features to your map, such as directions and route plans on the developer's site which can be found here.

-----------------------------------------

 

I put the code into a html module but couldn't follow how to edit it after I put my longditude and latitude in. I entered it into the html editor part, but it wasnt recognised as code and just displayed the text

Posted (edited)

make sure your plug in is enabled

 

This is the code I use for my map here - Ashlawn School And Science College - Map

{mosmap width='100%'|height='400px'|lat='52.35743'|lon='-1.231241'|zoom='15'|zoomType='Large'|showScale='0'|zoomNew='1'|mapType='Hybrid'|showMaptype='0'|overview='0'|text='Ashlawn School & Science College‎,
Ashlawn Road,
Rugby,
Warwickshire,
CV22 5ET'|tooltip='tooltip'}

 

Make sure you put it in the html code editor and not the wysiwyg editor

Edited by mossj

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...