Hi,

first sorry about my bad english.
my googlemap api dont work.
I receive this message, but is not right because i have generate a key
for my domain.
Below are the code.
could someone help me, please?

Thanks

-----------------------------------------------------------------------------------------------------
# * FILE: /includes/views/view_google_maps.php
        #
----------------------------------------------------------------------------------------------------

        $google_maps = "";

        #
----------------------------------------------------------------------------------------------------
        # * VALIDATION
        #
----------------------------------------------------------------------------------------------------

        $googleSettingObj = new GoogleSettings(GOOGLE_MAPS_SETTING);
        if ($googleSettingObj->getString("value")) {


                $googleMapsKey = "ABQIAAAAXsGH7Y0mWbBqIxYTcfF4OxTBaK2t-
ec3bIwYl6utTSNy3DwGPRQEPLb-ss43F558OkGPu5QnYNM-yg";

                $google_maps = "<div class=\"googleMapsWrapper\">\n";

                $google_maps .= "<script src=\"http://maps.google.com/maps?
file=api&amp;v=2&amp;key=ABQIAAAAXsGH7Y0mWbBqIxYTcfF4OxTBaK2t-
ec3bIwYl6utTSNy3DwGPRQEPLb-ss43F558OkGPu5QnYNM-yg".(($googleMapsKey) ?
$googleMapsKey : $googleSettingObj->getString("value"))."\" type=
\"text/javascript\"></script>";
                $google_maps .= "<script 
src=\"".DEFAULT_URL."/scripts/googlemaps.js
\" language=\"javascript\" type=\"text/javascript\"></script>";
                $google_maps .= "<div id=\"float_layer\" class=\"floatLayer\"></
div>";
                $google_maps .= "<input type=\"hidden\" id=\"gm_image_path\" 
value=
\"".DEFAULT_URL."/images\" />";

                $img_html = "";
                $imageObj = new Image($google_image_id);
                if ($imageObj->imageExists()) {
                        $img_tag = $imageObj->getTag(true, 
GOOGLE_MAPS_IMAGE_WIDTH,
GOOGLE_MAPS_IMAGE_HEIGHT, $google_title);
                        $img_html .= "";
                        $img_html .= $img_tag;
                        $img_html .= "";
                }

                $html = "";
                if ($show_html) {
                        $html .= "<blockquote>";
                        $html .= "";
                        if ($img_html) {
                                $html .= $img_html;
                        }
                        $html .= "";
                        $html .= "<h1>";
                        $html .= $google_title;
                        $html .= "</h1>";
                        $html .= "<p>";
                        $html .= $google_phone;
                        $html .= "<br />";
                        $html .= "";
                        $html .= $google_address.(($google_address2) ? "<br />".
$google_address2 : "");
                        $html .= "<br />";
                        $html .= "";
                        $html .= $google_location;
                        $html .= "</p>";
                        $html .= "";
                        $html .= "</blockquote>";
                        $html .= "<br class=\"clear\" />";
                }

                $googlelocation = "";
                if ($google_maptuning) {
                        $googlelocation = $google_maptuning;
                } elseif ($google_address && $google_zipcode) {
                        $googlelocation = $google_address.", ".$google_zipcode;
                } else {
                        $googlelocation = $google_location_showaddress;
                }

                $google_maps .= "
                        <script type=\"text/javascript\">
                                function loadMap(){
                                        GMaps_load();
                                        
Gmaps_showAddress('".addslashes($googlelocation)."', '".addslashes
($html)."', '".GOOGLE_MAPS_DEBUG."');
                                }
                                window.onload = loadMap;
                                window.onunload = GUnload;
                        </script>
                        ";

                $google_maps .= "<div id=\"map\" class=\"googleBase\">&nbsp;</
div><br class=\"clear\" />";

        } else {
                $googleMaps_message = "<p 
class=\"errorMessage\">".system_showText
(LANG_GOOGLEMAPS_NOTAVAILABLE_CONTACTADM)."</p>";
        }

        $google_maps .= "<div id=\"map_error\" style=\"display: ".
(($googleMaps_message) ? "block" : "none").";\">".
$googleMaps_message."</div>";

        $google_maps .= "\n</div>";

---------------------------------------------------------------------------------------------------------------

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to