<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://fbb.just4test.de/extern.php?action=feed&amp;tid=4700&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Informationen für CMS/made simple / [GELÖST] Landkarte mit vielen markern]]></title>
		<link>http://www.cmsmadesimple.de/forum/viewtopic.php?id=4700</link>
		<description><![CDATA[Die aktuellsten Beiträge in [GELÖST] Landkarte mit vielen markern.]]></description>
		<lastBuildDate>Thu, 25 Feb 2016 00:03:09 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: [GELÖST] Landkarte mit vielen markern]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=38019#p38019</link>
			<description><![CDATA[<div class="quotebox"><cite>cyberman schrieb:</cite><blockquote><div><p>... ähm, kennen wir das nicht bereits von anderer Stelle&#160; <img src="http://www.cmsmadesimple.de/forum/plugins/ezbbc/style/smilies/devil.png" alt="devil" /> ?</p></div></blockquote></div><p>Ja, leider. Hatte fast dasselbe Problem (kann mich grad nicht an Einzelheiten erinnern), habe nach tagelanger Zeitverschwendung wieder die 1er Version installiert ... läuft heute noch.</p><p>Ich hatte im Forum auf cmsms.org gefragt ob jemand eine lauffähige Version von der 2er im Einsatz hat ... sieht wohl nicht so aus.</p><br /><br /><p>Servus,<br />Alex</p>]]></description>
			<author><![CDATA[dummy@example.com (faglork)]]></author>
			<pubDate>Thu, 25 Feb 2016 00:03:09 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=38019#p38019</guid>
		</item>
		<item>
			<title><![CDATA[Re: [GELÖST] Landkarte mit vielen markern]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=38015#p38015</link>
			<description><![CDATA[<div class="quotebox"><cite>chica2 schrieb:</cite><blockquote><div><p>Habe erstmal Googlemaps in der 1. Version genommen (und Googlemaps2 deinstalliert).</p></div></blockquote></div><p>Tsss, ich dachte, das Thema hat sich mal erledigt - aber die 1er Version ist immer noch ungeschlagen ...</p><p>... ähm, kennen wir das nicht bereits von anderer Stelle&#160; <img src="http://www.cmsmadesimple.de/forum/plugins/ezbbc/style/smilies/devil.png" alt="devil" /> ?</p>]]></description>
			<author><![CDATA[dummy@example.com (cyberman)]]></author>
			<pubDate>Wed, 24 Feb 2016 22:21:20 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=38015#p38015</guid>
		</item>
		<item>
			<title><![CDATA[Re: [GELÖST] Landkarte mit vielen markern]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=38011#p38011</link>
			<description><![CDATA[<p>so, und jetzt mach ich mich auf für die Selfregistration und Einträge der User</p><p>Gruß<br />chica</p>]]></description>
			<author><![CDATA[dummy@example.com (chica2)]]></author>
			<pubDate>Wed, 24 Feb 2016 15:29:37 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=38011#p38011</guid>
		</item>
		<item>
			<title><![CDATA[Re: [GELÖST] Landkarte mit vielen markern]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=38010#p38010</link>
			<description><![CDATA[<p>HA, ich habs gefunden! <img src="http://www.cmsmadesimple.de/forum/plugins/ezbbc/style/smilies/ops.png" alt="ops" /> denn ich habe jetzt erst gemerkt, dass beim googlemaps die description gefehlt hat, dann kann ja nix angezeigt werden.</p><p>Wenn vielleicht noch jemand so auf dem Schlauch steht, wie ich: Habe die Templates in CompanyDirectory so geändert :</p><div class="codebox"><pre><code>...
{* Detail map 2 ist mit zoom =13 *}        
{capture assign=&#039;description&#039;}
{$entry-&gt;company_name}&lt;br /&gt;
&lt;a href=&quot;{$entry-&gt;detail_url}&quot;&gt;Details anzeigen&lt;/a&gt; &lt;br /&gt;
{$entry-&gt;fields.$tmp-&gt;value}&lt;br /&gt;
 {$entry-&gt;address}&lt;br /&gt;
 {$entry-&gt;telephone}
{/capture}


{cggm_add_dynpoint map=&#039;2&#039; name=$entry-&gt;company_name address=$entry-&gt;address description=$description}
 {/if}&lt;/div&gt;
..
     {CGGoogleMaps map=&#039;2&#039;}
...</code></pre></div><p>und alles geht jetzt, wie gewünscht !!&#160; &#160;<img src="http://www.cmsmadesimple.de/forum/plugins/ezbbc/style/smilies/big_smile.png" alt="big_smile" /></p>]]></description>
			<author><![CDATA[dummy@example.com (chica2)]]></author>
			<pubDate>Wed, 24 Feb 2016 14:46:10 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=38010#p38010</guid>
		</item>
		<item>
			<title><![CDATA[Re: [GELÖST] Landkarte mit vielen markern]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=38009#p38009</link>
			<description><![CDATA[<p>Danke Cyberman!! </p><p>den Vorschlag von bdo, hab ich noch nicht probiert. Habe erstmal Googlemaps in der 1. Version genommen (und Googlemaps2 deinstalliert). Und habe so erreicht dass die Liste aus Company directory angezeigt wird, (das hat ja vorehr schon geklappt) und darunter erscheint jetzt Googlemaps mit den Markern an der entsprechenden Stelle, für die es Einträge in company directory gibt. Endlich!!</p><p>Leider gibt es aber immer noch ein Problem, denn&#160; die Marker in Googlemaps sollen bei klick die Info des Eintrages anzeigen. ( Name, Telefon, Womöglich sogar die die www Adresse anzeigen. In den Google maps unter Einstellungen habe ich: &quot;Info-Fenster anzeigen: ja&quot; und &quot;Auslöser: Klick&quot;, höhe und Breit 400 (px).</p><p>Es kommt bei klick aber nur ein ganz kleines Fenster, das aber leer ist?!&#160; (screenshot:)<br /><a href="http://www.cmsmadesimple.de/forum/img/members/188/screen_google_map_.jpeg" rel="nofollow"><span class="postimg"><img src="http://www.cmsmadesimple.de/forum/img/members/188/mini_screen_google_map_.jpeg" alt="mini_screen_google_map_.jpeg" /></span></a> </p><p>Allerdings kommt bei mousover sowas wie ein &quot;Alt Text &quot; mit dem Namen des Eintrages. </p><p>Wo kann ich das denn eingeben? Bzw. was fehlt denn, damit bei Klick die Marker -Fenster mit Inhalt gefüllt und angezeigt werden? </p><p>ich blicks grade echt nicht. DAnke!!!</p><p>hier mein Zusammenfassungstemplate in ComDir:</p><div class="codebox"><pre class="vscroll"><code>[== php ==]
{* Company  Directory Summary Template *}
{if isset($messages)}
&lt;div class=&quot;row CompanyDirectoryMessage&quot;&gt;
 &lt;ul&gt;
   {foreach from=$messages item=&#039;one&#039;}
     &lt;li&gt;{$one}&lt;/li&gt;
   {/foreach}
 &lt;/ul&gt;
&lt;/div&gt;
{/if}

{if isset($errors)}
&lt;div class=&quot;row CompanyDirectoryError&quot;&gt;
 &lt;ul&gt;
   {foreach from=$errors item=&#039;one&#039;}
     &lt;li&gt;{$one}&lt;/li&gt;
   {/foreach}
 &lt;/ul&gt;
&lt;/div&gt;
{/if}

{if isset($items)}
  {if isset($firstlink) || isset($nextlink)}
    &lt;div class=&quot;row&quot;&gt;
      &lt;div class=&quot;col-md-offset-8&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;col-md-4&quot;&gt;
        {if isset($firstlink)}{$firstlink}&amp;nbsp;{$prevlink}&amp;nbsp;&amp;nbsp;{/if}
        {$pagetext} {$curpage} {$oftext} {$pagecount}
        {if isset($nextlink)}&amp;nbsp;&amp;nbsp;{$nextlink}&amp;nbsp;{$lastlink}{/if}
      &lt;/div&gt;
    &lt;/div&gt;
  {/if}

  {foreach from=$items item=entry}
  &lt;article class=&quot;CompanyDirectoryItem&quot; style=&quot;padding-bottom: 2em;&quot;&gt;
    &lt;div class=&quot;row&quot;&gt;
      &lt;div class=&quot;col-md-2&quot;&gt;
      {if $entry-&gt;picture_location ne &#039;&#039;}
        {CGSmartImage src=$entry-&gt;picture_path height=150 width=150}
      {/if}
      &lt;/div&gt;
      &lt;div class=&quot;col-md-10&quot;&gt;
        &lt;div class=&quot;row&quot;&gt;
        {* zuerst die Stadt anzeigen (das extrafeld) in der gleichen Zeile, danach den Namen (mit link zur detailsansicht und die Adresse*}
 &lt;strong&gt;{assign var=&#039;tmp&#039; value=&#039;stadt&#039;}{$entry-&gt;fields.$tmp-&gt;value}&lt;/strong&gt;: 
      &lt;strong&gt; &lt;a href=&quot;{$entry-&gt;detail_url}&quot;&gt;{$entry-&gt;company_name}&lt;/a&gt;&lt;/strong&gt;,
        {if $entry-&gt;address ne &#039;&#039;}&amp;nbsp;{$entry-&gt;address} {/if}
        &lt;/div&gt;      
      &lt;/div&gt;
    &lt;/div&gt;

    {* sample of addressing a custom field directly *}
{strip}
    {if isset($entry-&gt;fields)}
      {if isset($entry-&gt;fields.foo) &amp;&amp; $entry-&gt;fields.foo-&gt;value != &#039;&#039;}
        Foo: {$entry-&gt;fields.foo-&gt;value}&lt;br/&gt;
      {/if}

      {* sample of addressing a field with spaces or other chars in the name
      Special Field: {assign var=&#039;tmp&#039; value=&#039;The Field Name&#039;}{$entry-&gt;fields.$tmp-&gt;value}&lt;br/&gt;
    *}

 
    {* sample of addressing the value of a dropdown field: *}
    {if isset($entry-&gt;fields.mydropdown) &amp;&amp; $entry-&gt;fields.mydropdown-&gt;dropdown_value != &#039;&#039;}
      Sample Dropdown: {$entry-&gt;fields.mydropdown-&gt;dropdown_value}&lt;br/&gt;
    {/if}

    {* sample of looping through the fields associative array
    {foreach from=$entry-&gt;fields key=&#039;fieldname&#039; item=&#039;field&#039;}
      {if isset($field-&gt;value) &amp;&amp; $field-&gt;value != &#039;&#039;}
        {$field-&gt;name} &lt;em&gt;({$field-&gt;type})&lt;/em&gt;: {$field-&gt;value}&lt;br/&gt;
      {/if}
    {/foreach}
    *}
  {/if}
{/strip}

  &lt;/article&gt;

  {cggm_add_dynpoint map=&#039;1&#039; name=$entry-&gt;company_name address=$entry-&gt;address description=$description}
 
  {foreachelse}
    &lt;div class=&quot;alert alert-error&quot;&gt;{$CompanyDirectory-&gt;Lang(&#039;error_nocompaniesmatch&#039;)}&lt;/div&gt;
  {/foreach}
{/if}

{CGGoogleMaps map=&#039;1&#039;}</code></pre></div><p>und das ist mein detail Template in Company directory:</p><div class="codebox"><pre class="vscroll"><code>[== php ==]
{* CompanyDirectory Detail Template *}
{* in den metatags den Titel ausgeben  *}
{assign var=&#039;alt_title&#039; value=$entry-&gt;company_name}
{assign var=&#039;metadescription&#039; value=$entry-&gt;content|truncate:&#039;250&#039;|strip_tags|strip}
{strip}
&lt;a href=&quot;index.php?page=bundeslaender&quot;&gt;&amp;gt;&amp;gt; nach Bundesländern sortiert &lt;/a&gt;&lt;br&gt;&lt;br&gt;

&lt;a href=&quot;index.php?page=bundesweit&quot;&gt;&amp;gt;&amp;gt; nach Städten A-Z sortiert &lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;
&lt;article class=&quot;CompanyDirectoryItem&quot;&gt;
  {if isset($entry-&gt;canonical)}{$canonical=$entry-&gt;canonical}{/if}
  
  &lt;!-- die Kategorien sind die Bundesländer --&gt;
       {if isset($categories)}
         &lt;div class=&quot;row-fluid&quot;&gt;
         &lt;!--{$CompanyDirectory-&gt;Lang(&#039;categories&#039;)}:&amp;nbsp;--&gt;
         {foreach $categories as $catname =&gt; $rec}
	   {module_action_link action=default category=$rec-&gt;id urlonly=1 assign=url}
         &lt;strong&gt;Bundesland: &lt;/strong&gt; &lt;a href=&quot;{$url}&quot; title=&quot;{$rec-&gt;description|strip_tags|summarize:40}&quot;&gt; {$catname}&lt;/a&gt;{if !$rec@last},  {/if}

         {/foreach}
         &lt;/div&gt;
       {/if}&lt;/br&gt;
       
       
  &lt;div class=&quot;row-fluid&quot;&gt;
     &lt;div class=&quot;span2&quot;&gt;
       {if $entry-&gt;logo_location ne &#039;&#039;}
         &lt;div class=&quot;row-fluid&quot;&gt;
         {CGSmartImage src=$entry-&gt;logo_path max_width=150 max_height=150}
         &lt;/div&gt;
       {/if}

       {if $entry-&gt;picture_location ne &#039;&#039;}
         &lt;div class=&quot;row-fluid&quot;&gt;
         {CGSmartImage src=$entry-&gt;picture_path max_width=800 max_height=600 notag=1 noembed=1 assign=&#039;picture_url&#039;}
         &lt;a class=&quot;fancybox&quot; href=&quot;{$picture_url}&quot;&gt;{CGSmartImage src=$entry-&gt;picture_path max_width=150 max_height=150}&lt;/a&gt;
         &lt;/div&gt;
       {/if}
     &lt;/div&gt;

     &lt;div class=&quot;span10&quot;&gt;
       &lt;h4&gt;{if $entry-&gt;website !=&#039;&#039;}&lt;a class=&quot;external&quot; href=&quot;{$entry-&gt;website}&quot; title=&quot;{$CompanyDirectory-&gt;Lang(&#039;view_website&#039;)}&quot;&gt;{$entry-&gt;company_name}&lt;/a&gt;{else}{$entry-&gt;company_name}{/if}&lt;/h4&gt; 
       {* zuerst den adreszusatz anzeigen (das extrafeld) *}
{assign var=&#039;tmp&#039; value=&#039;Adressenzusatz&#039;}{$entry-&gt;fields.$tmp-&gt;value}
        
&lt;/ br&gt;&lt;/ br&gt;
       &lt;div class=&quot;row-fluid&quot;&gt;
         {$entry-&gt;address}
       &lt;/div&gt;&lt;/br&gt;
       {if $entry-&gt;telephone ne &#039;&#039;}
         &lt;div class=&quot;row-fluid&quot;&gt;
           {$CompanyDirectory-&gt;Lang(&#039;telephone&#039;)}: {$entry-&gt;telephone}
         &lt;/div&gt;
       {/if}
       {if $entry-&gt;fax ne &#039;&#039;}
         &lt;div class=&quot;row-fluid&quot;&gt;
           {$CompanyDirectory-&gt;Lang(&#039;fax&#039;)}: {$entry-&gt;fax}
         &lt;/div&gt;
       {/if}

       {if $entry-&gt;contact_email ne &#039;&#039;}
         &lt;div class=&quot;row-fluid&quot;&gt;
           {*$CompanyDirectory-&gt;Lang(&#039;contactemail&#039;)*}
           &lt;a href=&quot;mailto:{$entry-&gt;contact_email}&quot;&gt;E-Mail{* $entry-&gt;contact_email *}&lt;/a&gt;
         &lt;/div&gt;
       {/if}
       
        &lt;div class=&quot;row-fluid&quot;&gt;
       {if $entry-&gt;website !=&#039;&#039;}&lt;a class=&quot;external&quot; href=&quot;{$entry-&gt;website}&quot; title=&quot;{$CompanyDirectory-&gt;Lang(&#039;view_website&#039;)}&quot;&gt;www&lt;/a&gt;{else}&lt;em&gt;keine www Adresse hinterlegt&lt;/em&gt;{/if}
       
       &lt;/div&gt;&lt;/br&gt;

       {if $entry-&gt;hier_id &gt; 0}
         &lt;div class=&quot;row-fluid&quot;&gt;
           {$CompanyDirectory-&gt;Lang(&#039;hierarchy&#039;)}: {cd_hierbreadcrumb page=$summarypage hier=$entry-&gt;hier_id hier_children=1}
         &lt;/div&gt;
       {/if}

&lt;/br&gt;
&lt;h5&gt;Weitere Informationen&lt;/h5&gt;
       {if $entry-&gt;details ne &#039;&#039;}
         &lt;div class=&quot;row-fluid&quot; style=&quot;border-bottom: 1px solid silver; margin-top: 0.5em;&quot;&gt;{$entry-&gt;details}&lt;/div&gt;
       {/if}

       {if isset($entry-&gt;fields) }
         {* handle everything but images *}
         {$have_images=0}
         {foreach from=$entry-&gt;fields key=&#039;field_name&#039; item=customfield}
           {if $customfield-&gt;type == &#039;image&#039;}
             {$have_images=1}
           {else}
             &lt;div class=&quot;row-fluid&quot;&gt;
           {*  Anzeige der extrafelder, Stadt , Plz, ist jetzt  abgeschaltet *}
               {* $customfield-&gt;name}:&amp;nbsp;
               {if $customfield-&gt;type == &#039;file&#039;}
                  &lt;a href=&quot;{$customfield-&gt;file_url}&quot;&gt;{$customfield-&gt;value}&lt;/a&gt;
               {else}
                 {$customfield-&gt;name}: {$customfield-&gt;value}
               {/if *}
             &lt;/div&gt;
           {/if}
         {/foreach}

         {* now handle images *}
         {if $have_images}
           &lt;div class=&quot;row-fluid&quot;&gt;
           {foreach from=$entry-&gt;fields key=&#039;field_name&#039; item=customfield}
             &lt;div class=&quot;span2&quot;&gt;
               {CGSmartImage src=$customfield-&gt;url max_width=800 max_height=600 notag=1 noembed=1 assign=&#039;img&#039;}
               &lt;a class=&quot;fancybox&quot; href=&quot;{$img}&quot; rel=&quot;img_album&quot;&gt;{CGSmartImage src=$customfield-&gt;url width=150 height=150}&lt;/a&gt;
             &lt;/div&gt;
           {/foreach}
           &lt;/div&gt;
         {/if}
         {*  hierher muss das googlemaps ding!!! map 2 ist das detail = arzt *}
      {cggm_add_dynpoint map=&#039;2&#039; name=$entry-&gt;company_name address=$entry-&gt;address}
       {/if}
     &lt;/div&gt;{* span10 *}{CGGoogleMaps map=&#039;2&#039;}
  &lt;/div&gt;{* top row *}
&lt;/article&gt;
{/strip}
        
&lt;/ br&gt; &lt;/ br&gt; &lt;a href=&quot;javascript:history.back()&quot;&gt;zur&amp;uuml;ck&lt;/a&gt;</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (chica2)]]></author>
			<pubDate>Wed, 24 Feb 2016 13:11:32 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=38009#p38009</guid>
		</item>
		<item>
			<title><![CDATA[Re: [GELÖST] Landkarte mit vielen markern]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=37701#p37701</link>
			<description><![CDATA[<div class="quotebox"><cite>chica2 schrieb:</cite><blockquote><div><p>wobei ich (noch) nicht weiss, wie die Locations erzeugt werden sollen.</p></div></blockquote></div><p>Sollte nicht all zu schwer sein - den entscheidenden Hinweis hast du ja bereits bekommen</p><div class="quotebox"><cite>bd0 schrieb:</cite><blockquote><div><p>Die (bei mir) statische places.js müsste bei dir halt dynamisch erzeugt werden<br />.</p></div></blockquote></div><p>was nichts anderes heisst, als dass du dies in einem separaten Template erledigen kannst. Templates können (bei CMSMS/Smarty) so ziemlich alles ausgeben, was benötigt wird - egal, ob html, Javascript, xml, css ...</p><p>Der Knackpunkt ist allenfalls, wie man es dem System beibringt. Der Einfachheit halber würde ich die places.js inline einfügen. Hierbei ist nur zu beachten, dass das Inline-Javascript NICHT (wie sonst üblich) mit {literal}...{literal} maskiert wird, da Smarty damit quasi stillgelegt wird.</p><p>(Für die Insider - ja, ich weiß, es geht auch mit literal. Muss nur passend geschlossen und wieder geöffnet werden <img src="http://www.cmsmadesimple.de/forum/plugins/ezbbc/style/smilies/wink.png" alt="wink" />).</p><p>Konkret musst du das Spezial-Template nur derart umbauen, dass es den Content der places.js ausgibt, also in etwa so (Achtung, Pseudo-Code - muss durch die modulseitig vorhandenen Variablen ersetzt werden, die ich gerade nicht kenne)</p><div class="codebox"><pre><code>&lt;script type=&quot;text/javascript&quot;&gt;
var places = [];

{foreach ...}

places.push({ldelim}
infowin_html: &quot;{$entry-&gt;company}&lt;br/&gt;&lt;img src=&#039;/uploads/img01.jpg&#039;/&gt;&lt;br/&gt;&lt;a href=&#039;{$entry-&gt;url}&#039;&gt;{$entry-&gt;description}&lt;/a&gt;&quot;,
tooltip_html: &quot;&lt;strong&gt;{$entry-&gt;company}&lt;/strong&gt;&lt;br/&gt;{$entry-&gt;street}&lt;br/&gt;{$entry-&gt;postcode} {$entry-&gt;location}&quot;,
position: {ldelim} lat: {$entry-&gt;lat}, lng: {$entry-&gt;lng}},
markerURL:&quot;markerbilder/1.png&quot;
});

{/foreach}

&lt;/script&gt;</code></pre></div><p>Das ganze Geheimnis ist eigentlich nur, dass </p><div class="codebox"><pre><code>places.push({</code></pre></div><p>und</p><div class="codebox"><pre><code>position: {</code></pre></div><p>durch</p><div class="codebox"><pre><code>places.push({ldelim}</code></pre></div><p>und</p><div class="codebox"><pre><code>position: {ldelim}</code></pre></div><p>ersetzt werden muss. </p><p>{ldelim} steht für &quot;left delimiter&quot; (linker Trenner) und gibt lediglich dessen festgelegten Wert aus, also &quot;{&quot;. Praktisch wird aber damit verhindert, dass Smarty versucht, das Javascript zu verarbeiten (was natürlich in die Hose gehen würde). Das Javascript hingegen merkt keinen Unterschied <img src="http://www.cmsmadesimple.de/forum/plugins/ezbbc/style/smilies/wink.png" alt="wink" />.</p>]]></description>
			<author><![CDATA[dummy@example.com (cyberman)]]></author>
			<pubDate>Wed, 27 Jan 2016 22:53:14 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=37701#p37701</guid>
		</item>
		<item>
			<title><![CDATA[Re: [GELÖST] Landkarte mit vielen markern]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=37700#p37700</link>
			<description><![CDATA[<div class="quotebox"><cite>bd0 schrieb:</cite><blockquote><div><p>Nach dieser Methode könntest du es auch probieren. Die (bei mir) statische places.js müsste bei dir halt dynamisch erzeugt werden, sollte ja aber irgendwie aus &quot;Company Directory&quot; möglich sein.<br />.</p></div></blockquote></div><p>Danke bd0, für die ausführliche Antwort, voll nett!&#160; </p><p>Wenn die 1er Version nicht gehen sollte, dann werde ich Deine Variante ausprobieren.... wobei ich (noch) nicht weiss, wie die Locations erzeugt werden sollen.</p><p>Merci jedenfalls!</p>]]></description>
			<author><![CDATA[dummy@example.com (chica2)]]></author>
			<pubDate>Wed, 27 Jan 2016 19:54:23 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=37700#p37700</guid>
		</item>
		<item>
			<title><![CDATA[Re: [GELÖST] Landkarte mit vielen markern]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=37699#p37699</link>
			<description><![CDATA[<p>Danke cyberman,</p><div class="quotebox"><cite>cyberman schrieb:</cite><blockquote><div><p>Kann mich aber erinnern, dass es mit CGGoogleMaps 2 seit jeher Probleme gab, und die 1er Version bevorzugt wurde</p><p><a href="http://www.cmsmadesimple.de/forum/viewtopic.php?id=3841" rel="nofollow">http://www.cmsmadesimple.de/forum/viewtopic.php?id=3841</a></p></div></blockquote></div><p>Ja , das hatte ich leider auch gelesen. Werde dann mal die 1er version probieren. Bin gespannt.</p><br /><p>Gruß Chica</p>]]></description>
			<author><![CDATA[dummy@example.com (chica2)]]></author>
			<pubDate>Wed, 27 Jan 2016 19:47:42 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=37699#p37699</guid>
		</item>
		<item>
			<title><![CDATA[Re: [GELÖST] Landkarte mit vielen markern]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=37698#p37698</link>
			<description><![CDATA[<p>Hallo,</p><p>ich hatte mal eine Stadtkarte mit vielen Markern gebastelt. Allerdings habe ich keines der erwähnten Module genutzt.<br />Habe es mir zusammengebastelt, aus einem Tutorial das ich im Internet gefunden hatte.</p><p>Dazu habe ich die Googlemaps Api auf der entsprechenden Seite eingebunden.<br />Ausserdem das Script &quot;tooltips.js&quot; (s.u.) und die Datei &quot;places.js&quot; in der alle Locations in einem Array gespeichert waren (s.u.).<br />Danach wird die Funktion &quot;createInfoWindow&quot; gestartet.<br />Nach dieser Methode könntest du es auch probieren. Die (bei mir) statische places.js müsste bei dir halt dynamisch erzeugt werden, sollte ja aber irgendwie aus &quot;Company Directory&quot; möglich sein.</p><br /><div class="codebox"><pre class="vscroll"><code>[== javascript ==]
&lt;script type=&quot;text/javascript&quot; src=&quot;http://maps.googleapis.com/maps/api/js?sensor=true&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;js/tooltip.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;js/places.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;&gt;

	function createInfoWindow(marker, key) {
				//create an infowindow for this marker
				var infowindow = new google.maps.InfoWindow({
				  content: places[key].infowin_html,
				  maxWidth:250
				});
				//open infowindo on click event on marker.
				google.maps.event.addListener(marker, &#039;click&#039;, function() {
					if(lastOpenInfoWin) lastOpenInfoWin.close();
					lastOpenInfoWin = infowindow;
				  infowindow.open(marker.get(&#039;map&#039;), marker);
				});
				
		}
	// Here is where we create a tooltip for each marker,
	// with content set to plcaes[placeindex].tooltip_html 
	function createTooltip(marker, key) {
				//create a tooltip 
				var tooltipOptions={
					marker:marker,
					content:places[key].tooltip_html,
					cssClass:&#039;tooltip&#039; // name of a css class to apply to tooltip
				};
				var tooltip = new Tooltip(tooltipOptions);
				
	}
	// Used to keep track of the open InfoWindow, so when 
	// a new one is about to be open, we close the old one.
	var lastOpenInfoWin = null;
	// Create map on DOM load
	// I&#039;m using an array of places(places.js) to populate the markers
	function createMap() {
		var mapDiv = document.getElementById(&quot;map_canvas&quot;);
		if(places.length){
			var map;
			// Set center to point to Cologne/germany
			var latlng =new google.maps.LatLng(50.937531, 6.960279);
			var myOptions = {
				zoom: 13,
				center:  latlng,
				mapTypeId: google.maps.MapTypeId.ROADMAP
			}
			map = new google.maps.Map(mapDiv, myOptions);
			for (var key in places){
				var myPlace = places[key];
				if (myPlace.position) { 
					var marker = new google.maps.Marker({
						map: map,
						position: new google.maps.LatLng(myPlace.position.lat, myPlace.position.lng),
						icon:myPlace.markerURL
					});
				createInfoWindow(marker, key);
				createTooltip(marker, key);
			}
		} 
		}
	}

  google.maps.event.addDomListener(window, &#039;load&#039;, createMap);
	&lt;/script&gt;

&lt;div id=&quot;map_canvas&quot;&gt;&lt;/div&gt;</code></pre></div><p>tooltip.js</p><div class="codebox"><pre class="vscroll"><code>[== javascript ==]
/*
 Constructor for the tooltip
 @ param options an object containing: marker(required), content(required) and cssClass(a css class, optional)
 @ see google.maps.OverlayView()
 */

function Tooltip(options) {

    // Now initialize all properties.
    this.marker_ = options.marker;
    this.content_ = options.content;
    this.map_ = options.marker.get(&#039;map&#039;);
    this.cssClass_ = options.cssClass || null;

    // We define a property to hold the content&#039;s
    // div. We&#039;ll actually create this div
    // upon receipt of the add() method so we&#039;ll
    // leave it null for now.
    this.div_ = null;

    //Explicitly call setMap on this overlay
    this.setMap(this.map_);
    var me = this;
    // Show tooltip on mouseover event.
    google.maps.event.addListener(me.marker_, &#039;mouseover&#039;, function () {
        me.show();
    });
    // Hide tooltip on mouseout event.
    google.maps.event.addListener(me.marker_, &#039;mouseout&#039;, function () {
        me.hide();
    });
}
// Now we extend google.maps.OverlayView()
Tooltip.prototype = new google.maps.OverlayView();

// onAdd is one of the functions that we must implement, 
// it will be called when the map is ready for the overlay to be attached.
Tooltip.prototype.onAdd = function () {

    // Create the DIV and set some basic attributes.
    var div = document.createElement(&#039;DIV&#039;);
    div.style.position = &quot;absolute&quot;;
    // Hide tooltip
    div.style.visibility = &quot;hidden&quot;;
    if (this.cssClass_)
        div.className += &quot; &quot; + this.cssClass_;

    //Attach content to the DIV.
    div.innerHTML = this.content_;

    // Set the overlay&#039;s div_ property to this DIV
    this.div_ = div;

    // We add an overlay to a map via one of the map&#039;s panes.
    // We&#039;ll add this overlay to the floatPane pane.
    var panes = this.getPanes();
    panes.floatPane.appendChild(this.div_);

}
// We here implement draw
Tooltip.prototype.draw = function () {

    // Position the overlay. We use the position of the marker
    // to peg it to the correct position, just northeast of the marker.
    // We need to retrieve the projection from this overlay to do this.
    var overlayProjection = this.getProjection();

    // Retrieve the coordinates of the marker
    // in latlngs and convert them to pixels coordinates.
    // We&#039;ll use these coordinates to place the DIV.
    var ne = overlayProjection.fromLatLngToDivPixel(this.marker_.getPosition());

    // Position the DIV.
    var div = this.div_;
    div.style.left = ne.x + &#039;px&#039;;
    div.style.top = ne.y + &#039;px&#039;;

}
// We here implement onRemove
Tooltip.prototype.onRemove = function () {
    this.div_.parentNode.removeChild(this.div_);
}

// Note that the visibility property must be a string enclosed in quotes
Tooltip.prototype.hide = function () {
    if (this.div_) {
        this.div_.style.visibility = &quot;hidden&quot;;
    }
}

Tooltip.prototype.show = function () {
    if (this.div_) {
        this.div_.style.visibility = &quot;visible&quot;;
    }
}</code></pre></div><br /><p>places.js</p><div class="codebox"><pre><code>[== javascript ==]
var places = [];

places.push({
infowin_html: &quot;Überschrift z.b. Firmenname&lt;br/&gt;&lt;img src=&#039;/uploads/img01.jpg&#039;/&gt;&lt;br/&gt;&lt;a href=&#039;http://www.linkziel.de&#039;&gt;Details...&lt;/a&gt;&quot;,
tooltip_html: &quot;&lt;strong&gt;Überschrift&lt;/strong&gt;&lt;br/&gt;Straße&lt;br/&gt;PLZ Stadt&quot;,
position: { lat: 50.937531, lng: 6.960279},
markerURL:&quot;markerbilder/1.png&quot;
});

places.push({
infowin_html: &quot;Überschrift z.b. Firmenname&lt;br/&gt;&lt;img src=&#039;/uploads/img01.jpg&#039;/&gt;&lt;br/&gt;&lt;a href=&#039;http://www.linkziel.de&#039;&gt;Details...&lt;/a&gt;&quot;,
tooltip_html: &quot;&lt;strong&gt;Überschrift&lt;/strong&gt;&lt;br/&gt;Straße&lt;br/&gt;PLZ Stadt&quot;,
position: { lat: 50.937531, lng: 6.960279},
markerURL:&quot;markerbilder/1.png&quot;
});

places.push({
infowin_html: &quot;Überschrift z.b. Firmenname&lt;br/&gt;&lt;img src=&#039;/uploads/img01.jpg&#039;/&gt;&lt;br/&gt;&lt;a href=&#039;http://www.linkziel.de&#039;&gt;Details...&lt;/a&gt;&quot;,
tooltip_html: &quot;&lt;strong&gt;Überschrift&lt;/strong&gt;&lt;br/&gt;Straße&lt;br/&gt;PLZ Stadt&quot;,
position: { lat: 50.937531, lng: 6.960279},
markerURL:&quot;markerbilder/1.png&quot;
});</code></pre></div><p>hoffe es hilft.</p>]]></description>
			<author><![CDATA[dummy@example.com (bd0)]]></author>
			<pubDate>Wed, 27 Jan 2016 13:37:45 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=37698#p37698</guid>
		</item>
		<item>
			<title><![CDATA[Re: [GELÖST] Landkarte mit vielen markern]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=37695#p37695</link>
			<description><![CDATA[<p>Zum Fehler konkret hab ich keine Idee. Kann mich aber erinnern, dass es mit CGGoogleMaps 2 seit jeher Probleme gab, und die 1er Version bevorzugt wurde</p><p><a href="http://www.cmsmadesimple.de/forum/viewtopic.php?id=3841" rel="nofollow">http://www.cmsmadesimple.de/forum/viewtopic.php?id=3841</a></p>]]></description>
			<author><![CDATA[dummy@example.com (cyberman)]]></author>
			<pubDate>Wed, 27 Jan 2016 09:27:08 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=37695#p37695</guid>
		</item>
		<item>
			<title><![CDATA[Re: [GELÖST] Landkarte mit vielen markern]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=37691#p37691</link>
			<description><![CDATA[<p>Vielen Dank Alex, die Seite bei den orks war mir bis jetzt noch gar nicht bekannt! </p><p>Aber leider komme ich mit der Info auch nicht weiter. Habe wie dort beschrieben im Zusammenfassungstemplate von CompanyDirectory folgendes eingebunden, ganz unten:</p><div class="codebox"><pre><code>{foreach $items as $entry}   ... {cggm2_add_dynpoint map=&#039;1&#039; name=$entry-&gt;company_name address=$entry-&gt;address} {/foreach}  
{CGGoogleMaps2 map=&#039;1&#039;}</code></pre></div><p>oder auch das probiert, ( von hier : <a href="http://www.cmsmadesimple.de/forum/viewtopic.php?id=3841)" rel="nofollow">http://www.cmsmadesimple.de/forum/viewt … p?id=3841)</a> </p><div class="codebox"><pre><code> {cggm2_add_dynpoint map=1 name=$cnames latitude=$entry-&gt;latitude longitude=$entry-&gt;longitude description=$description icon=&#039;shadow&#039;} {/foreach}  
{CGGoogleMaps2 map=&#039;1&#039;}</code></pre></div><p>und auf der Inhalts-Seite so eingebunden:</p><div class="codebox"><pre><code>{CompanyDirectory}</code></pre></div><p>Damit werden meine Einträge schon mal als Liste angezeigt, alles prima. Darunter auch eine Weltkarte von Google maps, allerdings ohne jeden Eintrag, bzw Marker! <br />Und mit der Googlemaps Einstellung: Zoomstufe =3, wird das Meer vor Nigeria angezeigt! Uh, ich hab nur Adressen aus Deutschland, und die Karte startet in Afrika!</p><p>Wie komme ich denn jetzt weiter? Wo liegt mein Fehler?<br />Hat jemand&#160; eine Idee für mich?</p><br /><br /><p>PS: Wenn ich auf einer Seite nur eine Testkarte map=2&#160; mit zwei manuellen Einträgen anzeigen lasse , ohne Company Directory, dann klappt alles.</p>]]></description>
			<author><![CDATA[dummy@example.com (chica2)]]></author>
			<pubDate>Tue, 26 Jan 2016 15:39:59 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=37691#p37691</guid>
		</item>
		<item>
			<title><![CDATA[Re: [GELÖST] Landkarte mit vielen markern]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=37637#p37637</link>
			<description><![CDATA[<p>Servus!</p><div class="quotebox"><cite>chica2 schrieb:</cite><blockquote><div><p>Die Einträge sollen zwar im Backend angelegt werden, aber ganz schick wäre es ja, wenn jedes Mitglieder sich über ein Formular direkt selber eintragen könnte (die Anzeige dazu würde danach im Backend freigeschaltet werden), das würde das Abtippen der Daten-Einträge aus einer Mail , PDF etc ersparen....</p></div></blockquote></div><p>Dafür benötigst du AFAIK Frontendusers / Selfregistration</p><div class="quotebox"><cite>chica2 schrieb:</cite><blockquote><div><p>Dachte, das ginge mit CGGoogleMaps2 und CompanyDirectory, habe aber mit beiden noch nie gearbeitet und brauche daher euren Rat.</p><p>1. Geht das überhaupt mit den beiden Modulen, oder wäre etwas anderes praktischer? Listit?</p><p>2. Habe in CompanyDirectory und in CGGoogleMapsmal probeweise einfache Einträge angelegt, und auf einer Seite eingebunden mit </p><div class="codebox"><pre><code>{CompanyDirectory} {CGGoogleMaps2}</code></pre></div><p>und die Einträge werden auch jeweils angezeigt, aber&#160; wie krieg ich Googlemaps jetzt &quot;in&quot; CompanyDirectory? bzw, wie krieg ich die Einräge auf die Landkarte? Ist das nur ein Eintrag in einem Template, oder wie geht das?</p></div></blockquote></div><p><a href="http://forum.cmsmadesimple.org/viewtopic.php?f=7&amp;t=68155" rel="nofollow">http://forum.cmsmadesimple.org/viewtopi … =7&amp;t=68155</a></p><p>hth,<br />Alex</p>]]></description>
			<author><![CDATA[dummy@example.com (faglork)]]></author>
			<pubDate>Sat, 16 Jan 2016 12:09:33 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=37637#p37637</guid>
		</item>
		<item>
			<title><![CDATA[[GELÖST] Landkarte mit vielen markern]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=37632#p37632</link>
			<description><![CDATA[<p>Hallo,</p><p>habe folgende Stituation: benötigt wird eine Landkarte (Deutschland), auf der verschiedene Vereinsmitglieder anklickbar sein sollen:&#160; <br />- ca 50-100 Einträge, <br />- bei Klick auf einen Marker sollen jeweils:&#160; Name, Stadt, Tel und www-Adresse angezeigt werden. <br />- zum anderen sollen die Mitglieder-Einträge auch als Liste zu sehen sein:<br />&#160; &#160;- sortierbar nach Stadt (postleitzahl), bzw Bundesland, <br />&#160; &#160;- oder auch weiteren Stichpunkten (jetzt noch nicht klar)</p><p>Die Einträge sollen zwar im Backend angelegt werden, aber ganz schick wäre es ja, wenn jedes Mitglieder sich über ein Formular direkt selber eintragen könnte (die Anzeige dazu würde danach im Backend freigeschaltet werden), das würde das Abtippen der Daten-Einträge aus einer Mail , PDF etc ersparen....</p><p>Dachte, das ginge mit CGGoogleMaps2 und CompanyDirectory, habe aber mit beiden noch nie gearbeitet und brauche daher euren Rat.</p><p>1. Geht das überhaupt mit den beiden Modulen, oder wäre etwas anderes praktischer? Listit?</p><p>2. Habe in CompanyDirectory und in CGGoogleMapsmal probeweise einfache Einträge angelegt, und auf einer Seite eingebunden mit </p><div class="codebox"><pre><code>{CompanyDirectory} {CGGoogleMaps2}</code></pre></div><p>und die Einträge werden auch jeweils angezeigt, aber&#160; wie krieg ich Googlemaps jetzt &quot;in&quot; CompanyDirectory? bzw, wie krieg ich die Einräge auf die Landkarte? Ist das nur ein Eintrag in einem Template, oder wie geht das?&#160; Wäre Super, wenn ihr mit weiterhelfen könntet.</p><p>Danke für Eure Mühe!</p><p>Gruß<br />chica</p><br /><p>- CMS-Version 1.11.13<br />- PHP&#160; 5.6.15-1~he.0 <br />- CGGoogleMaps2&#160; &#160; 0.99.1<br />- CompanyDirectory&#160; &#160; 1.22.9</p>]]></description>
			<author><![CDATA[dummy@example.com (chica2)]]></author>
			<pubDate>Fri, 15 Jan 2016 13:33:50 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=37632#p37632</guid>
		</item>
	</channel>
</rss>
