ip_geoloc-2.0.0-alpha0/templates/ip-geoloc-map.html.twig

templates/ip-geoloc-map.html.twig
{#
/**
 * @file
 * ip-geoloc-map.tpl.php
 *
 * This template is used to output a map of marker locations taken from a view.
 *
 * Variables available:
 * - $view: the view object, if needed
 * - $locations: array of locations each with lat/long coordinates and balloon
 *   texts; the map will normally be auto-centered on the visitor's current
 *   location, however, if not requrested or not found the first location in
 *   the array will be used to center the map
 * - $div_id: id of the div in which the map will be injected, arbitrary but
 *   must be unique
 * - $map_options: passed to Google Maps API, for example
 *    '{"mapTypeId":"roadmap", "zoom": 10}'
 * - $map_style: CSS style string, like 'height: 200px; width: 500px'
 * - $marker_color: name in English of the color used for all location markers
 *   that do not have their color overridden via the differentiator field
 * - $visitor_marker: FALSE for no marker, TRUE for standard marker or
 *     'RRGGBB' colour code
 * - $center_option, one of:
 *   0: fixed center, provided thorugh "centerLat", "centerLng" in $map_options
 *   1: auto-center the map on the first location in the $locations array
 *   2: auto-center the map on the visitor's current location
 * - $center_latlng, array of latitude and longitude based on IP lookup,
 *     applies only when $visitor_marker is set or $center_option == 2 and
 *     location could not be determined or $visitor_location_gps == FALSE
 * - $visitor_location_gps, whether HTML5-style location provider is to be
 *     used; applies only when $visitor_marker is set or $center_opiton == 2;
 *     if FALSE $center_latlng is used
 */
#}
<div class="ip-geoloc-map view-based-map">
  {{ ip_geoloc_output_map_multi_location }}
</div>

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc