Skip to main content

Google map

FLEXIcontent provides six frontend modules for displaying items, categories, search forms, filters, maps and tag clouds. Configure a module from Extensions → Modules.

Module to display a googlemap with item like marker, position is done by flexicontent address field Thanks for helping : Georgios Papadakis and Marc Studer

:::info Source This page is generated from modules/mod_flexigooglemap/mod_flexigooglemap.xml and the official FLEXIcontent 5.x language files. :::

Basic​

Template Layout​

note

Please set layout parameters in Layout: ... TAB. CSS/HTML developers please read: ** Custom templates HOW-TO **

OptionDescriptionTypeValuesDefault
Layout
layout
Choose a layout to render your modulefclayout—news
Hide map when empty
hide_map_when_empty
—radio0 = No
1 = Yes
1 (Yes)

Map API​

OptionDescriptionTypeValuesDefault
Choose your API
mapapi
Choose your API, if you have a Googlemap Key you can use this api, or choose Openstreetmap for a map without limitationradiogooglemap = Googlemap
openstreetmap = Openstreetmap
googlemap (Googlemap)
Category selection
catidmode
Use current category or select an specific category in dropdownradio0 = Specific categories
1 = Current category
2 = Current item
0 (Specific categories)
Method
method_category
Excluded: Display any item(s) except the currently(s) selected categorie(s), Include: Display any item(s) in selected categoriesradio0 = Include
1 = Exclude
0 (Include)
Category
catid
Module that displays items as points on a map (Google map), using the coordinates from an address-international FLEXIcontent fieldflexicategories——
Extra categories
treeinclude
Include parent/children of selected categories. NOTE: 'other categories of item' is used only in frontend pages that display an itemlist0 = None
1 = Children categories
5 = Children categories, but exclude selected categories
2 = Ancestor categories
3 = Ancestor & Children Categories
1 (Children categories)
Address field
fieldaddressid
Tip id of your address fieldfields——
Tile (Map) Server URL
os_tile_server_url
Enter a custom tile server URL (of Openstreet Maps). If you are going to be having a lot of traffic it is best to setup your own tiles server for hosting your map tiles, e.g. https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.pngtext—https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png
API key
apikey
Tip your API google map key if you need more than 25000 display by monthtext——

Map display​

Map bounding container​

OptionDescriptionTypeValuesDefault
Width
width
Tip width of map with pxtext—300px
MOD_FLEXIGOOGLEMAP_height
height
tip height of map with pxtext—60vh

Map basic configuration​

OptionDescriptionTypeValuesDefault
Map type
maptype
Choose map typelistROADMAP = Road map
HYBRID = Hybride
SATELLITE = Satellite
TERRAIN = Terrain
ROADMAP (Road map)
Zoom limit
maxzoommarker
Set zooming limit, when map displaying non-grouped markers (single markers)number—18
Initial map padding (%)
mappadding
Set initial map's padding distance. This is distance of markers or clusters to the map edge. Value is a percent of map areanumber—50
Max # markers
count
Select a number to limit marker and speed up map display. For now google api can't load more 250 markers (in relation with your title and url size)list— = Display all points
DESC LIMIT 10 = 10
DESC LIMIT 50 = 50
DESC LIMIT 100 = 100
DESC LIMIT 150 = 150
DESC LIMIT 200 = 200
DESC LIMIT 250 = 250
DESC LIMIT 300 = 300
DESC LIMIT 350 = 350
DESC LIMIT 400 = 400
DESC LIMIT 450 = 450
DESC LIMIT 500 = 500
DESC LIMIT 1000 = 1000
—

Geo Location options​

OptionDescriptionTypeValuesDefault
Zoom map to visitor
geo_locate
On load map will be zoom to visitor's locationradio0 = No
1 = Yes
0 (No)
Near Me button
geo_locate_btn
Add button to re-center map to visitor's locationradio0 = No
1 = Yes
0 (No)
Near Me zoom selection
geo_locate_zoom_sel
Add selector to select map zoom level to visitor's locationradio0 = No
1 = Yes
0 (No)
Near Me zoom default
geo_locate_zoom_def
Default zoom level for near-me locationsnumber—10

Marker display​

note

Per location custom marker (via item form), and a fallback (a default) icon that will be used for locations without a custom icon

OptionDescriptionTypeValuesDefault
Per location
use_custom_marker
Use custom icon per map location, if this was specified in item form. The default icon will be used for locations without a custom iconradio0 = No
1 = Yes
1 (Yes)

Fallback​

OptionDescriptionTypeValuesDefault
Default Marker
markermode
Select specific image, or you can select letter mode to create a marker with a Letter insideradio-1 = API 's default icon
0 = Specific image
1 = Letter mode
-1 (API 's default icon)
Specific image
markerimage
Choose or upload your marker imagefcmedia——
Color marker
markercolor
Choose your color markerlistred = Red
green = Green
redpt
Letter marker
lettermarker
Type your letter markertext—A

Behaviour and style​

OptionDescriptionTypeValuesDefault
Scroll wheel zoom
usescrollmouse
Enable disable Scroll wheel zoomradiofalse = No
true = Yes
true (Yes)
Animation
animationmarker
If you choose yes all marker will be display with bounce effect at first. This is doesn't work for grouped iconsradio0 = No
1 = Yes
1 (Yes)
Map style Gen style
mapstyle
Copie Past json code done by snazzy mpas. BECARFULL USE [] AT START AND END OF VALUE [Your style code]textarea——

Marker grouping​

note

Group markers as a total number, to prevent many markers showing very close together

OptionDescriptionTypeValuesDefault
Group markers
clustermode
This groups together markers in same zone (area). The total number of markers will be shown when map is zoomed outradio0 = No
1 = Yes
1 (Yes)
Marker image
imgcluster
Define a icon image for cluster (only for Googlemap api)fcmedia——
Grid size
gridsize
Size of grid for grouped marker together. A big size create 1 big markertext—50
Group at zoom level
maxzoom
The zoom level at which cluster effect is activated, if user zooms in more than this limit, the cluster effect will be deactivatedtext—17

Marker actions​

OptionDescriptionTypeValuesDefault
Click action
info_popup
Action to do when clicking on the markermultilist0 = None
1 = Info window
2 = Item link
1 (Info window)
Target window
marker_clicktarget
Open link inmultilist— = - No target -
_blank = New Window/Tab
_parent = Parent Frame
_self = Same Frame/Window/Tab
_top = Top of window
_popup = Modal popup window
_modal = Html Popup (without js)
_popup (Modal popup window)
OptionDescriptionTypeValuesDefault
Item layout
ilayout
Set a specific layout for this itemitemlayout——
Width
modal_width
Tip width of map with pxnumber——
Height
modal_height
Set Height of modal /popup . Leave empty for fullscreen sizenumber——

Info windows​

OptionDescriptionTypeValuesDefault
Custom display
info_windows_custom_display
This is by default same as the popup windowsradio0 = Same display as markers list0 (Same display as markers list)

Markers list​

OptionDescriptionTypeValuesDefault
Display Markers List
use_dynamic_marker_list
Show and dynamically update a list of markers, that currently visible according to current viewport of the map.radio0 = No
1 = Yes
0 (No)
Sync markers List to visible markers
marker_list_update_to_map_bounds
Sync markers List to display only markers visible in the map boundsradio0 = No
1 = Yes
1 (Yes)

Marker list wrapping​

note

Limit at which marker list will be wrapped

OptionDescriptionTypeValuesDefault
Marker list container wrap limit (pixels)
marker_list_wrap_limit
At this width the marker list will wrap to the bottom of the maptext—1200
Height when wrapped (Map)
map_height_wrapped
tip height of map with pxtext—45vh
Height when wrapped (Marker-list)
marker_list_height_wrapped
tip height of map with pxtext—45vh

Markers List options​

OptionDescriptionTypeValuesDefault
Marker info display
infotextmode
Basic mode will display only item title and Custom mode can insert custom HTML with FLEXIcontent fieldsradio0 = Basic (title and address)
1 = Custom with HTML and fields
0 (Basic (title and address))
Address
useadress
If you choose yes, address will be display in info windowsradio0 = No
1 = Yes
1 (Yes)
Custom HTML with fields replacements
custom_html_with_replacements
Enter the HTML to use for each item, **NOTE: address-field within a field-group works. Add fields of address-field field-group and these will be rendered together with every value of the address-field NOTE: you can use: {address} to replace with value of current address field {{fieldname}} or {{fieldname##displayvar}} -- is replaced with HTML display of each field {{fieldname##label}} -- is replaced with label of each field %%language_string%% -- is replaced with the language string Finally, you can use item related replacements: item_url, item_title_escaped, item_tooltip and item properties like: {item->id}, {item->title}, etceditor—{item->title} {__address__}
OptionDescriptionTypeValuesDefault
Show
uselink
This will link to the content item that contains the marker's addressradio0 = No
1 = Yes
1 (Yes)
Target link
linkmode
choose if link open a new windows or loading item in same viewradio_blank = New window
— = Same window
—
Force itemid
forced_itemid
You can use an specific itemid to manage display item after link.text——
Text for read more
readmore
Insert your text for reamore link. You can use MOD_FLEXIGOOGLEMAP_READMORE_TXT by defaut for multilangue link Readmoretext——

Directions button (Open marker Location in new window)​

OptionDescriptionTypeValuesDefault
Show
usedirection
This will display a link to open a new window with directions for current marker locationradio0 = No
1 = Yes
1 (Yes)
Name of link
directionname
You can change name of direction link or use MOD_FLEXIGOOGLEMAP_DIRECTIONNAME_TXT for translation string Directionstext——

Hide/Show Module​

These rules specify when module contents will be created (thus shown) or not created (thus hidden).

OptionDescriptionTypeValuesDefault
Combine Rules
combine_show_rules
Either require any or both VIEWS rules and PHP expression rule, in order to show the moduleradioOR = OR
AND = And
AND (And)

Clients​

note

Please note that if Joomla Caching is enabled inside Joomla Global Configuration then - either enable 'Platform specific caching' (note that 'tablet' is detected as 'mobile') - or disable caching inside 'Advanced setting' TAB of this module if none of the above is done then this setting will be ignored

OptionDescriptionTypeValuesDefault
Show in clients
show_in_clients
Select to show in desktops, tablets, mobilesfccheckbox——

Views (category, item, etc) Rules​

OptionDescriptionTypeValuesDefault
Show in views
show_in_views
Select view in which module will be shownfccheckbox——

PHP Expresion Rule​

OptionDescriptionTypeValuesDefault
Enable Rule
enable_php_rule
You can disable rule without removing the rule 's entered textmultilist0 = No
1 = Yes
0 (No)
PHP rule code
php_rule
The given PHP code is execute and last statement must return a boolean value (via 'return' statement) which will used to decide to show or not the moduletextarea——

Layout: Options of selected Layout​

Layout Options specific to the chosen template layout

Advanced​

OptionDescriptionTypeValuesDefault
Modules field caching label
cache
Modules field caching desclist1 = Use global
0 = Modules field value nocaching
1 (Use global)