Zh OpenStreetMap Article Overview Map: Difference between revisions

From Documentation
Jump to navigation Jump to search
 
(5 intermediate revisions by the same user not shown)
Line 43: Line 43:
Enter values for latitude and longitude.
Enter values for latitude and longitude.


[[Zh_OpenStreetMap_Module_Article_Overview_Map|Article Overview Map Module]]
== Display Map ==
 
You have ability to show map by 2 ways
 
* you show it by module - in this case all articles will be collected and shown on one map with ability to go to details (an article)
* you show it by plugin - in this case you can show map in any place of an article
 
Here details for it
 
{{Icon_see_also}}[[Zh_OpenStreetMap_Plugin_Article_Overview_Map|Article Overview Map Plugin]]
 
{{Icon_see_also}}[[Zh_OpenStreetMap_Module_Article_Overview_Map|Article Overview Map Module]]


== Custom icon for article ==
== Custom icon for article ==
Line 60: Line 71:


[[File:OSM Article Overview Module-Article-2.png]]
[[File:OSM Article Overview Module-Article-2.png]]
Add icon definition to module
[[File:OSM Article Overview Module-Module Settings-4.png]]
In addition to this lets change some parameters (do not show GPS data and article link)
And now result is
[[File:OSM Article Overview Module-Map-2.png]]
Popup content
[[File:OSM Article Overview Module-Map-Popup-2.png]]

Latest revision as of 16:22, 31 August 2020

Preface

By using article overview map you can create map which contains placemarks for your articles, and allow to go to article details from your map. Or you can just simple display map in an article by its attributes

Article Fields

In joomla you can create your own fields and enter it values when you create or edit map.

First of all we need create Field Group. All fields for extension we will associate with this group.

To create Field Group in administration panel go to Content->Field Groups.

Create new group

Save it. Now we have our group with name Plcemarks


Lets create fields.

Create first field Lat for latitude

The same way create field for longitude.

We don't set it required because not all articles can have this attributes.

The result list is

Article attributes

Go to article details. You can see new tab with name Placemarks

Enter values for latitude and longitude.

Display Map

You have ability to show map by 2 ways

  • you show it by module - in this case all articles will be collected and shown on one map with ability to go to details (an article)
  • you show it by plugin - in this case you can show map in any place of an article

Here details for it

Article Overview Map Plugin

Article Overview Map Module

Custom icon for article

Lets add new attribute to article which will hold icon name.

Create new field in our field group

Now we have new list of our fields

Add to article value for icon