|
#1
|
||||
|
||||
|
GoogleMap addon 2.0 (formerly known as JBGMAP) PP1.6 ONLY
THIS VERSION IS NOT COMPATIBLE WITH JBGMAP. IT WILL HOWEVER UPDATE EVERYTHING TO REFLECT THE NEW STRUCTURE. YOU NEED TO CHANGE YOUR TEMPLATE TAGS AND YOU CAN’T GO BACK TO THE OLD ADDON!!!! READ THE MANUAL CAREFULLY BEFORE INSTALLING!!!
THIS ADDON IS FOR PP1.6 AND HIGHER AND WILL NOT WORK ON LOWER VERSIONS (SUPPORT WILL NOT BE GIVEN FOR INSTALL AT PP1.5) What is it? GoogleMap is a robust Google Map Pixelpost addon that puts a great amount of control in your hands. And most importantly: It doesn’t matter if your images have embedded GPS data or not. The GoogleMap addon is a Pixelpost addon that allows the owner to give GPS locations to their images regardless if they have GPS equipment or not. The addon was created with the casual photographer in mind, who may or may not know much about GPS or even what it stands for! The administration side allows the owner to navigate a Google Map and manually place a marker where each picture was taken. The GPS data of this marker is stored in the Pixelpost database and processed without any sticky conversions or in-depth knowledge. Once a photo has a location, it’s ready to be shown on the main map that your viewers see. GoogleMap is based upon the jbgMap (short for Jon Bulava’s Google Map) written by Jon Bulava. Jon has done an excellent job of providing the basic structure. Since then I made several updates to his code and decided to rename the whole project to GoogleMap starting from version 2. Changelog Code:
Key: [!] Important [+] New [-] Fixed error[*] Changes Update to version 2.0: [!] Changed the name to GoogleMap addon, not compatible with the old jbgMap addon [-] Fixed another item in the save settings bug. [+] Version variable for debugging purposes. [-] Closing of certain HTML elements[*] Options stuff moved to the Options workspace and cleaned up [+] New tag for template file to move all javascript in the HEAD section [+] Latest marker is always on top of the others (e.g. added order of creation) [+] Added a possibility to use custom markers with predefined sizes [+] Newest thumbnail can be shown on map with different marker[*] Removed the small marker (is now supported by the custom markers) [+] The edit map is set to the size of the viewers map [+] Below the map a carousel is displayed, clicking on thumbnail shows info on map [+] Export feature to downloadable KML file, show custom markers in Google Earth (accesible through index.php?x=googlemap&action=kml [+] Wheelmouse and doubleclick zoom support in viewers and edit map [-] Removed postionOverview function. It seems to be doing nothing. [+] Map now shows the Google Map scale. [+] Markers can be grouped or not based on various settings Grouped marker can be default or custom. [+] Grouped markers can be displayed by default or custom icon. [+] Added tag for displaying a link to the KML file. This tag can be used on the GoogleMap template. [+] The addon can now extract GPS data from images. There are slight issues with Picassa en Earth tagging. sounds great: I want to have it! Sure, download it from: My addons page Please post any issue here in this thread. I'm quite busy but I'll look into them as soon as possible (provided you're gonna find issues, but I'm sure there are a few) Please try to read THE MANUAL, questions related to stuff in there will be answered with a gentle push to the manual.
__________________
My photoblog, powered by PixelPost 1.9 dev SVN | My Pixelpost Addons | My Cool Photoblog profile
|
|
#2
|
||||
|
||||
|
Greetings schonhose
Thanks for the update. I've changed from jbgmap to your version now following the manual. Also checked settings under admin and made sure maps are showing there, which they are so I assume everything is in order. All settings seems to have been moved over from jbgmap correctly. The new settings introduced are empty. (which seems absolutely right) I have probably missed something and the map isn't showing up on the templatepage. I have changed <body> to <body onload="GoogleMapLoad()" onunload="GUnload()"> and <GOOGLEMAP_HEADER> to the header section of my googlemap_template.html http://www.aptass.com/eyesof/index.php?x=googlemap I also get Unknown column 'icon_type_latest' in 'field list' when trying to save in the optionspage. (I'm guessing the db is not updated with all fields)
__________________
"He's so cool that when he goes to sleep, sheep count him!" ...::[ A P T A S S v5.0 - Fabulous facts and more ]::... |
|
#3
|
||||
|
||||
|
you have something strange in the javascript function causing the function not to work.
Please send me your admin_GoogleMap.php file, I believe you have an older version.
__________________
My photoblog, powered by PixelPost 1.9 dev SVN | My Pixelpost Addons | My Cool Photoblog profile
|
|
#4
|
||||
|
||||
|
Hi
I'm using what was included in the zip from your page 61212 May 17 15:25 admin_GoogleMap.php Here it is http://www.aptass.com/admin_GoogleMap.zip
__________________
"He's so cool that when he goes to sleep, sheep count him!" ...::[ A P T A S S v5.0 - Fabulous facts and more ]::... |
|
#5
|
||||
|
||||
|
Ok, when I look at your source at the page I see this somewhere along line 80
Code:
var marker = new GMarker(point, {icon:iconLatestPic,zIndexProcess<img src="./smilies/icon_eek.gif" alt="" style="border: 0;" />rderOfCreation});
Have you removed the jbgmap_addon file? Quote:
Code:
// now check if we need to update
$query = "SELECT icon_type_latest FROM {$pixelpost_db_prefix}GoogleMap LIMIT 1";
if( !mysql_query( $query ) ) {
$query = 'ALTER TABLE {$pixelpost_db_prefix}GoogleMap ADD `icon_type_latest` VARCHAR( 10 ) NOT NULL DEFAULT \'default\' AFTER `icon_type` ,'
. ' ADD `icon_size` ENUM( \'l\', \'m\', \'s\' ) NOT NULL DEFAULT \'m\' AFTER `icon_type_latest` ,'
. ' ADD `icon_size_latest` ENUM( \'l\', \'m\', \'s\' ) NOT NULL DEFAULT \'m\' AFTER `icon_size` ,'
. ' ADD `icon_size_cluster` ENUM( \'l\', \'m\', \'s\' ) NOT NULL DEFAULT \'m\' AFTER `icon_size_latest` ,'
. ' ADD `icon_custom` VARCHAR( 50 ) NOT NULL DEFAULT \'none\' AFTER `icon_size_latest` ,'
. ' ADD `icon_custom_latest` VARCHAR( 50 ) NOT NULL DEFAULT \'none\' AFTER `icon_custom` ,'
. ' ADD `icon_custom_cluster` VARCHAR( 50 ) NOT NULL DEFAULT \'none\' AFTER `icon_custom_latest` ';
mysql_query( $query );
__________________
My photoblog, powered by PixelPost 1.9 dev SVN | My Pixelpost Addons | My Cool Photoblog profile
|
|
#6
|
||||
|
||||
|
Hi
Thanks for looking into this. I've found the first part thanks to your pointer for me. It seems an old addon was messing things up. I was running Smilies converter (smilies - version 0.1.3.0) since my first install of Pixelpost and never gave it much thought. But seeing something referring to img src="./smilies/icon_eek.gif turn the lightswitch on here. I've turned off the addon and the map shows up in the googletemplate now. ![]() Yes, I have removed the jbgmap_addon from the addonsdirectory. Regarding the other issue. Yes I'm coming from jgbmap, last version I think. Installed it 2months ago perhaps I have not tried any older versions or any betas beside this. I'll check some more here, otherwise I could always manually add the missing fields. thanks once again p.s I love the support for mousewheel in googlemap. I've been missing this.
__________________
"He's so cool that when he goes to sleep, sheep count him!" ...::[ A P T A S S v5.0 - Fabulous facts and more ]::... |
|
#7
|
|||
|
|||
|
I had that same icon_type_latest error. I was upgrading to googlemap v1.6Beta at the time (now we're at 2.0), so perhaps schonhose can elaborate whether the SQL code has changed with the newer version.
Anyway, I was upgrading from one of the old versions of jbgmap and found I had to manually insert some fields. It was several days ago that I did it, but I think these were the fields I was missing. icon_type_latest VARCHAR(10) NOT NULL default 'default', icon_type_cluster VARCHAR(10) NOT NULL default 'default', image_zoom INT(2) NOT NULL default '15', show_other_locations ENUM(' checked','') NOT NULL default ' checked', clusterMarkers ENUM(' checked','') NOT NULL default '', SetMaxVisibleMarkers INT(3) NOT NULL default '100', SetMinMarkersPerCluster INT(2) NOT NULL default '10', SetMaxLinesPerInfoBox INT(2) NOT NULL default '10' Athough I added one field at a time until I stopped getting the errors. |
|
#8
|
||||
|
||||
|
aptass, before you do this please make a dump of the GoogleMap table structure. That way I can figure out why it isn't upgrading.
__________________
My photoblog, powered by PixelPost 1.9 dev SVN | My Pixelpost Addons | My Cool Photoblog profile
|
|
#9
|
|||
|
|||
|
Don't know if this helps, but I still have my old table structure saved, here's the SQL dump of the old jbgMap table. This is from jbgMap 1.0 running on PP1.5(as listed in the comments at the top of my versions php file)
Code:
--
-- Table structure for table `pixelpost_jbgMap`
--
CREATE TABLE `pixelpost_jbgMap` (
`id` int(1) NOT NULL default '0',
`user_api_key` varchar(100) NOT NULL default '',
`admin_api_key` varchar(100) NOT NULL default '',
`api_ver` int(3) NOT NULL default '2',
`icon_type` varchar(10) NOT NULL default 'default',
`map_type` int(1) NOT NULL default '0',
`info_thumb` enum(' checked','') NOT NULL default ' checked',
`info_headline` enum(' checked','') NOT NULL default ' checked',
`info_date` enum(' checked','') NOT NULL default ' checked',
`info_time` enum(' checked','') NOT NULL default '',
`info_categories` enum(' checked','') NOT NULL default '',
`user_zoom` int(2) NOT NULL default '3',
`user_center` varchar(50) NOT NULL default '(39, -94.4)',
`user_width` int(5) NOT NULL default '800',
`user_height` int(5) NOT NULL default '532',
`admin_zoom` int(2) NOT NULL default '3',
`admin_center` varchar(50) NOT NULL default '(39, -94.4)'
) TYPE=MyISAM;
|
|
#10
|
||||
|
||||
|
Ok let me check. I've added some features along the way.
Yeah my bad, I forgot to update like 5 variables for earlier versions. New install always went ok. DOWNLOAD IS UPDATED!!! same location, see first post.
__________________
My photoblog, powered by PixelPost 1.9 dev SVN | My Pixelpost Addons | My Cool Photoblog profile
Last edited by Dennis; 06-28-2007 at 09:11 PM. |
| Post Reply |
| Thread Tools | |
|
|