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
Please set layout parameters in Layout: ... TAB. CSS/HTML developers please read: ** Custom templates HOW-TO **
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Layoutlayout | Choose a layout to render your module | fclayout | — | news |
Hide map when emptyhide_map_when_empty | — | radio | 0 = No1 = Yes | 1 (Yes) |
Map API
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Choose your APImapapi | Choose your API, if you have a Googlemap Key you can use this api, or choose Openstreetmap for a map without limitation | radio | googlemap = Googlemapopenstreetmap = Openstreetmap | googlemap (Googlemap) |
Category selectioncatidmode | Use current category or select an specific category in dropdown | radio | 0 = Specific categories1 = Current category2 = Current item | 0 (Specific categories) |
Methodmethod_category | Excluded: Display any item(s) except the currently(s) selected categorie(s), Include: Display any item(s) in selected categories | radio | 0 = Include1 = Exclude | 0 (Include) |
Categorycatid | Module that displays items as points on a map (Google map), using the coordinates from an address-international FLEXIcontent field | flexicategories | — | — |
Extra categoriestreeinclude | Include parent/children of selected categories. NOTE: 'other categories of item' is used only in frontend pages that display an item | list | 0 = None1 = Children categories5 = Children categories, but exclude selected categories2 = Ancestor categories3 = Ancestor & Children Categories | 1 (Children categories) |
Address fieldfieldaddressid | Tip id of your address field | fields | — | — |
Tile (Map) Server URLos_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}.png | text | — | https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png |
API keyapikey | Tip your API google map key if you need more than 25000 display by month | text | — | — |
Map display
Map bounding container
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Widthwidth | Tip width of map with px | text | — | 300px |
MOD_FLEXIGOOGLEMAP_heightheight | tip height of map with px | text | — | 60vh |
Map basic configuration
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Map typemaptype | Choose map type | list | ROADMAP = Road mapHYBRID = HybrideSATELLITE = SatelliteTERRAIN = Terrain | ROADMAP (Road map) |
Zoom limitmaxzoommarker | 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 area | number | — | 50 |
Max # markerscount | 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 pointsDESC LIMIT 10 = 10DESC LIMIT 50 = 50DESC LIMIT 100 = 100DESC LIMIT 150 = 150DESC LIMIT 200 = 200DESC LIMIT 250 = 250DESC LIMIT 300 = 300DESC LIMIT 350 = 350DESC LIMIT 400 = 400DESC LIMIT 450 = 450DESC LIMIT 500 = 500DESC LIMIT 1000 = 1000 | — |
Geo Location options
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Zoom map to visitorgeo_locate | On load map will be zoom to visitor's location | radio | 0 = No1 = Yes | 0 (No) |
Near Me buttongeo_locate_btn | Add button to re-center map to visitor's location | radio | 0 = No1 = Yes | 0 (No) |
Near Me zoom selectiongeo_locate_zoom_sel | Add selector to select map zoom level to visitor's location | radio | 0 = No1 = Yes | 0 (No) |
Near Me zoom defaultgeo_locate_zoom_def | Default zoom level for near-me locations | number | — | 10 |
Marker display
Per location custom marker (via item form), and a fallback (a default) icon that will be used for locations without a custom icon
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Per locationuse_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 icon | radio | 0 = No1 = Yes | 1 (Yes) |
Fallback
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Default Markermarkermode | Select specific image, or you can select letter mode to create a marker with a Letter inside | radio | -1 = API 's default icon0 = Specific image1 = Letter mode | -1 (API 's default icon) |
Specific imagemarkerimage | Choose or upload your marker image | fcmedia | — | — |
Color markermarkercolor | Choose your color marker | list | red = Redgreen = Green | redpt |
Letter markerlettermarker | Type your letter marker | text | — | A |
Behaviour and style
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Scroll wheel zoomusescrollmouse | Enable disable Scroll wheel zoom | radio | false = Notrue = Yes | true (Yes) |
Animationanimationmarker | If you choose yes all marker will be display with bounce effect at first. This is doesn't work for grouped icons | radio | 0 = No1 = Yes | 1 (Yes) |
Map style Gen stylemapstyle | Copie Past json code done by snazzy mpas. BECARFULL USE [] AT START AND END OF VALUE [Your style code] | textarea | — | — |
Marker grouping
Group markers as a total number, to prevent many markers showing very close together
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Group markersclustermode | This groups together markers in same zone (area). The total number of markers will be shown when map is zoomed out | radio | 0 = No1 = Yes | 1 (Yes) |
Marker imageimgcluster | Define a icon image for cluster (only for Googlemap api) | fcmedia | — | — |
Grid sizegridsize | Size of grid for grouped marker together. A big size create 1 big marker | text | — | 50 |
Group at zoom levelmaxzoom | The zoom level at which cluster effect is activated, if user zooms in more than this limit, the cluster effect will be deactivated | text | — | 17 |
Marker actions
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Click actioninfo_popup | Action to do when clicking on the marker | multilist | 0 = None1 = Info window2 = Item link | 1 (Info window) |
Target windowmarker_clicktarget | Open link in | multilist | — = - 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) |
Modal / Popup Options
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Item layoutilayout | Set a specific layout for this item | itemlayout | — | — |
Widthmodal_width | Tip width of map with px | number | — | — |
Heightmodal_height | Set Height of modal /popup . Leave empty for fullscreen size | number | — | — |
Info windows
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Custom displayinfo_windows_custom_display | This is by default same as the popup windows | radio | 0 = Same display as markers list | 0 (Same display as markers list) |
Markers list
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Display Markers Listuse_dynamic_marker_list | Show and dynamically update a list of markers, that currently visible according to current viewport of the map. | radio | 0 = No1 = Yes | 0 (No) |
Sync markers List to visible markersmarker_list_update_to_map_bounds | Sync markers List to display only markers visible in the map bounds | radio | 0 = No1 = Yes | 1 (Yes) |
Marker list wrapping
Limit at which marker list will be wrapped
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Marker list container wrap limit (pixels)marker_list_wrap_limit | At this width the marker list will wrap to the bottom of the map | text | — | 1200 |
Height when wrapped (Map)map_height_wrapped | tip height of map with px | text | — | 45vh |
Height when wrapped (Marker-list)marker_list_height_wrapped | tip height of map with px | text | — | 45vh |
Markers List options
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Marker info displayinfotextmode | Basic mode will display only item title and Custom mode can insert custom HTML with FLEXIcontent fields | radio | 0 = Basic (title and address)1 = Custom with HTML and fields | 0 (Basic (title and address)) |
Addressuseadress | If you choose yes, address will be display in info windows | radio | 0 = No1 = Yes | 1 (Yes) |
Custom HTML with fields replacementscustom_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}, etc | editor | — | {item->title} {__address__} |
Link to item (Read more button)
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Showuselink | This will link to the content item that contains the marker's address | radio | 0 = No1 = Yes | 1 (Yes) |
Target linklinkmode | choose if link open a new windows or loading item in same view | radio | _blank = New window— = Same window | — |
Force itemidforced_itemid | You can use an specific itemid to manage display item after link. | text | — | — |
Text for read morereadmore | Insert your text for reamore link. You can use MOD_FLEXIGOOGLEMAP_READMORE_TXT by defaut for multilangue link Readmore | text | — | — |
Directions button (Open marker Location in new window)
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Showusedirection | This will display a link to open a new window with directions for current marker location | radio | 0 = No1 = Yes | 1 (Yes) |
Name of linkdirectionname | You can change name of direction link or use MOD_FLEXIGOOGLEMAP_DIRECTIONNAME_TXT for translation string Directions | text | — | — |
Hide/Show Module
These rules specify when module contents will be created (thus shown) or not created (thus hidden).
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Combine Rulescombine_show_rules | Either require any or both VIEWS rules and PHP expression rule, in order to show the module | radio | OR = ORAND = And | AND (And) |
Clients
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
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Show in clientsshow_in_clients | Select to show in desktops, tablets, mobiles | fccheckbox | — | — |
Views (category, item, etc) Rules
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Show in viewsshow_in_views | Select view in which module will be shown | fccheckbox | — | — |
PHP Expresion Rule
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Enable Ruleenable_php_rule | You can disable rule without removing the rule 's entered text | multilist | 0 = No1 = Yes | 0 (No) |
PHP rule codephp_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 module | textarea | — | — |
Layout: Options of selected Layout
Layout Options specific to the chosen template layout
Advanced
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Modules field caching labelcache | Modules field caching desc | list | 1 = Use global0 = Modules field value nocaching | 1 (Use global) |