Hello,
I needed this for my own projet but i think somebody else can use this first version.
The code:
http://pastebin.com/f2c4f0981
The concept is simple you drag the icon over the map release it and save it and you are done, next version will include address finding etc.
But for now.
1. Create a file in ./pe-admin/fields/gmap.field.php
2. Create a table like this one
CREATE TABLE `gmap` (`id` int(11) NOT NULL auto_increment,
`title_gmap` varchar(255) NOT NULL,
`lt` varchar(25) NOT NULL,
`lg` varchar(25) NOT NULL,
PRIMARY KEY (`id`));
3. Create a google key on:
http://code.google.com/apis/maps/signup.html
4. Add the following to /pe-admin/library/settings.lib.php
$settings['gmap']['key'] = 'ABQIAAAAjI7F-dN0SmXFYVSdiFywVRTwzUR6sOX8Sp1N2ytbs7haf2_-qBS6NFTbhhxgL04Z8fm3xHP15lUYmA';
$settings['gmap']['lat'] = '52.0946950569013';
$settings['gmap']['lng'] = '5.1230621337890625';
The lt and lg are the start coordinates for every new entry
5. And now you need to do some extra hacking to get it working. Open pe-admin/modules/entrview.module.php
and change row 12:$entry = $Db->fetch_row($getEntry); into $entry = $Db->fetch_array($getEntry);
Now it should work.
greetings Gijs
This is really cool! I look forward to seeing more updates on it, great work!
PureEdit gets more and more powerful
Great, It will be great that become included in pureedit new releases
Sorry for the plug but i created my own pureedit build with this option build in
1 to 5 of 5