XML Hotel Interface for Affiliates
 

V2 FAQ'S
About

Client Login

Email:

Password:


Server Check
Systems Requirements
 
 



Search:     Advanced search
Browse by category:
Glossary | Ask question



I want to replace the maps with Google maps can this be done
Views: 533
This feature is not build in or supported, but information on how to do this can be found at Google Smarty API

If you download the Google PHP API

Add the following to your hotelmap.php file to get the variables in your template
Keep in mind that this will not work on hotels that don't have a longitude and latitude, you will have to use
the addMarkerByAddress function.

$map = new GoogleMapAPI('map');
$map->setAPIKey('your google api string');
$map->setWidth('400px');
$map->setControlSize = 'small';
$map->disableDirections();
$map->disableZoomEncompass();

$smarty->assign("GoogleMaps","Y");
$dLongitude = $hotelinfo["response"]["generalinfo"]["longitude"];
$dLatitude = $hotelinfo["response"]["generalinfo"]["latitude"];

$smarty->assign("Google_HeaderJS",$map->printHeaderJS());
$smarty->assign("Google_MapJS",$map->printMapJS());
$smarty->assign("Google_Map",$map->printMap());
$smarty->assign("Google_Sidebar",$map->printSidebar());

Then place the following in your template header
    <!--{$Google_HeaderJS}-->
    <!--{$Google_MapJS}-->
   <!-- necessary for google maps polyline drawing in IE -->
  <style type="text/css"> v\:*
   { behavior:url(#default#VML); }
  </style>
 The the following were you want the map to display

    <table width="100%" cellpadding="0">
                <tr><td><!--{$Google_Map}--> </td><td><!--{$Google_Sidebar}--></td></tr>
     </table>



Other questions in this category
How do I change the way my links look




©Copyright XML Systems Inc. 2006. All Rights Reserved.