title: Map not showing anchor with if else
body: <p>I made two maps on the same webpage which is suppose to show only one map at a time. (eg. if my location is A then show map1, if location is B then show map2. changing maps work fine. the only problem I have right now is the anchor only appears in one map. Please help.</p>
  
  <p><strong>My Javascript</strong></p>
  
  <pre><code>&lt;script src="https://maps.googleapis.com/maps/api/js?v=3.exp&amp;sensor=false"&gt;&lt;/script&gt;
  &lt;script&gt;
      function initialize() {
          var myLatlng = new google.maps.LatLng(4.584007, 101.090027);
          var mapOptions = {
              zoom: 16,
              center: myLatlng,
              mapTypeId: google.maps.MapTypeId.ROADMAP
          }
          var map = new google.maps.Map(document.getElementById('map-canvas'), mapOptions);
  
          var myLatlng1 = new google.maps.LatLng(3.040517, 101.704167);
          var mapProp2 = {
              center: myLatlng1,
              zoom: 16,
              mapTypeId: google.maps.MapTypeId.ROADMAP
          };
          var map2 = new google.maps.Map(document.getElementById("googleMap"), mapProp2);
  
  
          var marker = new google.maps.Marker({
              position: myLatlng,
              map: map,
              title: 'Location'
          });
          var marker1 = new google.maps.Marker({
              position: myLatlng1,
              map: map2,
              title: 'Location'
          });
      }
  
      google.maps.event.addDomListener(window, 'load', initialize);
  
  &lt;/script&gt;
  &lt;script&gt;
      var originalNavClasses;
  
      function toggleNav() {
          var elem = document.getElementById('navigation_list');
          var classes = elem.className;
          if (originalNavClasses === undefined) {
              originalNavClasses = classes;
          }
          elem.className = /expanded/.test(classes) ? originalNavClasses : originalNavClasses + ' expanded';
      }
  &lt;/script&gt;
  </code></pre>
  
  <p><strong>My If.. Else Statement</strong></p>
  
  <pre><code>%If Request.QueryString("location") = "A" Then %&gt;
          &lt;a href="geo:http://maps.google.com/?q=3.040517,101.704167,15z"&gt;&lt;img src="img/button_directions.png" border="0" /&gt;&lt;/a&gt;
          &lt;%Else %&gt;
          &lt;a href="geo:http://maps.google.com/?q=4.584007,101.090027,15z"&gt;&lt;img src="img/button_directions.png" border="0" /&gt;&lt;/a&gt; 
          &lt;%End If%&gt;
  </code></pre>