pusatdata

Cara Pakai PlugIn GoogleMap Jooma

Sep 18th, 2014
269
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.27 KB | None | 0 0
  1. You can put the {mosmap} with parameters anywhere in content in Joomla: intro text or main text. You can see examples and documentation on my demo site: tech.reumer.net.
  2.  
  3. Check the html of the content item so there are no <br /> or &nbsp; between { } or in the html a return.
  4. The plugin works for one line! It can be once, twice or more to display multiple, inline maps on a single content page for different locations and configurations.
  5.  
  6. Usage: {mosmap width='500'|height='400'|lat='52.052312'|lon='4.447141'|
  7. zoom='3'|zoomType='Large'|zoomNew='0'|mapType='Satellite'|showMaptype='1'|
  8. overview='0'|text='sv DWO'|tooltip='DWO'|marker='1'|
  9. align='center'}
  10. (remove the returns between the line or <br /> so its one line
  11.  
  12. You can change any of the parameters:
  13.  
  14. width, height to whatever you want although if its too small, you won't see very much.
  15. You must put the units behind the number like 100% or 400px
  16.  
  17. lon, lat for the coordinates or address to search for the coordinates (should consist of street number, zipcode town, country)
  18.  
  19. zoom can be anything as specified in the Google Maps API.
  20.  
  21. zoomType, can be Small or Large, this controls the type of zoom function displayed or None so there is no zoomcontrol.
  22.  
  23. zoomNew, can be 1 for continues zoom and doubleclick and zoom or 0 for click to center (default 0)
  24.  
  25. zoomWheel, can be 1 for mousewheel zoom and 0 for no mousewheel zoom (default 0)
  26.  
  27. mapType can be Normal (default), Satellite, Hybrid, Terrain or Earth.
  28.  
  29. showMaptype is 0 for no Maptype controls and 1 shows Maptype controls (default 1)
  30.  
  31. 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)
  32.  
  33. 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!
  34.  
  35. marker is for opening the infowindow (1 default) or close the infowindow (0) initially.
  36.  
  37. dir for adding get directions form for a route at maps.google.com to the coordinates.
  38.  
  39. tooltip is for the marker to have a tooltip when the mouse is on the marker (don't use HTML)
  40.  
  41. icon is the url to a icon for the marker so it can be different then default of Google
  42.  
  43. address is for a address to search for the coordinates (lon/lat has to be empty)
  44.  
  45. gotoaddr is for a searchfield and button so the user can search a address on the map (default 0)
  46.  
  47. kml is for a url to a kmlfile to load as a overlay on the map for multiple markers or a route
  48.  
  49. traffic is for showing traffic on the map (Only USA currently)
  50.  
  51. align is for placement of the map in the content (left, right or center)
  52.  
  53. lang is for the language of the maps.
  54.  
  55. lightbox is for placing a link/button to show a lightbox of the map (default 0)
  56.  
  57. show is for making the map displayed (default 1) or not. With lightbox on then the map only appears in lightbox.
  58.  
  59.  
  60.  
  61. You can set the key in the mosmap tag (optional) or Multiple urls and keys at the parameters by the plugin in the administrator of Joomla. You can register for a Google Maps Key here.
Add Comment
Please, Sign In to add comment