On Air
Bienvenue, Invité
Merci de vous identifier ou de vous inscrire.    Mot de passe perdu?

Google Maps
(1 lecteur(s)) (1) Invité(s)
Aller en basPage: 1
SUJET: Google Maps
#6716
Google Maps Il y a 3 Années, 1 Mois  
Hi everyone,

Here is the code to display a Google map into a post :

Code :

{ mosmap width='500'|height='400'|lat='25.354826'|
lon='51.183884'|zoom='3'|zoomType='Large'|zoomNew='0'|
mapType='Satellite'|showMaptype='1'|overview='0'|
text='QATAR'|tooltip='QATAR'|marker='1'|align='center'}



To display the above code I was obliged to add a space after the first { and cut the line with returns. Don't forget to remove the space to obtain this > {mosmap.....etc, and returns. The code must be on one line to be functional.



You can change any of the parameters:

width, height to whatever you want although if its too small, you won't see very much.
You must put the units behind the number like 100% or 400px. In fact I recommand to let the default values.

lon and lat for the coordinates and/or address to search for the coordinates (use standard of your country)

zoom can be anything as specified in the Google Maps API.

zoomType, can be Small or Large, this controls the type of zoom function displayed or None so there is no zoomcontrol.

zoomNew, can be 1 for continues zoom and doubleclick and zoom or 0 for click to center (default 0)

zoomWheel, can be 1 for mousewheel zoom and 0 for no mousewheel zoom (default 0)

mapType can be Normal (default), Satellite, Hybrid, Terrain or Earth.

showMaptype is 0 for no Maptype controls and 1 shows Maptype controls (default 1)

Overview is 0 for no overview window in bottom right corner and 1 shows the overview and 2 for overview enabled but close initially (default 0)

text is for the marker, that will show on the map with a balloon. If you don't want to see the text, just set text=" and it will not display, the text is the data displayed above the location pin. Usually it would be used to display an address or hyperlink. A hyperlink is possible use the format: <a href=linkAddress target=linkTarget title=linkTitle>linkName</a>. Don't use (double) quotes!

marker is for opening the infowindow (1 default) or close the infowindow (0) initially.

dir for adding get directions form for a route at maps.google.com to the coordinates.

tooltip is for the marker to have a tooltip when the mouse is on the marker (don't use HTML)

icon is the url to a icon for the marker so it can be different then default of Google

address is for a address to search for the coordinates

gotoaddr is for a searchfield and button so the user can search a address on the map (default 0)

kml is for a url to a kmlfile to load as a overlay on the map for multiple markers or a route

traffic is for showing traffic on the map (Only USA currently)

align is for placement of the map in the content (left, right, center or none)
Max
TinaWebTeam
Messages: 54
graphgraph
Personne n'est hors ligne Cliquez ici pour consulter le profil de cet utilisateur
Dernière édition: 14/05/10 à 01:26 Par Max.
L'administrateur a désactivé l'accès public en écriture.
 
#8484
Re:Google Maps Il y a 3 Années  
Very much thanks to you Max, I'll be the first to try it.


Scorpius++
Platinum Boarder
Messages: 1771
graphgraph
Personne n'est hors ligne Cliquez ici pour consulter le profil de cet utilisateur
Dernière édition: 06/06/10 à 15:47 Par Scorpius++.
L'administrateur a désactivé l'accès public en écriture.
 
#8486
Re:Google Maps Il y a 3 Années  
I found this website very useful: tech.reumer.net/
Scorpius++
Platinum Boarder
Messages: 1771
graphgraph
Personne n'est hors ligne Cliquez ici pour consulter le profil de cet utilisateur
L'administrateur a désactivé l'accès public en écriture.
 
#8770
Re:Google Maps Il y a 3 Années  
Elisabeth2's hometown goes to "Let's talk about->You->Where's your hometown?"
Scorpius++
Platinum Boarder
Messages: 1771
graphgraph
Personne n'est hors ligne Cliquez ici pour consulter le profil de cet utilisateur
L'administrateur a désactivé l'accès public en écriture.
 
#8780
Re:Google Maps Il y a 3 Années  
Thanks Wan, you're a legend.
Léo
TinaWebTeam
Messages: 85
graphgraph
Personne n'est hors ligne Cliquez ici pour consulter le profil de cet utilisateur
L'administrateur a désactivé l'accès public en écriture.
 
#8915
Re:Google Maps Il y a 3 Années  
Wooow!!! Thanks for titling me legend Léo though there's still a long way ahead to fulfill it.
Scorpius++
Platinum Boarder
Messages: 1771
graphgraph
Personne n'est hors ligne Cliquez ici pour consulter le profil de cet utilisateur
L'administrateur a désactivé l'accès public en écriture.
 
Revenir en hautPage: 1
Modérateur: Tori Bellentina, Vik
Obtenir les derniers messages directement sur votre PC
0 membres et 13 invités en ligne

Chat

Dernier post, il y a: 3 jours, 17 heures
  • avatar
    tina-arena4ever : I'M NOT French and it is you who is arrogant Surprised Surprised
  • avatar
    Jana : oh my god what arrogance
  • avatar
    tina-arena4ever : oh my god what selfishness
  • avatar
    Jana : I hope not so the French stop living on an Island and learn another language and stop being arrogant about their language.
  • avatar
    tina-arena4ever : there will be a French translation? Sad Sad
  • avatar
    Jana : Is Leo fired?
  • avatar
    Jana : Tina's biography is called Unchained and will be released om October 1st. 2013 «link»
  • avatar
    sharree spence : 'Some other starlight uncharted moonlight Dying to live the moment' Laughing
  • avatar
    sharree spence : Some other starlight uncharted moonlight Dying to live the moment
  • avatar
    tina-arena4ever : please des nouvelles Confused Confused

Seuls les Membres enregistrés peuvent poster.

Newsletter

Souscrire

Recevoir

Zone privée