@param InfoWindow  $infoWindow
@param Map         $map
@param Marker|null $marker

@return string
961428
public function render(InfoWindow $infoWindow, Map $map, Marker $marker = null)
    {
        $arguments = [$map->getVariable()];

        if ($marker !== null) {
            $arguments[] = $marker->getVariable();
        }

        return $this->getFormatter()->renderObjectCall($infoWindow, 'open', $arguments);
    }
746879
public static function info($Object, $Label=null)
    {
        return self::send($Object, $Label, FirePHP::INFO);
    }
245360
private function renderPasteAfterButton(GetPasteButtonEvent $event)
    {
        if (null !== ($value = $event->getHtmlPasteAfter())) {
            return $value;
        }

        $label = $this->translate('pasteafter.0');
        if ($event->isPasteAfterDisabled()) {
            return $this->renderImageAsHtml('pasteafter_.svg', $label, 'class="blink"');
        }

        if ('pasteafter.1' !== ($opDesc = $this->translate('pasteafter.1'))) {
            $title = \sprintf($opDesc, $event->getModel()->getId());
        } else {
            $title = \sprintf('%s id %s', $label, $event->getModel()->getId());
        }

        return \sprintf(
            ' <a href="%s" title="%s" onclick="Backend.getScrollOffset()">%s</a>',
            $event->getHrefAfter(),
            StringUtil::specialchars($title),
            $this->renderImageAsHtml('pasteafter.svg', $label, 'class="blink"')
        );
    }
45453
public function _process($val, $map) {
		foreach ($map as $m => $arg) {
			if (is_numeric($m)) {
				$m = $arg;
				$arg = null;
			}

			if ($arg !== null) {
				$ret = call_user_func($m, $val, $arg);
			} else {
				$ret = call_user_func($m, $val);
			}

			if ($ret !== false) {
				$val = $ret;
			}
		}
		return $val;
	}
1090543
protected void setLocationInfo(Map<String, String> infos) {

        if (infos.isEmpty()) {
            m_locationInfoPanel.getStyle().setDisplay(Display.NONE);
        } else {
            StringBuffer infoHtml = new StringBuffer();
            for (Entry<String, String> info : infos.entrySet()) {
                infoHtml.append("<p><span>").append(info.getKey()).append(":</span>").append(info.getValue()).append(
                    "</p>");
            }
            m_locationInfoPanel.setInnerHTML(infoHtml.toString());
            m_locationInfoPanel.getStyle().clearDisplay();
        }
    }
179343
public function display($info = null, $details = null, $origin = null, $time = null)
    {
        if (!$this->hasCommand()) {
            return;
        }

        // Build handle
        $comment = $this->getTree().$this->getFork();

        // Add details
        if ($info) {
            $comment .= ' <info>'.$info.'</info>';
        }
        if ($details) {
            $comment .= ' <comment>('.$details.')</comment>';
        }
        if ($origin) {
            $comment .= ' fired by <info>'.$origin.'</info>';
        }
        if ($time) {
            $comment .= ' [~'.$time.'s]';
        }

        $this->command->writeln($comment);
    }
757449
public function showAction(Map $map = null)
    {
        $categoriesArray = [];

        // get current map
        /* @var Map $map */
        $map = $map ?? $this->mapRepository->findByUid($this->settings['map']);

        // find addresses
        $addresses = $map->getAddresses();

        // no addresses related to the map, try to find some from the storagePid
        if($addresses->count() === 0 && $this->settings['storagePid']) {
            $pid = str_ireplace('this', $GLOBALS['TSFE']->id, $this->settings['storagePid']);
            $addresses = $this->addressRepository->findAllAddresses($map, $pid);
        }

        // get categories
        if ($map->isShowCategories()) {
            foreach ($addresses as $address) {
                /* @var \Clickstorm\GoMapsExt\Domain\Model\Address $address */
                $addressCategories = $address->getCategories();
                /* @var \Clickstorm\GoMapsExt\Domain\Model\Category $addressCategory */
                foreach ($addressCategories as $addressCategory) {
                    $categoriesArray[$addressCategory->getUid()] = $addressCategory;
                }
            }
        }

        $this->view->assignMultiple([
            'request' => $this->request->getArguments(),
            'map' => $map, 'addresses' => $addresses,
            'categories' => $categoriesArray,
            'googleMapsLibrary' => $this->googleMapsLibrary
        ]);
    }
1024383
function getCreateMarkerJS() {
    	$_output = "
    	   function createMarker(map, point, title, html, icon, icon_shadow, sidebar_id, openers){
			    var marker_options = {
			        position: point,
			        map: map,
			        title: title};  
			    if(icon!=''){marker_options.icon = icon;}
			    if(icon_shadow!=''){marker_options.shadow = icon_shadow;}
			    
			    //create marker
			    var new_marker = new google.maps.Marker(marker_options);
			    if(html!=''){
					".(($this->info_window)?"
			        
			        google.maps.event.addListener(new_marker, '".$this->window_trigger."', function() {
			          	infowindow.close();	
			          	infowindow.setContent(html);
			          	infowindow.open(map,new_marker);
			        });
			        
					if(openers != ''&&!isEmpty(openers)){
			           for(var i in openers){
			             var opener = document.getElementById(openers[i]);
			             opener.on".$this->window_trigger." = function() { 
			             
			             	infowindow.close();
			             	infowindow.setContent(html);
			             	infowindow.open(map,new_marker); 
			             	
			          		return false;			             	
			             };
			           }
			        }
					":"")."
			        if(sidebar_id != ''){
			            var sidebar = document.getElementById(sidebar_id);
						if(sidebar!=null && sidebar!=undefined && title!=null && title!=''){
							var newlink = document.createElement('a');
							".(($this->info_window)?"
			        		newlink.onclick=function(){infowindow.open(map,new_marker); return false};
							":"
							newlink.onclick=function(){map.setCenter(point); return false};
							")."
							newlink.innerHTML = title;
							sidebar.appendChild(newlink);
						}
			        }
                }
			    return new_marker;  
			}
    	";
    	return $_output;
    }
714292
public function onBeginMap(Map $map)
    {
        $this->widget->setDedimaniaRecord(null);
        $this->widget->setLocalRecord(null);
        $this->widget->update($this->allPlayers);
    }
548875
public function previous($marker = null)
	{
		$html = '';

		$marker === null and $marker = $this->template['previous-marker'];

		if ($this->config['total_pages'] > 1)
		{
			if ($this->config['calculated_page'] == 1)
			{
				$html = str_replace(
				    '{link}',
				    str_replace(array('{uri}', '{page}'), array('#', $marker), $this->template['previous-inactive-link']),
				    $this->template['previous-inactive']
				);
				$this->raw_results['previous'] = array('uri' => '#', 'title' => $marker, 'type' => 'previous-inactive');
			}
			else
			{
				$previous_page = $this->config['calculated_page'] - 1;
				$previous_page = ($previous_page == 1) ? '' : $previous_page;

				$html = str_replace(
				    '{link}',
				    str_replace(array('{uri}', '{page}'), array($this->_make_link($previous_page), $marker), $this->template['previous-link']),
				    $this->template['previous']
				);
				$this->raw_results['previous'] = array('uri' => $this->_make_link($previous_page), 'title' => $marker, 'type' => 'previous');
			}
		}

		return $html;
	}
194159
private function doRender(Map $map, $eventName)
    {
        $this->getEventDispatcher()->dispatch($eventName, $event = new MapEvent($map));

        return $event->getCode();
    }
331202
public function render(Map $map)
    {
        $this->getEventDispatcher()->dispatch(StaticMapEvents::HTML, $event = new StaticMapEvent($map));

        $query = preg_replace('/(%5B[0-9]+%5D)+=/', '=', http_build_query($event->getParameters(), '', '&'));
        $url = 'https://maps.googleapis.com/maps/api/staticmap?'.$query;

        if ($this->hasSecret()) {
            $url = UrlSigner::sign($url, $this->secret, $this->clientId, $this->channel);
        }

        return $url;
    }
144341
public function setOptions(InfoWindowOptions $infoWindowOptions)
    {
        $options = array_filter($infoWindowOptions->options);
        $this->options = ArrayHelper::merge($this->options, $options);
    }
78828
public function collect(Map $map, array $markers = [])
    {
        $result = [];

        foreach (array_merge($markers, $map->getOverlayManager()->getMarkers()) as $marker) {
            $hash = md5($this->markerStyleRenderer->render($marker));
            $result[$hash] = $this->collectValue($marker, isset($result[$hash]) ? $result[$hash] : []);
        }

        return array_values($result);
    }
619850
public function render(Marker $marker)
    {
        $options = $marker->hasStaticOption('styles') ? $marker->getStaticOption('styles') : [];

        if ($marker->hasIcon()) {
            $icon = $marker->getIcon();

            if (!isset($options['icon']) && ($url = $icon->getUrl()) !== Icon::DEFAULT_URL) {
                $options['icon'] = $url;
            }

            if (!isset($options['anchor']) && $icon->hasAnchor()) {
                $options['anchor'] = $icon->getAnchor();
            }
        }

        if (isset($options['anchor']) && $options['anchor'] instanceof Point) {
            $options['anchor'] = $this->pointRenderer->render($options['anchor']);
        }

        return $this->renderStyle($options);
    }
196593
function callTOC( $info )
    {
        $params = array();

        eZPDFTable::extractParameters( $info['p'], 0, $params, true );

        $sizes = isset( $params['size'] ) ? explode( ',', $params['size'] ) : '';
        $indents = isset( $params['indent'] ) ? explode( ',', $params['indent'] ) : '';
        $dots = isset( $params['dots'] ) ? $params['dots'] : '';
        $contentText = isset( $params['contentText'] ) ? $params['contentText'] : ezpI18n::tr( 'lib/ezpdf/classes', 'Contents', 'Table of contents' );

        $this->insertTOC( $sizes, $indents, $dots, $contentText );
    }
599067
protected function _parseMarker($marker, $parameter, $brace){

		$brace = strtolower($brace);

		$result = [
			'uid' => md5(uniqid($parameter, true)),
			'force-type' => null,
			'identifier' => false
		];

		// Integer quick-marker (#parameter# => @[int]parameter@)

		if($marker == '#'){

			assert('$brace == \'\'');
			$brace = 'int';
		}

		// Identifier quick-marker ($parameter$ => @[ident]parameter@)

		elseif($marker == '$'){

			assert('$brace == \'\'');
			$brace = 'identifier';
		}

		switch($brace){

			case 'int':
			case 'float':
			case 'bool':

				$result['force-type'] = $brace;

				break;

			case 'ident':
			case 'identifier':

				$result['identifier'] = true;

				break;

			default:

				if($brace != ''){

					throw new InvalidSyntaxException("Invalid type-hint '$brace' encountered");
				}
		}

		if($parameter == ''){

			throw new InvalidSyntaxException('Invalid parameter name');
		}

		$result['parameter'] = $parameter;

		return $result;
	}