Google Maps extensions

Discuss PivotX 2.0.x extensions here, and view extensions that are available for download.

Google Maps extensions

Postby hansfn » Wed Aug 11, 2010 8:59 am

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:

hansfn
Developer
 
Posts: 3278
Joined: Sun Nov 25, 2007 7:48 pm
Location: Molde, Norway

Google Maps v3 KML overlays patch

Postby ppescher » Mon Aug 16, 2010 2:38 pm

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
Attachments
googlemaps_v3_kml_patch.zip
Patch for better KML support
(785 Bytes) Downloaded 863 times
Last edited by ppescher on Sat Apr 23, 2011 5:54 pm, edited 1 time in total.
User avatar
ppescher
 
Posts: 13
Joined: Mon Aug 16, 2010 2:35 pm

Re: Google Maps extensions

Postby hansfn » Mon Aug 16, 2010 7:51 pm

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.
hansfn
Developer
 
Posts: 3278
Joined: Sun Nov 25, 2007 7:48 pm
Location: Molde, Norway

Re: Google Maps extensions

Postby ppescher » Thu Aug 19, 2010 8:52 pm

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
User avatar
ppescher
 
Posts: 13
Joined: Mon Aug 16, 2010 2:35 pm

Re: Google Maps extensions

Postby jadwigo » Thu Apr 28, 2011 8:49 am

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.
My pivotx playground is at http://jivotx.twokings.eu - the rest is at http://www.jadwigo.nl
jadwigo
Developer
 
Posts: 117
Joined: Wed Nov 18, 2009 9:49 am
Location: Den Haag, Netherlands

Google Maps overlay bug?

Postby cjeukens » Thu Aug 01, 2013 5:11 pm

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
cjeukens
 
Posts: 9
Joined: Tue Jul 23, 2013 11:39 pm

Re: Google Maps extensions

Postby Harm10 » Thu Aug 01, 2013 6:55 pm

Thanks for letting us know.....!
Quality is in the detail of things............

Want to change or update your PivotX site? Mail or PM me!
I can also convert your site to a Wordpress site!
Harm10
Developer
 
Posts: 2010
Joined: Wed Jun 17, 2009 9:37 am
Location: Somewhere in The Netherlands (aka Holland)

Re: Google Maps extensions

Postby winters » Tue Mar 04, 2014 7:13 pm

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!
winters
 
Posts: 82
Joined: Thu Jan 13, 2011 9:09 pm

Re: Google Maps extensions

Postby hansfn » Tue Mar 04, 2014 7:17 pm

Try
Code: Select all
[[ googlemaps_v3 address="`$entry.extrafields.location`" ]]
hansfn
Developer
 
Posts: 3278
Joined: Sun Nov 25, 2007 7:48 pm
Location: Molde, Norway

Re: Google Maps extensions

Postby winters » Tue Mar 04, 2014 8:05 pm

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! :)
winters
 
Posts: 82
Joined: Thu Jan 13, 2011 9:09 pm

Next

Return to 2.x Extensions

Who is online

Users browsing this forum: No registered users and 1 guest

cron