Hi there,
Anyone out there playing with Uncle Cheese's Mappable Module?
I'm having problems getting it to work, the chances are it's my total lack of understanding :o)
I'm not getting any errors i'm just getting nothing, so i'm guessing that the module isn't actually being called. I have set it up using the instructions on UC's website although i didn't fully understand all the concepts being discussed. I have a page called MemberProfile.php and in that is
class MemberProfile extends DataObject implements Mappable {
static $db = array (
'Lat' => 'Varchar',
'Lon' => 'Varchar',
'Type' => "Enum('Station,Contact-Point')"
);
public function getLatitude() {
return $this->Lat;
}
public function getLongitude() {
return $this->Lon;
}
public function getMapContent() {
return GoogleMapUtil::sanitize($this->renderWith('MapBubbleMember'));
}
public function getMapCategory() {
return $this->Type;
}
public function getMapPin() {
return $this->Type."_pin.png";
}
}
I have dev/build and flushed the site.
i have a Google api key set in my site _config.php file
Using modelAdmin i have entered some lat and longs into the database.
On a page i have used the code $MemberProfile.GoogleMap to call the map but nothing appears and no errors anywhere i can see.
I'm guessing there is something major i need to do but i'm just not sure what it is.
Any help would be appreciated.
Cheers
Mick