About Bryse

Hello, I am Bryse and what I do is create websites!
If you are searching for somebody to tackle your requests then take a look around mine. If you are unsure about something please don’t hesitate to ask. Contacting me is easy and you can find out how by visiting my contact page for more information. I would be glad to assist you. To the left you can see a scrolling showcase of websites that I take pride in creating. Hover over the display to pause it and click to visit that site. For more samples click Portfolio at the top. Below my showcase, you will find my self-evaluations. The evaluations are web technologies, which I am capable of delivering to a website for you. Hover over the acronyms for an explanation of what it is.

Portfolio Slideshow

AskKuz Chota Marketing Group Clan Carnage MitSora myCheapVegas Ne Plus Ultra Saitei Subs Waking the Fallen

Latest Article

Google AJAX Map API


Want to include a map directly on your site? The solu­tion is rather easy using the Google AJAX Map API.

To use the Google AJAX Map API we’ll first include the JS (JavaScript) file to make it possible.

<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>

We can include that JS file any­where on your page as long as it’s valid markup. Along with that we’re going to use some helper JS func­tions to make things easier.

  var geocoder;
  var map;
  var hide = false;
  function initialize() 
  {
      geocoder = new google.maps.Geocoder();
      var latlng = new google.maps.LatLng(-34.397, 150.644);
      var myOptions = {
        zoom: 15,
        center: latlng,
        mapTypeId: google.maps.MapTypeId.ROADMAP
      }
      map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
  }

  function codeAddress(map_loc) {
    if(document.getElementById('map_canvas').style.display == '')
    {
      document.getElementById('map_canvas').style.display = 'none';
      hide = true;
    }
    else
    {
      if(hide == false)
      {
        initialize();
        var address = map_loc;
        if (geocoder) {
          document.getElementById('map_canvas').style.display = '';
          geocoder.geocode( { 'address': address}, function(results, status) {
            if (status == google.maps.GeocoderStatus.OK) {
              map.setCenter(results[0].geometry.location);
              var marker = new google.maps.Marker({
                  map: map, 
                  position: results[0].geometry.location
              });
            } else {
              alert("Geocode was not successful for the following reason: " + status);
            }
          });
        }
      }
      else
      {
        document.getElementById('map_canvas').style.display = '';  
      }
    }
  }

These helper func­tions will allow us to take a reg­u­lar address and use them in the Google AJAX Map API. With all that behind us let’s get to the sim­ple code dis­play our map.

<a href="javascript:codeAddress('3730 Las Vegas Blvd S, Las Vegas, NV 89109');">3730 Las Vegas Blvd S, Las Vegas, NV 89109 (Map)</a>
<div id="map_canvas" style="width: 100%;height:480px;display:none;"></div>

Lets see how it looks by click­ing the fol­low­ing link: 3730 Las Vegas Blvd S, Las Vegas, NV 89109 (Map)

That is all!

Posted in AJAX, JavaScript, Tutorial, Uncategorized | Tagged , , , , | 1 Comment

Powered by WordPress; Theme by Bryse Meijer.