<?xml version="1.0" encoding="UTF-8"?>    <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
      <channel>
        <title>Geocoder - No map available (Please help)</title>
        <link>https://interactivetools.com/forum/forum-posts.php?Geocoder---No-map-available-Please-help-79127</link>
        <description></description>
        <pubDate>Wed, 20 May 2026 03:31:58 -0700</pubDate>
        <language>en-us</language>
        <atom:link href="https://interactivetools.com/forum/forum-posts.php?rss=1&amp;Geocoder---No-map-available-Please-help-79127" rel="self" type="application/rss+xml" />

                <item>
          <title>Geocoder - No map available (Please help)</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2232379#post2232379</link>
          <description><![CDATA[<p>Got it working now, somehow... thx after all.</p>]]></description>
          <pubDate>Wed, 13 Nov 2013 10:27:31 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2232379#post2232379</guid>
        </item>
                <item>
          <title>Geocoder - No map available</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2232377#post2232377</link>
          <description><![CDATA[<p>In the html sourcecode I see the latitude , so why doesn't the map show ??</p>

<p><span>&lt;!-- STEP1: Map with single address: Put this in the &lt;head&gt; of your page, rename $record if needed --&gt;</span> <span>&lt;script <span>type</span>="<span>text/javascript</span>" <span>src</span>="<a href="http://maps.google.com/maps/api/js?sensor=false" rel="nofollow">http://maps.google.com/maps/api/js?sensor=false</a>"&gt;</span><span>&lt;/script&gt;</span> <span>&lt;script <span>type</span>="<span>text/javascript</span>"&gt;</span> function initialize() { var latitude = 50.86982; var longitude = 4.68428; var mapCanvasId = 'map_canvas'; if (latitude) { var mapOptions = { mapTypeId: google.maps.MapTypeId.ROADMAP }; var map = new google.maps.Map(document.getElementById(mapCanvasId), mapOptions); var latLng = new google.maps.LatLng(latitude, longitude); var marker = new google.maps.Marker({map: map, position: latLng });<br /> map.setCenter(latLng); map.setZoom(14); } } <span>&lt;/script&gt;</span> <span>&lt;!-- /STEP1: Map with single address --&gt;</span></p>]]></description>
          <pubDate>Wed, 13 Nov 2013 06:24:38 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2232377#post2232377</guid>
        </item>
                <item>
          <title>Geocoder - No map available (Please help)</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2232374#post2232374</link>
          <description><![CDATA[<p>Hi, I'm really stuck with the Geocoder plugin, I can't seem to get it to work... I only get " No map available" on my site.</p>
<p>The latitude and longitude fields are populated ok I think.  Here is my code:</p>
<p>&lt;?php header('Content-type: text/html; charset=utf-8'); ?&gt;<br />&lt;?php<br /> /* STEP 1: LOAD RECORDS - Copy this PHP code block near the TOP of your page */<br /><br /> // load viewer library<br /> $libraryPath = 'beheer/lib/viewer_functions.php';<br /> $dirsToCheck = array('/home/vdwproje/public_html/','','../','../../','../../../');<br /> foreach ($dirsToCheck as $dir) { if (@include_once("$dir$libraryPath")) { break; }}<br /> if (!function_exists('getRecords')) { die("Couldn't load viewer library, check filepath in sourcecode."); }<br /><br /> // error checking<br /> if (!@$GLOBALS['GEOCODER_PLUGIN']) { die("You must activate the Geocoder plugin before you can access this page."); }</p>
<p>// load records from 'projecten'<br /> list($projectenRecords, $projectenMetaData) = getRecords(array(<br /> 'tableName' =&gt; 'projecten',<br /> 'loadUploads' =&gt; true,<br /> 'allowSearch' =&gt; false,<br /> ));<br /><br /> list($pandenRecords, $pandenMetaData) = getRecords(array(<br /> 'tableName' =&gt; 'panden',<br /> 'orderBy' =&gt; 'title ASC',<br /> 'where' =&gt; whereRecordNumberInUrl(1),<br /> ));<br /> $pandenRecord = @$pandenRecords[0]; // get first record</p>
<p>?&gt;</p>
<p>&lt;script type="text/javascript" src="<a href="http://maps.google.com/maps/api/js?sensor=false" rel="nofollow">http://maps.google.com/maps/api/js?sensor=false</a>"&gt;&lt;/script&gt;<br /> &lt;script type="text/javascript"&gt;<br /> function initialize() {<br /> var latitude = &lt;?php echo floatval(@$pandenRecord['latitude']); ?&gt;;<br /> var longitude = &lt;?php echo floatval(@$pandenRecord['longitude']); ?&gt;;<br /> var mapCanvasId = 'map_canvas2';<br /> if (latitude) {<br /> var mapOptions = { mapTypeId: google.maps.MapTypeId.ROADMAP };<br /> var map = new google.maps.Map(document.getElementById(mapCanvasId), mapOptions);<br /> var latLng = new google.maps.LatLng(latitude, longitude);<br /> var marker = new google.maps.Marker({map: map, position: latLng });</p>
<p>map.setCenter(latLng);<br /> map.setZoom(14);<br /> }<br /> }<br /> &lt;/script&gt;</p>
<p>&lt;body&gt;</p>
<p>&lt;body onload="initialize()"&gt;</p>
<p>&lt;?php if (@$pandenrecord['latitude']): ?&gt;<br /> &lt;div id="map_canvas2" style="width: 630px; height: 268px; float: left; margin: 0px 15px;"&gt;&lt;/div&gt;<br /> &lt;?php endif ?&gt;</p>
<p>&lt;?php if (!@$pandenrecord['latitude']): ?&gt;<br /> &lt;div style="width: 630px; height: 268px; float: left; margin: 0px 15px; border: 1px solid #000;"&gt;<br /> &lt;div style="text-align: center; padding-top: 135px"&gt;<br /> No map available!<br /> &lt;/div&gt;<br /> &lt;/div&gt;<br /> &lt;?php endif ?&gt;</p>]]></description>
          <pubDate>Wed, 13 Nov 2013 02:24:53 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2232374#post2232374</guid>
        </item>
              </channel>
    </rss>
  