Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
google maps plugin
We have a new version of Google Map Plugin!

I updated the main post. There you can see the new features and information.

enjoy it
Reply
Thanks for your job !

There's a bug when including a link in the balloon tip, the url isn't correct :

http://mysite.com/\\"http://mylink/\\"

must be :
http://mylink

GS3.1

french translation :
Reply
didou038 Wrote:There's a bug when including a link in the balloon tip, the url isn't correct :

http://mysite.com/\\"http://mylink/\\"

must be :
http://mylink

hi, didou

thanks for report the bug.

I added links in the ballon but not find any bug..
Can you post the entire content of ballon?

The content must be in html.. ( <a href="http://mylink">my link</a> )

Thanks you for french translation. I Will include it in the plugin. Smile
Reply
Thx for the Plugin , but i have a problem .

If i want to save changes or "add a new map" and i try to save this , i get the following error:

Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in /htdocs/folder/plugins/googlemap.php:737 Stack trace: #0 /htdocs/folder/plugins/googlemap.php(737): SimpleXMLElement->__construct('<?xml version="...') #1 [internal function]: gmap_show_config() #2 /htdocs/folder/admin/load.php(38): call_user_func_array('gmap_show_confi...', Array) #3 {main} thrown in /htdocs/folder/plugins/googlemap.php on line 737

any ideas ?

regards schning
Reply
singulae Wrote:
didou038 Wrote:There's a bug when including a link in the balloon tip, the url isn't correct :

http://mysite.com/\\"http://mylink/\\"

must be :
http://mylink

hi, didou

thanks for report the bug.

I added links in the ballon but not find any bug..
Can you post the entire content of ballon?

The content must be in html.. ( <a href="http://mylink">my link</a> )

Thanks you for french translation. I Will include it in the plugin. Smile

this is my fault, I did not write the link as html.

Thanks you ! Wink
Reply
schning Wrote:Thx for the Plugin , but i have a problem .

If i want to save changes or "add a new map" and i try to save this , i get the following error:

Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in /htdocs/folder/plugins/googlemap.php:737 Stack trace: #0 /htdocs/folder/plugins/googlemap.php(737): SimpleXMLElement->__construct('<?xml version="...') #1 [internal function]: gmap_show_config() #2 /htdocs/folder/admin/load.php(38): call_user_func_array('gmap_show_confi...', Array) #3 {main} thrown in /htdocs/folder/plugins/googlemap.php on line 737

any ideas ?

regards schning


mm.. if you've updated the plugin.. try deleting the xml file of the previous version (data/other/googlemap.xml)

Remember that the plugin works with getsimple 3.0 and 3.1, not in earlier versions.

Can you post the data of you map? may have problems with characters ..
Reply
singulae Wrote:mm.. if you've updated the plugin.. try deleting the xml file of the previous version (data/other/googlemap.xml)

Remember that the plugin works with getsimple 3.0 and 3.1, not in earlier versions.

Can you post the data of you map? may have problems with characters ..

thx for your reply, i installed gs3.1 new after it i installed your plugin and do an upgrade2.0...

but the problem is the same , if i want to save (only change in your Address window "Granollers, Barcelona, Spain" ) to "Berlin" get the message :

Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in /htdocs/folder/plugins/googlemap.php:737 Stack trace: #0 /htdocs/folder/plugins/googlemap.php(737): SimpleXMLElement->__construct('<?xml version="...') #1 [internal function]: gmap_show_config() #2 /htdocs/folder/admin/load.php(38): call_user_func_array('gmap_show_confi...', Array) #3 {main} thrown in /htdocs/folder/plugins/googlemap.php on line 737
Reply
Hi there!
I used the older version of this plugin on an existing website, v. 0.7 & all of a sudden out of nowhere it stopped working.
So I found out that there was an update for the plugin.
I removed the older googlemap.xml-file.
Now I have installed the new version, v. 2.0 but there are still no map displayed. Instead it just shows the tag (%googlemap:myMap%) as text on that page.
Below are what I have in the xml-file:
Code:
<?xml version="1.0" encoding="ISO-8859-15"?>
<maps><map><id><![CDATA[myMap]]></id><width><![CDATA[700]]></width><height><![CDATA[400]]></height><address><![CDATA[Aspvägen 26 B 191 41 Sollentuna]]></address><zoom><![CDATA[15]]></zoom><maptype><![CDATA[ROADMAP]]></maptype><image><![CDATA[]]></image><imagepos><![CDATA[]]></imagepos><shadow><![CDATA[]]></shadow><shadowpos><![CDATA[left-bot]]></shadowpos><infotxt><![CDATA[<p><b>OKAI AB</b>

Aspvägen 26 B

191 41 Sollentuna

</p>]]></infotxt><popup><![CDATA[1]]></popup><icon_image_img><![CDATA[]]></icon_image_img><icon_image_pos><![CDATA[cent-bot]]></icon_image_pos><icon_shadow_img><![CDATA[]]></icon_shadow_img><icon_shadowpos><![CDATA[left-bot]]></icon_shadowpos><controls_pan><![CDATA[1]]></controls_pan><controls_zoom><![CDATA[1]]></controls_zoom><controls_mtype><![CDATA[1]]></controls_mtype><controls_scale><![CDATA[1]]></controls_scale><controls_streetv><![CDATA[1]]></controls_streetv></map></maps>
I've also inluded a screenshoot of my plugin settings below...
Any idea what's going on?
Best, Niklas
Reply
Hmmm...so I've managed to figure out what the problem is.
It seems that this plugin won't work unless you're using the theme tag
Code:
<?php get_header(); ?>
or it seems that it needs any of the meta tags that this theme tag creates to display the map.
I have a theme where I don't use this tag - instead I create my own meta description and no more.
Have I missunderstood something here as to how this plugin works..?
I will look into more of this tomorrow - now I need to go to sleep. Smile
It seems as the older plugin must have this tag as well - I removed the themetag in favour of creating my own meta tags & that's when it stopped working all together. Since the
Code:
<?php get_header(); ?>
isn't required in any theme then maybe this should be mentioned in the manual or fixed at some time. Thanks for a nice plugin!

Best, Niklas

widecircle Wrote:Hi there!
I used the older version of this plugin on an existing website, v. 0.7 & all of a sudden out of nowhere it stopped working.
So I found out that there was an update for the plugin.
I removed the older googlemap.xml-file.
Now I have installed the new version, v. 2.0 but there are still no map displayed. Instead it just shows the tag (%googlemap:myMap%) as text on that page.
Below are what I have in the xml-file:
Code:
<?xml version="1.0" encoding="ISO-8859-15"?>
<maps><map><id><![CDATA[myMap]]></id><width><![CDATA[700]]></width><height><![CDATA[400]]></height><address><![CDATA[Aspvägen 26 B 191 41 Sollentuna]]></address><zoom><![CDATA[15]]></zoom><maptype><![CDATA[ROADMAP]]></maptype><image><![CDATA[]]></image><imagepos><![CDATA[]]></imagepos><shadow><![CDATA[]]></shadow><shadowpos><![CDATA[left-bot]]></shadowpos><infotxt><![CDATA[<p><b>OKAI AB</b>

Aspvägen 26 B

191 41 Sollentuna

</p>]]></infotxt><popup><![CDATA[1]]></popup><icon_image_img><![CDATA[]]></icon_image_img><icon_image_pos><![CDATA[cent-bot]]></icon_image_pos><icon_shadow_img><![CDATA[]]></icon_shadow_img><icon_shadowpos><![CDATA[left-bot]]></icon_shadowpos><controls_pan><![CDATA[1]]></controls_pan><controls_zoom><![CDATA[1]]></controls_zoom><controls_mtype><![CDATA[1]]></controls_mtype><controls_scale><![CDATA[1]]></controls_scale><controls_streetv><![CDATA[1]]></controls_streetv></map></maps>
I've also inluded a screenshoot of my plugin settings below...
Any idea what's going on?
Best, Niklas
Reply
schning Wrote:thx for your reply, i installed gs3.1 new after it i installed your plugin and do an upgrade2.0...

please check the output of the server's health check
any problems noted there?
|--

Das deutschsprachige GetSimple-(Unter-)Forum:   http://get-simple.info/forums/forumdisplay.php?fid=18
Reply
you can always use a "standalone"-map-solution (have a look at hotscripts.org for example) and integrate the output in GetSimple
|--

Das deutschsprachige GetSimple-(Unter-)Forum:   http://get-simple.info/forums/forumdisplay.php?fid=18
Reply
Fantastic Plugin!

This is the reason I love GS so much, great plugin and simple to use.

I have a request though :-D

I am using your plugin on a responsive site, and would like the map to be responsive. Looks like someone solved the problem, but I am not sure how to implement it with your plugin.

Could you have a look at this script and see if this would be easy to do?

http://joggink.com/wp-content/uploads/jq...bilegmaps/

Built in responsiveness would be great for your next update, if you are taking requests.

Either way, thanks again for a great plugin.
Reply
Great plugin, and I really need the multi-map feature, but it seems to break any other plugin using jquiry, most importantly the gallery.

I have tied adding jquiry to the header to load first and remove it from auto load with the map and doing the same with the other plugins, but nothing seems to work.

The previous version plays happy with everyone, but lacks the ability to load more than one map.

Anyone have experience/ideas of how to solve this?


GS Community Edition with php8.x compatibility, new features and much more!  Support Me


Reply
Okay, to get this to play nicely with other plug-ins, such as i18n Gallery, make the following edits to "plugins/googlemap.php":

Lines 90-103
Code:
. "\n".'//<![CDATA['
                    . "\n".' if (typeof jQuery == "undefined") {'
                    . "\n".'  document.writeln(\'<script type="text\/javascript" language="javascript" src="http://code.jquery.com/jquery-1.6.1.min.js"><\/script>\');'
                    . "\n".' };'
                    . "\n".' [js]'
                    . "\n".'//]]>'    
                    . "\n".'</script>'
                    . "\n".'<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>'    
                    . "\n".'<script type="text/javascript" src="'.$SITEURL.'plugins/googlemap/js/jquery.gomap-1.3.2.min.js"></script>'
                    . "\n".'<script language="javascript" type="text/javascript">'
                    . "\n".'//<![CDATA['
                    . "\n".' $jQ = jQuery.noConflict();'
                    . "\n".' $jQ(document).ready(function()'
                    . "\n".' {'

to...
Code:
. "\n".' [js]'
                    . "\n".'</script>'
                    . "\n".'<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>'    
                    . "\n".'<script type="text/javascript" src="'.$SITEURL.'plugins/googlemap/js/jquery.gomap-1.3.2.min.js"></script>'
                    . "\n".'<script language="javascript" type="text/javascript">'
                    . "\n".'//<![CDATA['
                    . "\n".' $(function()'


and line 301
Code:
."\n".'  $jQ("#gmap_'.$gmap_config[$i]['id'].'").css({"width":'.$gmap_config[$i]['width'].',"height":'.$gmap_config[$i]['height'].'}).goMap(ops_'.(string)$gmap_config[$i]['id'].');';

to...
Code:
."\n".'  $("#gmap_'.$gmap_config[$i]['id'].'").css({"width":'.$gmap_config[$i]['width'].',"height":'.$gmap_config[$i]['height'].'}).goMap(ops_'.(string)$gmap_config[$i]['id'].');';

Depending on the setup, you may need to disable jquiry in the gallery and add it to the header of your template.
I hope this helps someone else too, it seems to work well for me.


GS Community Edition with php8.x compatibility, new features and much more!  Support Me


Reply
Excellent plugin!!! Thanks for this. However, how do I centralise this in my content area? Please could you explain or give an example as I'm a newbie! Thanks
Reply
didou038 Wrote:Thanks for your job !

There's a bug when including a link in the balloon tip, the url isn't correct :

http://mysite.com/\\"http://mylink/\\"

must be :
http://mylink

GS3.1

Same problem here.

After saving it look like this:
<a href=\"http://www.webseite.de\" target=\"_blank\">www.webseite.de</a>

At the Website it shows the right Link in the ballon tipp, but you will get a 404 when click on it.

If you save again after some changes, there will be more backslashes:

<a href=\\\"http://www.webseite.de\\\" target=\\\"_blank\\\">www.webseite.de</a>

Leave the field empty will cause this error: the ballon tipp is still displayed, but with [object Object] as entry.
Reply
Hi! Thanks for the work! Just that I have slight problems with the plugin. When I add another marker to google map, all markers disappear. 2 or more balloon tips work though, when I press (show the balloon tip,..) I `ve done upgrade to 3.1.1, upgrated all plugins and done healthy check. Can´t see any problem there.
Reply
This seems to be a plugin problem in general, not specific to 3.1.1.
It looks to be a problem with the axis image position not saving.


GS Community Edition with php8.x compatibility, new features and much more!  Support Me


Reply
student Wrote:Hi! Thanks for the work! Just that I have slight problems with the plugin. When I add another marker to google map, all markers disappear. 2 or more balloon tips work though, when I press (show the balloon tip,..) I `ve done upgrade to 3.1.1, upgrated all plugins and done healthy check. Can´t see any problem there.

Here is what I did to fix this problem:

First, you need to have both an image and shadow, if you are missing one of these, it will break all icons.
Next, as I mentioned above, the axis alignment doesnt seem to work, so what I did was, in "plugins/googlemap.php", change line 773 from
Code:
'imagepos'    => (isset($_POST["gmap_anchor_$nom"][$z]['imagepos'])) ? $_POST["gmap_anchor_$nom"][$z]['imagepos'] : 0 ,
to
Code:
'imagepos'    => (isset($_POST["gmap_anchor_$nom"][$z]['imagepos'])) ? $_POST["gmap_anchor_$nom"][$z]['imagepos'] : "cent-bot" ,

and line 775 from:
Code:
'shadowpos'    => (isset($_POST["gmap_anchor_$nom"][$z]['shadowpos'])) ? $_POST["gmap_anchor_$nom"][$z]['shadowpos'] : 0,
to
Code:
'shadowpos'    => (isset($_POST["gmap_anchor_$nom"][$z]['shadowpos'])) ? $_POST["gmap_anchor_$nom"][$z]['shadowpos'] : "left-bot" ,

To set a default axis position for both.
Hope this helps


GS Community Edition with php8.x compatibility, new features and much more!  Support Me


Reply
islander Wrote:
student Wrote:Hi! Thanks for the work! Just that I have slight problems with the plugin. When I add another marker to google map, all markers disappear. 2 or more balloon tips work though, when I press (show the balloon tip,..) I `ve done upgrade to 3.1.1, upgrated all plugins and done healthy check. Can´t see any problem there.

Here is what I did to fix this problem:

First, you need to have both an image and shadow, if you are missing one of these, it will break all icons.
Next, as I mentioned above, the axis alignment doesnt seem to work, so what I did was, in "plugins/googlemap.php", change line 773 from
Code:
'imagepos'    => (isset($_POST["gmap_anchor_$nom"][$z]['imagepos'])) ? $_POST["gmap_anchor_$nom"][$z]['imagepos'] : 0 ,
to
Code:
'imagepos'    => (isset($_POST["gmap_anchor_$nom"][$z]['imagepos'])) ? $_POST["gmap_anchor_$nom"][$z]['imagepos'] : "cent-bot" ,

and line 775 from:
Code:
'shadowpos'    => (isset($_POST["gmap_anchor_$nom"][$z]['shadowpos'])) ? $_POST["gmap_anchor_$nom"][$z]['shadowpos'] : 0,
to
Code:
'shadowpos'    => (isset($_POST["gmap_anchor_$nom"][$z]['shadowpos'])) ? $_POST["gmap_anchor_$nom"][$z]['shadowpos'] : "left-bot" ,

To set a default axis position for both.
Hope this helps

Thank you very much! The plugin works perfectly now! Smile
Reply
sorry,. now I noticed that this does not work with firefox. I can´t see any markers. Any advice for that? grateful for any help!

PS: edited by Connie, I took off the once again repeated posting by Islander, as there is no sense for that
Reply
Hello,
I have a problem, that this plugin loads only a part of the map and when I zoom out or move, it does not start to load the rest of the map, see attached printscreen.
Thanks for help.
Reply
lnc Wrote:Hello,
I have a problem, that this plugin loads only a part of the map and when I zoom out or move, it does not start to load the rest of the map, see attached printscreen.
Thanks for help.

I get this every great once in a while, but it is not specific to this program. It has to do with the connection to Google. It is not able to read/load all parts for what ever reason. Try again later.


GS Community Edition with php8.x compatibility, new features and much more!  Support Me


Reply
First of all, thanks for the great work on this plugin.

Im wondering if its possible to load the script separately without needing to use the whole script? Since i'm trying to integrate it with Jquery Mobile, it needs to load this before loading the page with ajax.

"<script language="javascript" type="text/javascript">
//<![CDATA[
$jQ = jQuery.noConflict();
$jQ(document).bind("pageinit", function()
{

// idmap: myMap
var ops_myMap = {
...."

If i add the whole loaded script i can get it to work, but is it possible to load it with a special code to get the information from the Google Maps XML?
Reply
Hi there,
I just installed a clean version of Simple Get (3.1.2). Added the I18N-gallery plugin, so var so good, and then installed the Google Maps plugin. Both great plugins! But not all the pop-up's in the gallery work anymore.

Only after that I've gedisabled google plugin in the plugin tab, the pop-up windows of the gallery start working again.

Tested:
cylce (works just fine)
prettyPhoto (pop-up not working)
FancyBox (pop-ups not working)
s3Slider (not working)
Supersized (works just fine)
Reply




Users browsing this thread: 2 Guest(s)