I had a map that was working.  I think something changed on GoogleMaps
API to make this not work anymore but I don't know what. I do get a
map but it doesn't plot any points.
 There are two functions involved from EasyGoogleMapClass.  Do you see
anything that might have changed for example, the url?  I would
appreciate any ideas. Here is my map url.  I am getting a map but the
points aren't being plotted.  I have no idea if you can access this
url because it is local but here goes.
http://192.168.1.40/~jlrough/workspace/soliant/googlemaparray.php


        /**
         * @desc:       Generate JS for Map Key (static)
         * @access: public
         * @return: string
         */
        function GmapsKey() {
                return "<script type=\"text/javascript\" src=\"http://
maps.google.com/maps?file=api&v=2&key={$this->mMapKey}\"></script>
\n";
        } # end function

        /**
         * @desc:       Generate Links for Multiple Addresses (static)
         * @access: public
         * @return: string
         */

function EasyGoogleMap($mapKey) {
                $this->mMapKey = $mapKey;
                $this->SetMapWidth();
                $this->SetMapHeight();
                $this->SetMapZoom();
                $this->SetMarkerIconColor();
                $this->SetMarkerIconStyle();
                $this->SetMapControl();
                $this->mIndex = -1;
        } # end function

If you want to see my php page you can. I don't know if that helps.
I could let you see the EasyGoogleMapClass but I believe it is in
these two functions.

tnx,
--Janis



-----------------------------
<?php

/*      File Name: googlemaparray.php */
require 'EasyGoogleMap.class.php';

//Google Maps API Key
$googlemaps_api_key =
"ABQIAAAA9Bwvj_jq9ffNHGrXz9VO7xQPxGcdF72SVlSfYZIQ5koVM_XWJhQMyka3b3kohGgNMOxl3gJMRbA4vA";

//Get the ‘addr’ parameter from the GET request
$addrarray = $_GET['addr'];
$addrarray = stripslashes($addrarray);

$addrarray = unserialize($addrarray);
var_dump($addrarray);
echo "unserialized"."\n\n";

$gm = & new EasyGoogleMap($googlemaps_api_key);

# Set address point(s)
foreach( $addrarray as $key => $value){
$gm->SetAddress($value);
$gm->SetInfoWindowText("This is a Test.");

}

# To Enable/Disable Map Type (Map/Satellite/Hybrid)
$gm->mMapType = TRUE;

# Set map size
$gm->SetMapWidth('700');
$gm->SetMapHeight('500');

# Set map zoom
$gm->SetMapZoom(8);

# Set IconSTyle & Color
$gm->SetMarkerIconStyle('FLAG');
$gm->SetMarkerIconColor('GRANITE_PINE');
?>
<html>
<head>
<title>Google Map Array API Example</title>
<?php echo $gm->GmapsKey(); ?>
var_dump($gm);
echo "gmapskey"."\n\n";
</head>
<body>
<center>
<?php
echo $gm->MapHolder();
echo $gm->InitJs();
echo $gm->UnloadMap();
?>
--~--~---------~--~----~------------~-------~--~----~
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