GoogleMaps Module [NEW VERSION 3.0, 2009-02-22]

Get help with installation and running official modules for phpwcms here. Please do not post bug reports or feature requests here.
User avatar
balbi21
Posts: 68
Joined: Mon 18. Jun 2007, 10:11
Location: Bad Schwartau
Contact:

Re: GoogleMaps Module [New Version]

Post by balbi21 »

Thank you for this really great module,

one question:
if i include a map with your module, the german translation of the google-Items and Hints/Tooltips ("vergrößern", "Gelände", "Straße", etc) seems to be corrupted (ö,ä,ü,ß aren't displyed correctly).
(e.g. http://www.janina-arpa.de/Anfahrt.phtml)

The german google-Map-Site (e.g. http://maps.google.de/maps?hl=de&tab=wl) doesn't seem to have this problem?

Are there some setting (charset, header, etc.) i can influence to change this behavioiur?

Best regards,
Bjoern
Never argue with an idiot. They bring you down to their level and beat you with experience.
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Re: GoogleMaps Module [New Version]

Post by flip-flop »

Mhh, looking to your site for me it´s all ok.

Knut
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
User avatar
balbi21
Posts: 68
Joined: Mon 18. Jun 2007, 10:11
Location: Bad Schwartau
Contact:

Re: GoogleMaps Module [New Version]

Post by balbi21 »

Ok - it seems to be an "InternetExplorer" <-> charset problem...

Firefox doesn't have this problem - i think.

GoogleMaps uses utf-8 encoding in its object and sets the charset only for this object to utf-8 -
This is correct and firefox interprets this correctly and displays the german chars ...

The phpwcms-Site itself sets a defaut charset
$phpwcms['charset'] = 'iso-8859-1'; //default charset 'iso-8859-1'

and the Internet-Explorer seems not to interpret object-dependend charsets but encodes all objects with the first set default site-charset. So the map in IE7 will be interpreted also in iso and so the german chars are misinterpreted...

Does anybody know, how to changes charset in IE only for a part of the html-code?
If you change the default-charset in the config to utf-8, the map will be shown okay - but the rest of the site (encoded in the database with latin-1/iso) will be corrupt :-(


BTW:
Is there any possibility to zoom the map automatically depending on the choosen categories?
(if you have 3 marker-categories and deselect one, than the zooming/scrolling will reposition the map to fit the staying two categories?)

Best regards,
Bjoern
Never argue with an idiot. They bring you down to their level and beat you with experience.
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Re: GoogleMaps Module [New Version]

Post by flip-flop »

Ah yes I see. IE doesn´t do it in the right way.

I don´t know a solution. In this case one for me would be a site converting to utf-8.

Knut
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
zuker
Posts: 80
Joined: Fri 18. May 2007, 17:13
Location: Lithuania

Re: GoogleMaps Module [New Version]

Post by zuker »

I have problem with new Google Maps module.
Installation was successful, I have created map points, but when I’m trying to add a new map to my website I can’t find and select 'plug-in; Google Maps' from the content types list. There is no 'plug-in; Google Maps' in the CP list.

Image
٩(͡๏̯͡๏)۶
breitsch
Posts: 473
Joined: Sun 6. Mar 2005, 23:12
Location: bern switzerland

Re: GoogleMaps Module [New Version]

Post by breitsch »

did you restrict cp's in admin section?
either no additions there or 'plug-in'
http://www.youtube.com/watch?v=jqxENMKaeCU
because it's important!
breitsch
zuker
Posts: 80
Joined: Fri 18. May 2007, 17:13
Location: Lithuania

Re: GoogleMaps Module [New Version]

Post by zuker »

Breitsch,

I have phpwcms 1.3.3. running on my site. After installation all settings are left by default. I haven’t restricted cp's manually. Where can I check the status of restriction?

Other CP’s like Plain Text, HTML, WYSIWYG HTML, Images and so on work fine. I have CP “News Flash” installed and it is in CP's list and works fine too. But I noticed that there in no CP FAQ and glossary in CP list .
٩(͡๏̯͡๏)۶
breitsch
Posts: 473
Joined: Sun 6. Mar 2005, 23:12
Location: bern switzerland

Re: GoogleMaps Module [New Version]

Post by breitsch »

@zuker
Can you PM me backend login so I can have a look there?
Would be easier than find it out with question/answer
http://www.youtube.com/watch?v=jqxENMKaeCU
because it's important!
breitsch
User avatar
update
Moderator
Posts: 6455
Joined: Mon 10. Jan 2005, 17:29
Location: germany / outdoor

Re: GoogleMaps Module [New Version]

Post by update »

Now I've entered some hundred map points and let the kml file be written I wonder how to get the link to the kml file into my sitemap. In conjunction with this wondering I ask myself how this phpwcms sitemap feature is working anyhow:
When I call domain/sitemap.php I get a real bunch of
Does this work as intended? Is looking strange to me remembering a discussion about double content and such things...

Or do I have to submit the kml to google manually?
And citing google:
For a simple sitemap, your KML should contain a <Placemark> KML tag for each GMarker object within your Google Maps API code. For example, text that was in your GMarker objects' GInfoWindows can be placed in the <name> and/or <description> tags inside <Placemark> tags in KML. Note: KML's <description> tag supports HTML; you are encouraged to place links back to your original Maps API site here.
Does this mean that I place a backlink to my site into the description field thus getting some hundred external backlinks? If so, this seems to be really cool...

Can somebody shed some light into the darkness as described above please :)
Thank you
claus
It's mostly all about maintaining two or three customer's sites Still supporter for the band Mykket Morton. Visit Mykket Morton on FB. Listen Mykket Morton and live videos on youtube.
Now building a venue for young artists to get wet on stage, rehearsal rooms, a studio, a guitar shop - yes I'm going to build some guitars.
breitsch
Posts: 473
Joined: Sun 6. Mar 2005, 23:12
Location: bern switzerland

Re: GoogleMaps Module [New Version]

Post by breitsch »

please have a look here: http://code.google.com/apis/maps/sitemap.html
this explains the whole thing.

Step 1 is done by system. It writes the kml file to folder: include/inc_module/mod_googlemaps/kml
file named like: googlemap[ID of contentpart].kml

Example (for 1 marker only, but there can be more ):

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
  <kml xmlns="http://earth.google.com/kml/2.1">
    <Document>
    <Placemark>
      <name>Title</name>
      <description><![CDATA[<p>html text from info window <img width="66" height="70" src="http://www.example.com/picture/image.jpg" alt="" /></p>]]></description>
      <Point>
        <coordinates>-122.1379280090332,37.43970145670931,0</coordinates>
      </Point>
    </Placemark>
  </Document>
</kml>

Step 2 you must do yourself:

open the sitemap.php in your root
scroll to the end of the file
find:

Code: Select all

echo '</urlset>';
add before and change the url to fit your site:

Code: Select all

echo '    <url>      
      <loc>http://www.example.com/include/inc_module/mod_googlemaps/kml/googlemap51.kml</loc>
    </url>'.LF;
of course your site must be known to google: http://www.google.com/addurl/

This should do the job. Wait a few days and then enjoy your own markers in google earth.
http://www.youtube.com/watch?v=jqxENMKaeCU
because it's important!
breitsch
User avatar
update
Moderator
Posts: 6455
Joined: Mon 10. Jan 2005, 17:29
Location: germany / outdoor

Re: GoogleMaps Module [New Version]

Post by update »

This should do the job
Thank you!
This -if I'm getting it right- means that google is detecting sitemap.php by its own? Is it looking for it, really?
And
you are encouraged to place links back to your original Maps API site here
really means to produce my own backlinks from google earth back to my site?
Unbelievable! :oops: 8)
It's mostly all about maintaining two or three customer's sites Still supporter for the band Mykket Morton. Visit Mykket Morton on FB. Listen Mykket Morton and live videos on youtube.
Now building a venue for young artists to get wet on stage, rehearsal rooms, a studio, a guitar shop - yes I'm going to build some guitars.
breitsch
Posts: 473
Joined: Sun 6. Mar 2005, 23:12
Location: bern switzerland

Re: GoogleMaps Module [New Version]

Post by breitsch »

Yes Claus, welcome to the Google World!
Let me tell you why you're here. You're here because you know something. What you know, you can't explain. But you feel it. You felt it your entire life. That there's something wrong with the world. You don't know what it is, but it's there. Like a splinter in your mind -- driving you mad. It is this feeling that has brought you here.

But remember:
Google is everywhere, it is all around us. Even now, in this very room. You can see it when you look out your window, or when you turn on your television. You can feel it when you go to work, or when you go to church or when you pay your taxes. It is the world that has been pulled over your eyes to blind you from the truth: Google owns you!

But there is still an escape:
You delete the module and the story ends. You wake in your bed and believe whatever you want to believe. But when you decide to go on you stay in Wonderland and I show you how deep the rabbit-hole goes. Remember -- all I am offering is a path to the source, nothing more. Google awaits you!
http://www.youtube.com/watch?v=jqxENMKaeCU
because it's important!
breitsch
User avatar
update
Moderator
Posts: 6455
Joined: Mon 10. Jan 2005, 17:29
Location: germany / outdoor

Re: GoogleMaps Module [New Version]

Post by update »

breitsch wrote:Yes Claus, welcome to the Google World!
Let me tell you why you're here. You're here because you know something. What you know, you can't explain. But you feel it. You felt it your entire life. That there's something wrong with the world. You don't know what it is, but it's there. Like a splinter in your mind -- driving you mad. It is this feeling that has brought you here.

But remember:
Google is everywhere, it is all around us. Even now, in this very room. You can see it when you look out your window, or when you turn on your television. You can feel it when you go to work, or when you go to church or when you pay your taxes. It is the world that has been pulled over your eyes to blind you from the truth: Google owns you!

But there is still an escape:
You delete the module and the story ends. You wake in your bed and believe whatever you want to believe. But when you decide to go on you stay in Wonderland and I show you how deep the rabbit-hole goes. Remember -- all I am offering is a path to the source, nothing more. Google awaits you!
:lol: :lol: :lol: :lol: :lol: :evil: :shock: :idea: :idea: :idea: :lol: :lol: :lol: :arrow: :arrow: :arrow: :arrow:

:arrow: :mrgreen:

:oops:

PS: Yes, old wise words spoken out loudly again - we (me) firmly have to remember the escape while diving into this rabbit hole ... every now and then replacing google with whatever else is blinding us to stay tuned in while freaking out :wink:
It's mostly all about maintaining two or three customer's sites Still supporter for the band Mykket Morton. Visit Mykket Morton on FB. Listen Mykket Morton and live videos on youtube.
Now building a venue for young artists to get wet on stage, rehearsal rooms, a studio, a guitar shop - yes I'm going to build some guitars.
User avatar
update
Moderator
Posts: 6455
Joined: Mon 10. Jan 2005, 17:29
Location: germany / outdoor

Re: GoogleMaps Module [New Version]

Post by update »

... and the magic spell goes like this:

‘You’re nothing but a pack of cards!’

:wink:
It's mostly all about maintaining two or three customer's sites Still supporter for the band Mykket Morton. Visit Mykket Morton on FB. Listen Mykket Morton and live videos on youtube.
Now building a venue for young artists to get wet on stage, rehearsal rooms, a studio, a guitar shop - yes I'm going to build some guitars.
User avatar
markus s
Moderator
Posts: 654
Joined: Sat 16. Dec 2006, 19:21
Location: Radfeld / Tirol
Contact:

Re: GoogleMaps Module [New Version]

Post by markus s »

maybe is it my own prob, or do have anybody probs in IE6 ?
there are no map at the first look.
if i click on "karte" then i can see it, but with no map points ?
sorry - iam testing alot...
moderator
propelled by fresh air from tirol
XING|FACEBOOK|OMENTO
Post Reply