Needs work
Project:
exif2gmap
Version:
6.x-1.1
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
20 Dec 2008 at 02:13 UTC
Updated:
20 Jan 2009 at 12:16 UTC
Hi,
I've just taken a quick look at this module and I think its really cool.
I was wondering if you have considered adding some for of API into the code? I have a series of photographs that I would like on a google map, however I do not have them in a content area (thus the filter is not use to me), but rather in a custom database table.
It would be good if I could call a theme function, passing in an array of photos and receive the code to render the map.
eg.
$photos = array(
array(
'path' => 'my path',
'long' => 'long',
'lat' => 'lat',
'url' => 'destination url'
),
array(
'path' => 'my path',
'long' => 'long',
'lat' => 'lat',
'url' => 'destination url'
),
);
echo theme('exif2gmap', $photos);
lat and long could be optional. If supplied, map the photo at these points, if not supplied, calculate from the exif data.
let me know if you need a hand or want me so have a crack at some code.
Comments
Comment #1
iktaka commentedIt seems not so difficult to add requested funtion.
I‘ll take a look.
Comment #2
iktaka commentedBeta version of theme api is added.
Please try CVS source.
Comment #3
aaron1234nz commentedThanks,
I've checked it out from cvs and will try it out sometime this week.
Aaron
Comment #4
aaron1234nz commentedI checked out the version from the DRUPAL-6--1 branch head
Line 407 should be isset() rather then isnull()
The return function on line 431 does not exist (exif2gmap_male_gmapcode)
Comment #5
iktaka commentedThank you for your advice.
The typoes are fixed :-)
The function returns array which includes javascript head, body, and html.