Page 1 of 2

Google Maps extensions

PostPosted: Wed Aug 11, 2010 8:59 am
by hansfn
This is the discussion topic for the Google Maps and Google Maps Version 3 extensions.

You can find the extensions on http://extensions.pivotx.net:


Google Maps v3 KML overlays patch

PostPosted: Mon Aug 16, 2010 2:38 pm
by ppescher
Hello,

I found out that KML overlays did not work very well, at least they didn't work the same way as on the Google Maps website.
I saw that the javascript library used to parse KML (geoxml3.googlecode.com) is outdated and not actively developed.
So I decided to look at the current Google Maps V3 API docs and found there is built-in support for KML layers and more.

Well, to make a long story short, here's the patch to use google.maps.KmlLayer class instead of the old library.

If you want to see it in action, have a look at this site I'm building: http://www.logoslab.it/?p=contacts

Best,
Paolo

Re: Google Maps extensions

PostPosted: Mon Aug 16, 2010 7:51 pm
by hansfn
Thx for the patch. I'll apply it shortly and upload a new version to extensions.pivotx.net.

PS! I guess you understand that at the point in time when I wrote this extension, the Google Maps version 3 API was incomplete and missed the KML parsing supporting.

UPDATE

I have released a new version 1.1 of the Google Maps Version 3 extension with the suggested change from ppescher. I also made the "preserveViewport" setting of google.maps.KmlLayer configurable. Ref revision 2948. Download the new version from the link in the first post.

Re: Google Maps extensions

PostPosted: Thu Aug 19, 2010 8:52 pm
by ppescher
Hi Hans,

Sure I understand, I'm a developer too, even if at my first steps with PHP (but I guess I have a strong C/C++ background).
And as you can see I'm not the kind of guy who likes complaining. I'll continue to submit patches if I can. ;)

Keep up the great job on pivotx!

Paolo

Re: Google Maps extensions

PostPosted: Thu Apr 28, 2011 8:49 am
by jadwigo
Updated the googlemaps version 3 extension.

You can use an extra parameter now: [[googlemaps_v3 address="Prins Hendrikstraat 91, Den Haag, NL"]]
The address must be a city or street address that google will understand. See the docs for more information.

The version 2 extension has not changed.

Google Maps overlay bug?

PostPosted: Thu Aug 01, 2013 5:11 pm
by cjeukens
I want to insert Google maps v3 with an overlay of my travels.
I encounter three problems.
I have inserted the code [[ googlemaps_v3 ]] in my Page (see: http://opavontuurinnamibie.nl/?p=testing)

#1 when selecting the Satellite mode I get an orange result when sub-selecting Labels.

#2 when adding the overlay parameter pointing to my ilm, only the overlay is displayed on an orange background. When zooming for a split second I see the buildup of Map or Satellite, but it is overwritten with my orange overlay.
The content of the overlay though is exactly as I have created in Google Earth.

#3 in all modes the navigation buttons on the lefthand side of the screen have a orange background color.

Q: what am I doing wrong?

<update>
Have tracked the issue to a flaw in the Theme Vacation.
In the stylesheet of Vacation there is some code that forces an orange background whereas Googlemaps wants transparency.
Code: Select all
.read img {
 padding:5px;
  border:1px solid #555;
 background:#DF8B31;
}

When you render the ing obsolete, the GoogleMaps extention works fine in theme Vacation.

Coen

Re: Google Maps extensions

PostPosted: Thu Aug 01, 2013 6:55 pm
by Harm10
Thanks for letting us know.....!

Re: Google Maps extensions

PostPosted: Tue Mar 04, 2014 7:13 pm
by winters
Hi

Would it be a nice addition to make the following to work?:

[[ googlemaps_v3 address="$entry.extrafields.location" ]]

I tried it and it does not work can someone give me some direction how to get this working?

ps it would also be nice to use info from the extrafields to use in marker.openInfoWindowHtml

thanks for your time!

Re: Google Maps extensions

PostPosted: Tue Mar 04, 2014 7:17 pm
by hansfn
Try
Code: Select all
[[ googlemaps_v3 address="`$entry.extrafields.location`" ]]

Re: Google Maps extensions

PostPosted: Tue Mar 04, 2014 8:05 pm
by winters
wow hans that is fast!!! thanks! :)

any idea if it is also an option to use marker.openInfoWindowHtml
with info from the database?

thanks again! :)