Home GeoContent Manual
Welcome to the Frontpage
Magredi utlra trail PDF Print E-mail
Written by Omar   
Wednesday, 01 September 2010 10:57

Magredi utlra trail

 

  • View this layer in Google Earth Info points
  • View this layer in Google Earth Restaurants
  • View this layer in Google Earth Tracks (accent test èòà^)
  • View this layer in Google Earth Test

Last Updated on Wednesday, 01 September 2010 11:44
 
Prova PDF Print E-mail
Written by Omar   
Wednesday, 01 September 2010 11:46

Prova

Last Updated on Wednesday, 01 September 2010 11:56
 
Test Geocontent tag PDF Print E-mail
Written by Administrator   
Friday, 16 October 2009 14:38

Test a tag geocontent layer_filter_list="4

 

{geocontent layer_filter_list="4"}

 

Last Updated on Friday, 16 October 2009 14:45
 
Gran fondo di Celle Ligure PDF Print E-mail
Written by Administrator   
Saturday, 10 July 2010 07:37

A great MTB track near the sea.

 
GeoContent Maps PDF Print E-mail
Written by Administrator   
Wednesday, 20 August 2008 10:11

 

GeoContent Manual

In order to use Google Map services you will need an API key from Google.
The API key is different for every domain on the internet and you can obtain one for your website from http://code.google.com/apis/maps/signup.html

Installation

Mandatory steps

 

  1. install the component
  2. configure the component: set options unders "Components->GeoContent->Parameters" (do not forget the API key!) and save configuration
  3. create and configure at least one layer
  4. add at least one item to the layer

Optional steps

If you want to use "automatic item maps" or "tag driven maps" (see below) you must install and publish GeoContent content plugin too.

If you want to use "front-end map editing" (see below) you must install and publish GeoContent editors-xtd plugin too.

 

Map views

GeoContent supports three kind of maps:

Overview map

This map shows in a single map all of your layer and objects, it is like a "geographic index" of your contents.

To add an overview map to your website you must create a new menu item and choose GeoContent as menu type.

Automatic item map

This map shows a single item (article) inside the article's page, automatically zoomed and centered on the article's geographic shapes.

To activate this kind of map you must enable GeoContent content plugin and set "Automatic map" configuration option to "Yes".

Tag driven map

This map shows in a single map all of your layer and objects, it is like a "geographic index" of your contents, the main difference between "Overview map" is that you decide where the map will be shown, inserting

        
{geocontent param1="value1" param2="value2"}

tag into one of your pages and that you can set several configuration parameters.

To activate this kind of map you must enable GeoContent content plugin.

Parameters

For a list of global configuration parameters, see "Configuration" below, available parameters have "Yes" in the corresponding column.

Additionally, Tag driven maps support the following parameters:

  • contentid: article's id

 

Front-end map editing

Users can now edit/create map contents from the front-end.

Currently, it is not possible to create map contents for new articles. Users must first save the new article and then add geographic informations to it.

Front-end map editing has many configurable options (see below, under "Configuration")

Notes

about point icons

Google Maps (and GGeoXML in the Google Maps API) - always renders icons as 32x32 pixels - no exceptions, the KML cant change that.

This means that the icons size you set in layer configuration form has only effect when the layer is shown through Google Earth, the icon size on the browser's Google Map is always stretched to 32x32 pixels. To avoid stretching, you can place your resized icons on a 32x32 pixels transparent background.

GPX loading

GPX loading works fine, but if the file is big it can result in huge maps. This can cause speed problems when editing the map through the integrated editor. This problem comes directly from Google's map API implementation and we (the developers) can't do much to solve it.

Activate the front-end map editor

To show a button under the article's editor window, you can just publish GeoContent editors-xtd plugin

If you want to manually activate the editor window through a link, you must load modal API adding the following at the very top of your template:

        
<?php JHTML::_('behavior.modal'); ?>
        
        

then, create a link like this (href must be on a single line, carriage returns have been inserted for clarity):

<a rel="{handler: 'iframe', size: {x: 800, y: 400}}"
    href="/index.php?option=com_geocontent&view=editor&tmpl=component&id=XXX
    &contentid=YYY&layerid=ZZZ" 
    class="modal">
Click to activate map editor
</a >
        
  • change XXX with the GeoContent item ID, this parameter is optional
  • change XXX with the article's ID, this parameter is optional
  • change YYY with the layer's ID, this parameter is optional
  • optionally change popup x and y size values in rel attribute

 

Note that depending on component's parameters configuration, front end editing can be disabled or limited to certain user levels.

Parameters

For a list of global configuration parameters, see "Configuration" below, parameters that can be overridden in the editor link have "Yes" in the corresponding column.

Configuration

Component

General options
LabelNameNotesAvailable in tag mapsAvailable in front-end editor links
Google API key google_api_key Get one at http://code.google.com/apis/maps/signup.html No No
Map lat center gmap_latstart Latitude of the map center Yes Yes
Map lon center gmap_lngstart Longitude of the map center Yes Yes
Default map type gmap_type Default map type (G_SATELLITE_MAP, G_NORMAL_MAP, G_HYBRID_MAP, G_PHYSICAL_MAP) Yes Yes
Map zoom level gmap_zoomstart Map zoom level at start Yes Yes
Icon subdirectory point_icon_folder Icon's subdirectory (under directory "images", so "stories/geocontent" translates to "images/stories/geocontent") No No
Front-end map view options
LabelNameNotesAvailable in tag maps
Map width (%) map_width The width of the map wrapper DIV in percent Yes
Map height (px) map_height The height of the map wrapper DIV in pixels Yes
TOC style toc_style Style of the Table Of Contents (layers list):
  • none: TOC is hidden
  • list: TOC layer elements are drawn as list items
  • select: TOC is drawn as a drop-down select
Yes
TOC position toc_position TOC position in respect to the map window within the map wrapper DIV Yes
TOC width (%) toc_width The width of the TOC frame (in %) when it is positioned at the left or at the right of the map frame. This option has no effect when toc_style is top or bottom Yes
KML icon for layers toc_kml Show a link to the KML file for the layers, close to the layer control switch in the TOC Yes
Active layers at start start_with_layers Define which layer should be switched on at startup. Choose 'selected' and pick one from the list if you want to start with a particular layer Yes
Selected active layer active_layer Select here the layer that should be switched on at startup if you choose 'Select' as start_with_layers parameter value Yes
Open balloon links in the same window replace_target Open links in the same window. Replace 'target = _blank' in the map balloon links, so that they are opened in the same window Yes
Front-end map edit options
LabelNameNotesAvailable in tag maps
Front-end access front_end_enabled If the front-end users can edit/create maps. This option completely enable/disable front-end map editing No
Front-end minimum access level front_end_level Minimum user lever for front-end map handling No
Front-end check article's user access front_end_check_user Additionally check if the user can edit the article. Activate this option if you want to prevent users to add/edit maps on articles they have no editing permissions. This is an additional internal check, that make only sense if the map editing window is activated directly with a link, the normal plugin behaviour is to add a button under the article's editor window, this means that Joomla's standard permission check is never overridden. No
Front-end unbound items front_end_unbound Enable to allow front end user to add map items without linking to existing articles No
Front-end custom URLs allowed front_end_url Accepts arbitrary URLs for links in ballons when created from front end (can be a security risk!) No
Front-end users can only add items and not edit existing ones front_end_add_only If checked and front end editing is allowed, front end users will only be allowed to add new geocontent items and cannot edit existing ones No

Plugins

The plugin's behavior is mostly configured through the component's global options. You will find here below plugin's specific options only.

Content plugin options
LabelNameNotes
Automatic map automatic_map Activate this option to automatically draw a map in all article's pages when the article belongs to one or more layers.
Automatic zoom automatic_zoom Activate this option to automatically zoom to the article's geographic features the a.m. automatic map.
Automatic center automatic_center Activate this option to automatically center to the article's geographic features the a.m. automatic map.
Map position for automatic map display_position Position of the map in the article page in case Automatic map is Yes.
Editor-xtd plugin options
LabelNameNotes
Button text button_text The text for the editor's button

Support

Please report any issue on our Bug tracking system.

you will need to create an account and file your request under "GeoContent" project.

When reporting issues, please specify carefully

  1. Expected behavior
  2. Actual behavior
  3. PHP version
  4. GeoContent version
  5. Operating System type running on the webserver (Linux or Windows)
  6. Operating System type running on the client (Linux, Mac, Windows etc)
  7. Joomla version
  8. Browser brand and version (example: Internet Explorer 7, Mozilla Firefox 3.5)
  9. Copy/Paste the exact error message and URL
  10. Provide screenshots and attach them to the bug report
Last Updated on Saturday, 10 July 2010 08:22