├── index.html ├── media ├── index.html └── site │ ├── index.html │ ├── Twitter │ ├── index.html │ └── twitter_map_icon.png │ ├── elabel │ ├── index.html │ └── elabel_v3.js │ ├── arcgislinkv3 │ ├── index.html │ └── arcgislink_compiled.js │ ├── geoxmlv3 │ ├── index.html │ └── images │ │ ├── index.html │ │ ├── ge.png │ │ ├── m1.png │ │ ├── m2.png │ │ ├── m3.png │ │ ├── m4.png │ │ ├── m5.png │ │ ├── geo.gif │ │ ├── rssb.png │ │ ├── folder.png │ │ ├── icon40.png │ │ ├── icon40s.png │ │ ├── blue_large.png │ │ ├── shadow_large.png │ │ ├── msmarker.shadow.png │ │ └── pushpin_shadow.png │ ├── googlemaps │ ├── index.html │ ├── googlemaps.css.php │ └── googlemapsv3.js │ ├── moodalbox │ ├── index.html │ ├── js │ │ ├── index.html │ │ ├── modalbox1.2hackv3.js │ │ └── modalbox1.3hackv3.js │ ├── css │ │ ├── index.html │ │ └── moodalbox.css │ └── img │ │ ├── index.html │ │ ├── loading.gif │ │ └── closelabel.gif │ ├── googleearthv3 │ ├── index.html │ └── googleearth.js │ └── geolocation │ ├── images │ └── gpsloc.png │ └── js │ └── geolocationmarker.js ├── models ├── index.html └── fields │ ├── index.html │ └── mediakey.php ├── README.md ├── .gitattributes ├── plugin_googlemap3_proxy.php ├── update └── extension.xml ├── plugin_googlemap3.css.php ├── plugin_googlemaps.css.php ├── .gitignore ├── layouts └── dirform.php ├── language ├── en-GB │ └── en-GB.plg_system_plugin_googlemap3.sys.ini ├── sv-SE │ └── sv-SE.plg_system_plugin_googlemap3.sys.ini ├── fr-FR │ └── fr-FR.plg_system_plugin_googlemap3.sys.ini ├── it-IT │ └── it-IT.plg_system_plugin_googlemap3.sys.ini └── es-ES │ └── es-ES.plg_system_plugin_googlemap3.sys.ini ├── plugin_googlemap3_twitteroauth.php ├── plugin_googlemap3_kmlprxy.php ├── plugin_googlemap3_twitter_kml.php ├── plugin_googlemap3.php └── plugin_googlemap3_OAuth.php /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /media/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /models/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /media/site/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /models/fields/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /media/site/Twitter/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /media/site/elabel/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /media/site/arcgislinkv3/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /media/site/geoxmlv3/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /media/site/googlemaps/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /media/site/moodalbox/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /media/site/moodalbox/js/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /media/site/geoxmlv3/images/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /media/site/googleearthv3/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /media/site/moodalbox/css/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /media/site/moodalbox/img/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /media/site/geoxmlv3/images/ge.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jmosmap/plugin_googlemaps/HEAD/media/site/geoxmlv3/images/ge.png -------------------------------------------------------------------------------- /media/site/geoxmlv3/images/m1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jmosmap/plugin_googlemaps/HEAD/media/site/geoxmlv3/images/m1.png -------------------------------------------------------------------------------- /media/site/geoxmlv3/images/m2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jmosmap/plugin_googlemaps/HEAD/media/site/geoxmlv3/images/m2.png -------------------------------------------------------------------------------- /media/site/geoxmlv3/images/m3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jmosmap/plugin_googlemaps/HEAD/media/site/geoxmlv3/images/m3.png -------------------------------------------------------------------------------- /media/site/geoxmlv3/images/m4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jmosmap/plugin_googlemaps/HEAD/media/site/geoxmlv3/images/m4.png -------------------------------------------------------------------------------- /media/site/geoxmlv3/images/m5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jmosmap/plugin_googlemaps/HEAD/media/site/geoxmlv3/images/m5.png -------------------------------------------------------------------------------- /media/site/geoxmlv3/images/geo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jmosmap/plugin_googlemaps/HEAD/media/site/geoxmlv3/images/geo.gif -------------------------------------------------------------------------------- /media/site/geoxmlv3/images/rssb.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jmosmap/plugin_googlemaps/HEAD/media/site/geoxmlv3/images/rssb.png -------------------------------------------------------------------------------- /media/site/moodalbox/img/loading.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jmosmap/plugin_googlemaps/HEAD/media/site/moodalbox/img/loading.gif -------------------------------------------------------------------------------- /media/site/geoxmlv3/images/folder.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jmosmap/plugin_googlemaps/HEAD/media/site/geoxmlv3/images/folder.png -------------------------------------------------------------------------------- /media/site/geoxmlv3/images/icon40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jmosmap/plugin_googlemaps/HEAD/media/site/geoxmlv3/images/icon40.png -------------------------------------------------------------------------------- /media/site/geoxmlv3/images/icon40s.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jmosmap/plugin_googlemaps/HEAD/media/site/geoxmlv3/images/icon40s.png -------------------------------------------------------------------------------- /media/site/Twitter/twitter_map_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jmosmap/plugin_googlemaps/HEAD/media/site/Twitter/twitter_map_icon.png -------------------------------------------------------------------------------- /media/site/geolocation/images/gpsloc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jmosmap/plugin_googlemaps/HEAD/media/site/geolocation/images/gpsloc.png -------------------------------------------------------------------------------- /media/site/geoxmlv3/images/blue_large.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jmosmap/plugin_googlemaps/HEAD/media/site/geoxmlv3/images/blue_large.png -------------------------------------------------------------------------------- /media/site/moodalbox/img/closelabel.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jmosmap/plugin_googlemaps/HEAD/media/site/moodalbox/img/closelabel.gif -------------------------------------------------------------------------------- /media/site/geoxmlv3/images/shadow_large.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jmosmap/plugin_googlemaps/HEAD/media/site/geoxmlv3/images/shadow_large.png -------------------------------------------------------------------------------- /media/site/geoxmlv3/images/msmarker.shadow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jmosmap/plugin_googlemaps/HEAD/media/site/geoxmlv3/images/msmarker.shadow.png -------------------------------------------------------------------------------- /media/site/geoxmlv3/images/pushpin_shadow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jmosmap/plugin_googlemaps/HEAD/media/site/geoxmlv3/images/pushpin_shadow.png -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # plugin_googlemaps 2 | This is the Joomla plugin Google maps by Reumer based on Google Maps API version 3. 3 | 4 | You can put the {mosmap} with parameters anywhere in content in Joomla: intro text or main text of an article, components and modules. You can see examples and documentation on my demo site: http://tech.reumer.net. 5 | 6 | Look at the wiki page for more information: https://github.com/jmosmap/plugin_googlemaps/wiki/Welcome 7 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | 4 | # Custom for Visual Studio 5 | *.cs diff=csharp 6 | 7 | # Standard to msysgit 8 | *.doc diff=astextplain 9 | *.DOC diff=astextplain 10 | *.docx diff=astextplain 11 | *.DOCX diff=astextplain 12 | *.dot diff=astextplain 13 | *.DOT diff=astextplain 14 | *.pdf diff=astextplain 15 | *.PDF diff=astextplain 16 | *.rtf diff=astextplain 17 | *.RTF diff=astextplain 18 | -------------------------------------------------------------------------------- /plugin_googlemap3_proxy.php: -------------------------------------------------------------------------------- 1 | 2 |This is version 3.3 of the plugin Google maps for Joomla 1.5+ native, Joomla 2.5+ and Joomla 3.x and support for Google Maps API version 3 (Google Terms).
Just go to Joomla menu Extensions submenu Install/Uninstall (1.5+) or Extensions submenu extension manager tab install (2.5+/3.x) in your administration console. Upload and install the plugin with zip-file, for Joomla 1.5+ use file with J15 in the name and for Joomla 2.5+/3.x use file with J25_J30 in the name.
Then go to Joomla menu Extensions submenu Plugin Manager and publish the Plugin Google Maps.
After publishing the plugin go to the parameters of the plugin by clicking on the name of the plugin. Here you can set the defaults of the parameters and if you want to use Google Maps API version 3 the Google API key (Google APIs Console) because of the usage limits and billing.
Always enable the plugin, because with the extra plugin parameter Published you can set if the mostag must be removed or that the mostag is replace with a Google map.
You can put the {mosmap} with parameters anywhere in content in Joomla: intro text or main text of an article, components and modules. You can see examples and documentation on my demo site: tech.reumer.net.
Check the html of the content item so there are no html like <br />, <span> or between { } or in the html a return.
If you work with pure html code, be sure that there isn't any '\\r\\n' tags in the mosmap string between { } in your database code.
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.
Usage: {mosmap width='500'|height='400'|lat='52.052312'|lon='4.447141'|
zoom='3'|mapType='Satellite'|text='sv DWO'|tooltip='DWO'|
marker='1'|align='center' }
(goto html view of an article and remove the returns between the line or <br /> so its one line)
You can change any of the parameters:
For all parameters see here
You can set the single Google key or Multiple urls and Google keys at the parameters by the plugin in the administrator of Joomla. You can register for a Google API Key Google API Console.
Det här är version 3.3 av Google Maps insticksprogram för Joomla 1.5+ grundprogram, Joomla 2.5+ och Joomla 3.x samt support för Google Maps API version 3 (Google Terms).
Gå till Joomla menyn Tillägg och undermenyn Installera/Avinstallera (1.5+) eller Tillägg och undermenyn Hantera tillägg (2.5+/3.x) på din administrationssida.Ladda upp och installera plugin-filen i sip-format där du för Joomla 1.5+ använder filen som har J15 i namnet och för Joomla 2.5+/3.x filen med J25_J30 i namnet.
Gå sen till Joomla menyn för Tillägg undermenyn Insticksprogram och publicera insticksprogrammet Google Maps.
Gå sedan till inställningarna i insticksprogrammet genom att klicka på insticksprogrammets namn. Här kan du ställa in grundinställningarna av parametrarna och om du vill använda Google Maps API version 3 samt även Googles API nyckel (Google APIs Konsoll)på grund av användar och licenssavtal.
Aktivera alltid insticksprogrammet för då kan du ställa in om mostag skall tas bort eller om den skall ersättas med en Google karta.
Du kan lägga till {mosmap} med olika parametrar var du vill i innehållet i Joomla: ingress eller brödtext i en artikel, komponenter och moduler. Du hittar exempel och dokumentation (på engelska) på min demosite: tech.reumer.net.
Kontrollera html-koden i innehållet så att det inte finns html som t ex <br />, <span> eller mellan { } eller i html-koden.
Om du arbetar med ren html-kod så kontrollera att det inte finns några '\\r\\n' taggar i mosmap strängen mellan { } i din databaskod.
Insticksprogrammet fungerar för en rad i taget!
Det kan finnas med en, två eller flera gånger för att visa flera kartor för olika platser på samma sida.
Användning: {mosmap width='500'|height='400'|lat='52.052312'|lon='4.447141'|
zoom='3'|mapType='Satellite'|text='sv DWO'|tooltip='DWO'|
marker='1'|align='center' }
(gå till html-visningen av en artikel och ta bort radbytena mellan raderna eller <br /> så att det blir en enda rad)
Du kan ändra vilken som helst av inställningarna:
För en lista på alla inställningar, se här
Du kan ställa in en Google nyckel alternativt flera url-adresser och Google nycklar i inställningarna för insticksprogrammet i Joomlas administratörpanel.Du kan registrera dig för en Google API nyckel på Google API Console.
Ceci est la version 3.3 du plugin Google maps pour Joomla 1.5+ native, Joomla 2.5+ et Joomla 3.x. Ce plugin gère les version 3 de Google Maps API (Termes Google).
Il suffit d'aller dans le menu Extensions Installation/Désinstallation de Joomla!(1.5+) ou le sous-menu Extensions du gestionnaire des extensions, onglet installation pour Joomla!2.5+/3.x) dans l'espace administration de votre site. Téléchargez et installez le plugin (fichier zippé), pour Joomla 1.5, utilisez le fichier dont le nom comporte J15, et pour Joomla 2.5+/3.x utilisez le fichier dont le nom comporte J25.
Une fois l'installation réussie, allez dans le sous-menu des Extensions, menu Gestionnaire des Plugins et publiez le Plugin Google Maps.
Après avoir publier ce plugin, cliquez sur le nom du Plugin pour commencer à paraméter le plugin. Vous pouvez alors définir les paramètres par défaut du plugin. Si vous souhaitez utliser un clé Google API (Consoles des API Google) pour les cartes Google Api - version 3, en raison des nouvelles limitations d'usage et facturation (en cas de dépassement du nombre de cartes chargés depuis votre site) .
Il faut toujours activer le plugin afin de traiter le tag 'mosmap' ou autre (selon vos paramétrages), et que ce tag soit interprété en carte Google et donc que le code soit invisilbe dans la partie contenu de l'article en question.
Vous pouvez insérer le tag {mosmap} n'importe où dans le contenu de Joomla! : en intro d'un acticle, dans le contenu d'un article, dans des composants, et modules! Sur mon site Démo, à tout moment, vous pouvez voir des exemples et accéder à la documentation : tech.reumer.net.
Vérifiez bien que le code html de votre article ne transforme pas ou n'ai pas de caractères de substitution <br />, <span> ou dans le tag { }.
Si vous écrivez en code html pur, prenez soin de retirer les tags '\\r\\n' dans la code du plugine, entre { } au sein même du code de votre base de donnée.
Ce plugin ne fonctionne que sur UNE seule et unique ligne! Prenez garde aux retours chariot et autres précisés ci-avant.
Toutefois, vous pouvez afficher, une, deux ou plusieurs cartes Google au sein d'un même article, avec des lieux et configuations différentes.
Utilisation type du plugin: {mosmap Largeur='500'|Hauteur='400'|lat='52.052312'|lon='4.447141'|
zoom='3'|mapType='Satellite'|text='sv DWO'|tooltip='DWO'|
marker='1'|align='center' }
(si vous copiez ce code, pensez à effacer les tags <br /> du code html du plugin, et donc retirer les retour chariot pour obtenir votre code sur 1 seule et même ligne)
Vous pouvez changer les paramètres:
Pour voir TOUS les paramètres utlisés et utilisables : c'est par ici
Vous pouvez définir une seule clé Google ou plusieurs dans les paramètres du plugin dans l'interface administation de Joomla!. Pour obtenir une clé pour atteindre la console Google API (nouvelle règlementation)Google API Console.
" 8 | -------------------------------------------------------------------------------- /language/it-IT/it-IT.plg_system_plugin_googlemap3.sys.ini: -------------------------------------------------------------------------------- 1 | ; $Id: it-IT.plg_system_plugin_googlemap3.sys.ini 2011-01-20 00:05:36 2 | ; Created by Giuseppe Lanzetta, Twitter: @glSEOblog, Website: http://www.giuseppelanzetta.com 3 | ; Copyright (C) 2011 Tech Reumer. All rights reserved. 4 | ; License http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL, see LICENSE.php 5 | ; Note : All ini files need to be saved as UTF-8 6 | 7 | GOOGLE MAPS="Google Maps" 8 | PLUGIN_GOOGLE_MAP3_INSTALLATION="Questa è la versione 3.3 del mambot di google map per Joomla 1.0x, Joomla 1.5+ nativo, Joomla 2.5 o Joomla 3.x con supporto per la API di Google Maps versione 3 (Google Terms).
Andare alla voce Installa/Disinstalla del menu Estensioni di Joomla (1.5+) dal proprio pannello di amministrazione. Caricare ed installare il plugin.
Per attivare il plugin è necessario andare in Estensioni/Gestione Plugin (1.5+) e pubblicare Plugin Google Maps.
Dopo aver pubblicato il plugin bisognerà settarne i parametri, per far ciò basterà cliccare sul nome dello stesso. Qui è possibile settare i parametri di default e, cosa ancor più importante, inserire la Google API key (Console delle API di Google) e per le versioni 3 a causa dei limiti di utilizzo delle stesse.
In Joomla 1.5 è necessario attivare sempre il plugin. È anche necessario controllare che siano pubblicati i parametri extra del plugin
Inserire la stringa {mosmap} con i relativi parametri in qualunque punto dei contenuti di Joomla: nel testo introduttivo o nel testo principale. Sono disponibili esempi e documentazione sul sito del plugin: tech.reumer.net.
È importante controllare che nel codice html del plugin non vi siano <br /> o all'interno delle parentesi { }.
Il plugin funziona solo se il codice viene inserito in una unica linea! È anche possibile mostrare più di una mappa in una sola pagina di contenuti
Utilizzo: {mosmap width='500'|height='400'|lat='52.052312'|lon='4.447141'|
zoom='3'|zoomType='Large'|zoomNew='0'|mapType='Satellite'|showMaptype='1'|
overview='0'|text='sv DWO'|tooltip='DWO'|marker='1'|
align='center'}
(rimuovere gli invio tra le righe o i <br /> per avere un'unica linea di codice)
È possibile modificare i seguenti parametri:
width, height: per modificare rispettivamente la larghezza e l'altezza della mappa.
lon, lat: per le coordinate e/o l'indirizzo da cercare con le coordinate
zoom: come specificato nelle Google Maps API può essere impostato a piacere.
zoomType: questo parametro controlla il tipo di funzione zoom mostrato, può essere impostato a Small, Large o None per non mostrarlo.
zoomNew: può essere impostato a 1 per avere lo zoom continuo ed effettuare lo zoom con il doppio click, 0 per per impostare il clicca e centra (default 0)
zoomWheel: controllo dello zoom con lo scroller del mouse, può essere attivato impostando il parametro a 1, 0 per disattivarlo (default 0)
mapType: può essere impostato a Normal (default), Satellite, Hybrid o Terrain.
showMaptype: 0 per non mostrare il controllo sul tipo di mappa e 1 per mostrarlo (default 1)
Overview: 0 per non mostrare la finestra overview in basso a destra, 1 per mostrarla e 2 per attivare l'overview e mostrarla inizialmente chiusa (default 0)
text: il testo da mostrare nella infowindow del marker. Per non mostrare testo basta impostare text=". Solitamente è usato per mostrare un indirizzo o un link, per quest'ultimo è possibile usare questo formato: <a href=linkAddress target=linkTarget title=linkTitle>linkName</a>. Non utilizzare virgolette!
marker: per mostrare la infowindow inizialmente aperta impostare il parametro a 1 (default), 0 per mostrarla chiusa.
dir: parametro che serve ad aggiungere un form per la ricerca di un percorso da/per il punto indicato dal marker.
tooltip: serve a mostrare un testo ogni volta che si passa con il mouse sul marker (non usare HTML)
icon: inserire l'indirizzo (url) di una immagine per visualizzare il marker con una icona differente da quella di default di Google.
address: per utilizzare un indirizzo al posto delle coordinate
gotoaddr: parametro che serve a mostrare un form per la ricerca di un indirizzo nella mappa (default 0)
kml: indicando un indirizzo di un file kml è possibile mostrare marker multipli o percorsi
traffic: per mostrare il traffico nelle mappe (attualmente funziona solo in USA)
align: per settare l'allineamento della mappa rispetto al contenuto (left, right, center o none)
lightbox: serve a inserire un link/bottone per mostrare la mappa in un lightbox (default 0)
show: per mostrare o no la mappa (default 1). Con lightbox attivo la mappa verrà visualizzata solo quando si farà click sul link/bottone.
La Google Key può essere impostata direttamente nel tag mosmap (opzionale), è anche possibile settare domini e key multiple dalla pagina di amministrazione del plugin. Per ottenere una Google API Key Google API Console.
" 9 | -------------------------------------------------------------------------------- /language/es-ES/es-ES.plg_system_plugin_googlemap3.sys.ini: -------------------------------------------------------------------------------- 1 | ; $Id: es-ES.plg_system_plugin_googlemap3.sys.ini 2011-01-20 00:05:36 2 | ; Created by Tod Normal, website: 3 | ; Copyright (C) 2011 Tech Reumer. All rights reserved. 4 | ; License http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL, see LICENSE.php 5 | ; Note : All ini files need to be saved as UTF-8 6 | 7 | GOOGLE MAPS="Mapas de Google" 8 | PLUGIN_GOOGLE_MAP3_INSTALLATION="Este plugin es la version 3.3 de el mambot de mapas de google para Joomla 1.5+, Joomla 2.5+ y Joomla 3.x soportando los API 3 de Google Maps (Google Terms).
Ir al menu Extensiones submenu Gestor de Extensiones (2.5+/3.x) o menu Extensiones, submenu Instalar/desinstalar (1.5+) en la consola del administrador. Descargue e instale el plugin con el archivo zip, para Joomla 1.5 use el archivo con J15 en el nombre y para Joomla 2.5/3.x use el archivo J25_J30 en el nombre.
Entonces vaya al menu Extensiones submenu Gestor de Plugin y publique el Plugin Google Maps (1.5+ o 2.5+ o 3.x).
Después de publicar el plugin vaya a los parametros de el plugin pulsando el boton del raton sobre el nombre del plugin. Aqui puedes ajustar los valores por omision de los parametros y ajustar la Google API key (Google APIs Console) for google maps version 3 because of the usage limits and billing.
Para Joomla 1.5 publique siempre el plugin. Con el parametro extra plugin Publicado puedes ajustar si el mostag debe ser removido o si el mostag es reemplazado con el Googlemap.
Puedes colocar el {mosmap} con parametros en cualquier lugar del contenido de Joomla: texto introductorio o el cuerpo del texto. Puedes ver ejemplos y documentación en mi sitio demo: tech.reumer.net.
Revisa el html de el item de contenido asi como <br /> o entre { } o en el html un enter.
If you work with pure html code, be sure that there isn't any '\\r\\n' tags in the mosmap string between { } in your database code.
El plugin trabaja para una línea!
Puede ser una, dos o más para desplegar múltiples, mapas de contenido para diferente localizaciones y configuraciones.
Uso: {mosmap width='500'|height='400'|lat='52.052312'|lon='4.447141'|
zoom='3'|zoomType='Large'|zoomNew='0'|mapType='Satellite'|showMaptype='1'|
overview='0'|text='sv DWO'|tooltip='DWO'|marker='1'|
align='center'}
(remover los retornos de carro entre las líneas o <br /> de forma que sea una sola línea)
Puedes cambiar cualquiera de los parametros:
width (ancho), height (alto) aunque si lo ajustas demasiado sera demasiado pequeño y podrías no ver mucho.
lon y lat para las coordenadas y/o direccion para buscar por las coordenadas (use estandar de su país)
zoom puede ser cualquiera como se específica en el API de Google Maps.
zoomType, puede ser Small o Large, este controlael tipo de la función de zoom desplegada o None para que no haya control de zoom.
zoomNew, puede ser 1 para continuo zoom con docleclick y zoom o 0 para un click (por omision esta en 0)
zoomWheel, puede ser 1 para zoom con la rueda del mouse y 0 para no hacer zoom con la rueda del mouse (por omisión 0)
mapType puede ser Normal (default), Satellite, Hybrid or Terrain.
showMaptype es 0 para que no haya controles de Maptype y 1 muestra dichos controles (por omision 1)
Overview es 0 para que no se abra una ventana de sobrevista en la esquina inferior derecha y 1 muestra la sobrevista y 2 para la sobrevista habilitada pero cerrada en un principio (por omision 0)
text es para el marcador, mostrandolo en el mapa como un balón. Si usted no quiere ver el texto, solo ajuste text=" y no lo desplegará, el text es el dato desplegado arribar del pin de la localización. Usualmente podría ser desplegado para mostrar una dirección o enlace. Para un enlace, es posible usar el formato: <a href=linkAddress target=linkTarget title=linkTitle>linkName</a>. No use (double) parentesis!
marker es para abrir la ventana de informacion (1 por omision) o cerrarla (0) inicialmente.
dir para adicionar direcciones de forma que se pueda calcular una ruta como en maps.google.com.
tooltip es para que el marcador tenga un tooltip cuando el raton este sobre la marca (no use HTML)
icon es el url a un icono para el marcador asi que pueda ser diferente al que utiliza por omision Google
address es para buscar una direccion por sus coordenadas
gotoaddr es para un campo de busqueda y boton para que el usuario busque una direccion en el mapa (por omision 0)
kml es para un url a un kmlfile para cargar una capa sobre el mapas para multiples marcadores en una ruta
traffic es para mostrar el trafico en una mapa (Solo en USA actualmente)
align es para la ubicación del mapa respecto al contenido (left, right, center o none)
lightbox es para colocar un enlace/boton para una mostrar una caja de luz en el mapa (por omision 0)
show es para hacer que el mapa se despliegue o no (por omision 1) . Con lightbox sobre el mapa solo aparece el lightbox.
Puedes ajustar la llave en el mosmap tag (opcional) o Multiple urls y keys en los parametros del plugin en el administrador de Joomla. Puedes registrarte para un Google API Key Google API Console.
" 9 | -------------------------------------------------------------------------------- /media/site/moodalbox/js/modalbox1.2hackv3.js: -------------------------------------------------------------------------------- 1 | /******************************************************************/ 2 | /* MOOdalBox 1.2.1 */ 3 | /* A modal box (inline popup), used to display remote content */ 4 | /* loaded using AJAX, written for the mootools framework */ 5 | /* by Razvan Brates, razvan [at] e-magine.ro */ 6 | /******************************************************************/ 7 | /* http://www.e-magine.ro/moodalbox */ 8 | /******************************************************************/ 9 | /* */ 10 | /* MIT style license: */ 11 | /* http://en.wikipedia.org/wiki/MIT_License */ 12 | /* */ 13 | /* mootools found at: */ 14 | /* http://mootools.net/ */ 15 | /* */ 16 | /* Original code based on "Slimbox", by Christophe Beyls: */ 17 | /* http://www.digitalia.be/software/slimbox */ 18 | /* */ 19 | /* Changed by Mike Reumer to work with Google Maps, Iframe and */ 20 | /* Opera */ 21 | /* */ 22 | /******************************************************************/ 23 | 24 | eval(function(p,a,c,k,e,r){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('d 2E="3f.. 34 2Y a 3n 30 2X 3z.<1k /><1k />"+"3s 3q 3Z.<1k /><1k />"+"<2S>3W 32 3k 1d.2S>";d 2j=1n;d 2B=2G;d 2O=2G;d 2T=1v;d 2k=1n;d 2n=1v;d 2v=1n;d 2w=1i;d 2A=R;d 2F=R;d 1H={2H:u(b){6.b=3o.1w({22:2j,1h:2B,1X:2O,W:2T,N:2k,1L:2n,1M:2v,2z:2w,3u:2A,3v:2F},b||{});6.1Q=7;6.1S=7;6.1W=7;6.1u=R;6.1Y=7;6.2I=[];$A($$(\'a\')).2K(u(O){c(O.16&&O.E&&O.16.3w(\'^3E\',\'i\')){O.V=6.28.2d(O,6);6.2I.33(O)}},6);6.2e=6.2g.3r(6);6.1O=6.1P.1g(6);6.T=L I(\'q\').Y(\'t\',\'3c\').F(J.1r);6.l=L I(\'q\').Y(\'t\',\'3t\').K({z:6.b.1h+\'o\',h:6.b.1X+\'o\',1f:\'-\'+(6.b.1h/2)+\'o\',y:\'18\'}).F(J.1r);6.j=L I(\'q\').Y(\'t\',\'2Z\').F(6.l);6.n=L I(\'q\').Y(\'t\',\'31\').19(\'y\',\'18\').F(J.1r);6.2a=L I(\'a\').35({t:\'36\',E:\'#\'}).F(6.n);6.2b=L I(\'q\').Y(\'t\',\'3g\').F(6.n);L I(\'q\').19(\'3j\',\'3m\').F(6.n);6.2c=L I(\'q\').Y(\'t\',\'3p\').1K(2E);6.2a.V=6.T.V=6.1d.1g(6);d M=6.M.1g(6);6.v={T:6.T.2h(\'U\',{1m:1v}).2l(),B:6.l.2s({1m:6.b.22,20:M}),j:6.j.2h(\'U\',{1m:1v,20:M}),n:6.n.2s({1m:1n,20:M})};6.3H=3K.3N},28:u(1l){Z 6.1c(1l.E,1l.1Z,1l.16)},1c:u(1E,2C,2D,p,b){6.E=1E;6.1Z=2C;6.16=2D;6.1P();6.1G(1i);d h=1p[\'37\']||J.38[\'X\']||J.1r[\'X\'];6.1b=1A.2x()+(h/15);6.l.K({1b:6.1b+\'o\',y:\'\'});6.v.T.S(0.8);6.p=p;6.r={2Q:7,s:7,P:7,2W:7,21:7,1R:7,23:7,24:7,3y:7,25:7,3B:7,26:7,3F:7,27:7,3G:7};6.r=$1w(6.r,b);6.C={s:7,P:7,2W:7,21:7,1R:7,23:7,24:7,25:7,26:7,27:7};Z 6.29(1E)},1P:u(){6.T.K({1b:1A.2x()+\'o\',h:1A.3M()+\'o\'})},1G:u(1c){d 1V=$A($$(\'3O\'));1V.1w($$(1p.3S?\'3T\':\'3V\'));1V.2K(u(O){O.k.3X=1c?\'3Y\':\'\'});d 1s=1c?\'40\':\'41\';1p[1s](\'42\',6.1O)[1s](\'B\',6.1O);J[1s](\'45\',6.2e);6.G=0},29:u(){c(6.G)Z R;6.G=1;1x=/2f:/;c(6.E.1e(1x)){6.l.1D=\'2i\';d e=6.16.1e(/[0-9]+/g);6.b.W=(e&&(e[0]>0))?e[0]:6.b.1L;6.b.N=(e&&(e[1]>0))?e[1]:6.b.1M;6.n.K({U:\'0\',h:\'1F\',y:\'18\'});6.v.j.2l();6.j.2m="<39 3a=\'"+6.E+"\' z=\'"+(6.b.W-1)+"o\' h=\'"+(6.b.N-1)+"o\' 3b=\'0\'/>";6.M()}12{c(1p.3d.3e<"1.2"){d m=J.2o(6.E);$1w(m,I.3h)}12 d m=J.t(6.E);6.1Y=m.3i;m.F(6.j);6.1Q=m.k.y;m.k.y=\'\';6.1S=m.k.z;6.1W=m.k.h;c(6.p){6.C.s=6.p.2p();6.C.P=6.p.2q();6.C.1R=6.p.3l()}d e=6.16.1e(/[0-9]+%?/g);e[0]=2r(e[0]);14=e[0].2t;c(e[0].2u(14,14-1)=="%")e[0]=m.1o;e[1]=2r(e[1]);14=e[1].2t;c(e[1].2u(14,14-1)=="%")e[1]=m.1J;6.b.W=(e&&(e[0]>0))?e[0]:6.b.1L;6.b.N=(e&&(e[1]>0))?e[1]:6.b.1M;6.j.k.z=6.b.W+\'o\';6.j.k.h=6.b.N+\'o\';m.k.z=6.b.W+\'o\';m.k.h=6.b.N+\'o\';d 13=m.2y("13");d 1q=0;c(13.1a>0){d B=1i;1N(x=0;x<13.1a;x++){c(13[x].t.1t(0,11)==\'3x\')1q=13[x].X-2}}d q=m.2y("q");6.D=7;6.H=7;c(q.1a>1){d B=1i;1N(x=0;x]*>\s*)?(\{|\[)".$this->plugincode.".*?(([a-z0-9A-Z]+((\{|\[)[0-9]+(\}|\]))?='[^']+'.*?\|?.*?)*)(\}|\])(\s*<\/p>)?/msi"; 67 | $this->countmatch = 3; 68 | } elseif ($this->brackets=="[") { 69 | $this->regex="/(
]*>\s*)?\[".$this->plugincode.".*?(([a-z0-9A-Z]+(\{[0-9]+\})?='[^']+'.*?\|?.*?)*)\](\s*<\/p>)?/msi"; 70 | $this->countmatch = 2; 71 | } else { 72 | $this->regex="/(
]*>\s*)?\{".$this->plugincode.".*?(([a-z0-9A-Z]+(\[[0-9]+\])?='[^']+'.*?\|?.*?)*)\}(\s*<\/p>)?/msi"; 73 | $this->countmatch = 2; 74 | } 75 | // The helper class 76 | $this->helper = null; 77 | 78 | // Clean up variables 79 | unset($plugin, $option, $view, $task, $layout); 80 | } 81 | 82 | /** 83 | * Do something onAfterInitialise 84 | */ 85 | public function onAfterInitialise() 86 | { 87 | $this->event = 'onAfterInitialise'; 88 | } 89 | 90 | /** 91 | * onPrepareContent 92 | */ 93 | public function onContentPrepare($context, &$article, &$params, $limitstart=0) 94 | { 95 | $this->event = 'onContentPrepare'; 96 | 97 | $app = JFactory::getApplication(); 98 | if($app->isAdmin()) { 99 | return; 100 | } 101 | 102 | // get document types 103 | $this->_getdoc(); 104 | 105 | // Check if fields exists. If article and text does not exists then stop 106 | if (isset($article)&&isset($article->text)) 107 | $text = &$article->text; 108 | else 109 | return true; 110 | 111 | if (isset($article)&&isset($article->introtext)) 112 | $introtext = &$article->introtext; 113 | else 114 | $introtext = ""; 115 | 116 | // check whether plugin has been unpublished 117 | // PDF or feed can't show maps so remove it 118 | if ( !$this->publ ||($this->doctype=='pdf'||$this->doctype=='feed') ) { 119 | $text = preg_replace( $this->regex, '', $text ); 120 | $introtext = preg_replace( $this->regex, '', $introtext ); 121 | unset($app, $text, $introtext); 122 | return true; 123 | } 124 | 125 | // perform the replacement in a normal way, but this has the disadvantage that other plugins 126 | // can't add information to the mosmap, other later added content is not checked and modules can't be checked 127 | // $this->_replace( $text ); 128 | // $this->_replace( $introtext ); 129 | 130 | // Clean up variables 131 | unset($app, $text, $introtext); 132 | } 133 | 134 | /** 135 | * Do something onAfterRoute 136 | */ 137 | public function onAfterRoute() 138 | { 139 | $this->event = 'onAfterRoute'; 140 | } 141 | 142 | /** 143 | * Do something onAfterDispatch 144 | */ 145 | public function onAfterDispatch() 146 | { 147 | $this->event = 'onAfterDispatch'; 148 | 149 | $app = JFactory::getApplication(); 150 | if($app->isAdmin()) { 151 | return; 152 | } 153 | 154 | // get document types 155 | $this->_getdoc(); 156 | 157 | // FEED 158 | if ($this->doctype=='feed'&&isset($this->document->items)) { 159 | foreach($this->document->items as $item) { 160 | $text = &$item->description; 161 | $text = preg_replace( $this->regex, '', $text ); 162 | } 163 | // Clean up variables 164 | unset($app, $item, $text); 165 | return true; 166 | } 167 | 168 | // PDF can't show maps so remove it 169 | if ($this->doctype=='pdf') { 170 | $text = $this->document->getBuffer("component"); 171 | $text = preg_replace( $this->regex, '', $text ); 172 | $this->document->setBuffer($text, "component"); 173 | // Clean up variables 174 | unset($app, $item, $text); 175 | return true; 176 | } 177 | 178 | // In other components or leftovers 179 | $text = $this->document->getBuffer("component"); 180 | if (strlen($text)>0) { 181 | 182 | // check whether plugin has been unpublished 183 | if ( !$this->publ ) 184 | $text = preg_replace( $this->regex, '', $text ); 185 | else 186 | $this->_replace($text); 187 | $this->document->setBuffer($text, "component"); 188 | } 189 | 190 | // Clean up variables 191 | unset($app, $item, $text); 192 | } 193 | 194 | /** 195 | * Do something onAfterRender 196 | */ 197 | public function onAfterRender() 198 | { 199 | $this->event = 'onAfterRender'; 200 | 201 | $app = JFactory::getApplication(); 202 | if($app->isAdmin()) { 203 | return; 204 | } 205 | 206 | // get document types 207 | $this->_getdoc(); 208 | 209 | // Get the rendered body text 210 | $text = JResponse::getBody(); 211 | 212 | // check whether plugin has been unpublished 213 | if ( !$this->publ ) { 214 | $text = preg_replace( $this->regex, '', $text ); 215 | // Set the body text with the replaced result 216 | JResponse::setBody($text); 217 | // Clean up variables 218 | unset($app, $text); 219 | return true; 220 | } 221 | 222 | // PDF or feed can't show maps so remove it 223 | if ($this->doctype=='pdf'||$this->doctype=='feed') { 224 | $text = preg_replace( $this->regex, '', $text ); 225 | // Set the body text with the replaced result 226 | JResponse::setBody($text); 227 | // Clean up variables 228 | unset($app, $text); 229 | return true; 230 | } 231 | 232 | // perform the replacement 233 | $this->_replace( $text ); 234 | 235 | // Set the body text with the replaced result 236 | JResponse::setBody($text); 237 | 238 | // Add google script when all possible mosmap commands are found and processed 239 | if ($this->helper!=null) { 240 | $this->helper->add_google_script(); 241 | } 242 | 243 | // Clean up variables 244 | unset($app, $text); 245 | } 246 | 247 | function _getdoc() { 248 | if ($this->document==NULL) { 249 | $this->document = JFactory::getDocument(); 250 | $this->doctype = $this->document->getType(); 251 | } 252 | } 253 | 254 | function _replace(&$text) { 255 | $matches = array(); 256 | $text=preg_replace("/{0,2}39;/",'\'',$text); 257 | preg_match_all($this->regex,$text,$matches,PREG_OFFSET_CAPTURE | PREG_PATTERN_ORDER); 258 | // print_r($matches); 259 | // Remove plugincode that are in head of the page 260 | $matches = $this->_checkhead($text, $matches); 261 | // Remove plugincode that are in the editor and textarea 262 | $matches = $this->_checkeditorarea($text, $matches); 263 | $cnt = count($matches[0]); 264 | // print_r($matches); 265 | if ($cnt>0) { 266 | if ($this->helper==null) { 267 | $filename = JPATH_SITE."/plugins/system/plugin_googlemap3/plugin_googlemap3_helper.php"; 268 | 269 | include_once($filename); 270 | $this->helper = new plgSystemPlugin_googlemap3_helper($this->jversion, $this->params, $this->regex, $this->document, $this->brackets); 271 | } 272 | // Process the found {mosmap} codes 273 | for($counter = 0; $counter < $cnt; $counter++) { 274 | // Very strange the first match is the plugin code?? 275 | $this->helper->process($matches[0][$counter][0],$matches[0][$counter][1], $matches[$this->countmatch][$counter][0], $text, $counter, $this->event); 276 | } 277 | } 278 | 279 | // Clean up variables 280 | unset($matches, $cnt, $counter, $content, $filename); 281 | } 282 | 283 | function _checkhead($text, $plgmatches) { 284 | $result = array(array(),array(),array(),array()); 285 | $cnt = count($plgmatches[0]); 286 | // Get head location 287 | $end = stripos($text, ''); 288 | // check if match plugin is the head 289 | for($counter = 0; $counter < $cnt; $counter++) { 290 | if (!($plgmatches[0][$counter][1] > 0 &&$plgmatches[0][$counter][1]< $end)) { 291 | $result[0][] = $plgmatches[0][$counter]; 292 | $result[1][] = $plgmatches[1][$counter]; 293 | $result[2][] = $plgmatches[2][$counter]; 294 | $result[3][] = $plgmatches[3][$counter]; 295 | } 296 | } 297 | 298 | return $result; 299 | } 300 | 301 | function _checkeditorarea($text, $plgmatches) { 302 | $edmatches = array_merge($this->_getEditorPositions($text), $this->_getTextAreaPositions($text)); 303 | $result = array(array(),array(),array(),array()); 304 | if (count($edmatches)>0) { 305 | $cnt = count($plgmatches[0]); 306 | // check if match plugin is in match editor 307 | for($counter = 0; $counter < $cnt; $counter++) { 308 | $oke = true; 309 | foreach ($edmatches as $ed) { 310 | if ($plgmatches[0][$counter][1] > $ed['start']&&$plgmatches[0][$counter][1]< $ed['end']) 311 | $oke= false; 312 | } 313 | if ($oke) { 314 | $result[0][] = $plgmatches[0][$counter]; 315 | $result[1][] = $plgmatches[1][$counter]; 316 | $result[2][] = $plgmatches[2][$counter]; 317 | $result[3][] = $plgmatches[3][$counter]; 318 | } 319 | } 320 | } else 321 | $result = $plgmatches; 322 | 323 | // Clean up variables 324 | unset($edmatches, $cnt, $counter, $ed); 325 | 326 | return $result; 327 | } 328 | 329 | function _getEditorPositions($strBody) { 330 | preg_match_all("/