===== Map Block ===== A map [[brandportal-blocks|block]] shows its text and a map, either with the items found by a search or with a single location. It is only shown while a map provider is enabled in [[services|Services]]; otherwise the editor shows a note. {{:awp:brandportal-block-map.png?nolink|}} ==== Settings ==== ^ Setting ^ Description ^ |Show|//Records// (default) pins items, //Location// shows one pin at a fixed position.| |Aspect ratio|Shape of the map as width:height, for example ''4:3''. Default 16:9.| === Records === ^ Setting ^ Description ^ |Search query|Query selecting the items, see [[brandportal-blocks#blocks_with_records|Blocks with Records]]. Every item with a position is pinned.| |Position field|Geographic field of the main object type that places the items. Preselected is the //Geographic Field// of the [[mapsview|Maps View]], otherwise the first geographic field.| === Location === ^ Setting ^ Description ^ |Position (latitude, longitude)|Position of the pin in decimal degrees with a decimal point, separated by a comma or a space, for example ''55.6675, 12.5580''. A position that cannot be read is refused when saving. While the field is empty, the block is not shown.| |Zoom level|How close the map shows the location, from 1 to 18. Default 15.| ==== On the Page ==== * With //Records//, the map first shows all pinned items. Like the [[mapsview|Maps View]], it loads the pins of the part it shows when it is moved or zoomed. Pins close to each other are combined into one showing their number, which zooms in when clicked. * Clicking the pin of an item opens the [[brandportal-blocks#item_dialog|item dialog]]. * If no item found has a position, the whole block including its heading and text is hidden. * With //Location//, pointing at the pin shows the heading of the block in the language of the page.