Google Map v3 API

This is a forum to suggest new features for mojoPortal. 

This thread is closed to new posts. You must sign in to post in the forums.
4/27/2012 7:07:06 AM
Gravatar
Total Posts 23

Google Map v3 API

Request for feature.

I think I am correct in saying that mojoportal is using google map api v2. This is now officially deprecated. c.f.

The Google Maps Javascript API Version 2 has been officially deprecated as of May 19, 2010. The V2 API will continue to work as per our deprecation policy, but we encourage you to migrate your code to version 3 of the Maps Javascript API.

https://developers.google.com/maps/documentation/javascript/v2/introduction

Could I request v3 API be considered.

One reason I am keen on this is the v2 API, generates user client cookies PREF and NID, these are not sessions cookies and in the EU legislation will require user consent before the cookie used. Thus I would have go create site code to not display the google map if a user refuses to accept the google cookie. 

In my hands it looks like Google v3 API doesn't use cookies. 

Many thanks Karl

 

 

 

 

4/27/2012 7:19:26 AM
Gravatar
Total Posts 18439

Re: Google Map v3 API

Hi Karl,

We currently use the v3.6 api, (thanks to Jamie Eubanks who implemented it), we only fallback to the v2 api if you enable local search in the settings because there was not support for local search in the v3 api. So as long as you don't enable local search it will use the v3 api. 

Hope that helps,

Joe

4/27/2012 7:50:04 AM
Gravatar
Total Posts 23

Re: Google Map v3 API

Dear Joe,

Thank you for such a quick reply. 

I must admit I only signed up for a google APi v3 API access code yesterday, so previously I had in the mojoportal site settings an old google v2 API access code. 

My mojoPortal Version is I see is out of date too at 2.3.6.7 MSSQL, but I assume then using of API v3 hasn't been that recent then.

My settings on the google Map feature instance is:

Show Zoom Tool    on
Show Location Info Ballon  on 
Show Local Search   off 
Enable Driving Directions   on 
Use Location for Title  on 
Use Location as Caption off
Show Satellite and Hybrid Map Options on 

My google map is displayed using the scripts running from this file /ClientScript/google/mojogmaputils.js

These code scripts look like (because they have showGMap) they are for the v2 API, how do I get them to be V3.

Or is this just cached and now I have the correct API access key in place the mojoportal engine will which the code to V3 API.

I am sorry for my naive questions.

Regards, Karl

 

 

 

 

 

 

 

 

4/27/2012 8:02:03 AM
Gravatar
Total Posts 18439

Re: Google Map v3 API

Hi Karl,

v3 support was added as of mojoPortal version 2.3.7.0

Best,

Joe

4/27/2012 8:32:21 AM
Gravatar
Total Posts 23

Re: Google Map v3 API

Excellent news and many thanks, guess I need read update notes and downloading them on time.

Beer on its way Joe :-)

 

4/27/2012 9:15:35 AM
Gravatar
Total Posts 18439

Re: Google Map v3 API

Thanks for the beer Karl! Much appreciated.

Note that you don't need to upgrade to each version in between, you can upgrade directly to the latest version.

You will want to read the articles Upgrading from Previous Versions and Important Skin Changes

Cheers,

Joe

You must sign in to post in the forums. This thread is closed to new posts.