sfdanny
Posts: 5
Joined: Tue Jun 25, 2013 8:32 pm
Location: Mexico

New Google Map Layer and function [DEPRECATED]

Wed Jul 10, 2013 2:04 am

Hi

1- Is there a way to integrate the Google Map Weather Layer ?

https://developers.google.com/maps/docu ... ther?hl=es

2- Exist plugin or something to show info in pop up when I click a vehicle ?

Thanks

piter197
Posts: 830
Joined: Sun Jan 09, 2011 3:32 am

RE: New Google Map Layer and function [DEPRECATED]

Wed Jul 10, 2013 2:49 am

This is a good idea.
@Support, any chance that this feature will be added by GpsGate team?

Best Regards,
piter197

kalmangabriel
Posts: 385
Joined: Wed Feb 25, 2009 12:36 am
Location: Romania
Contact: Website Skype

RE: New Google Map Layer and function [DEPRECATED]

Wed Jul 10, 2013 12:51 pm

Weather Layer is already included in Google Map plugin, it needs only a few lines of code to activate it... you have my contact details if you need it... it's as easy as copy/paste... and it's free... even more there are a few styled maps in it...
Cheers,

<font color="red">Please note that my reply IS NOT from GpsGate!!!</font id="red">
------------------------------------------
<font size="1">Email: tech@scorpiontrack.ro Skype: gabrielkalman
Internet: It doesn't make you more stupid, it just makes your stupidity more accessible to others</font id="size1">

sfdanny
Posts: 5
Joined: Tue Jun 25, 2013 8:32 pm
Location: Mexico

RE: New Google Map Layer and function [DEPRECATED]

Wed Jul 10, 2013 7:52 pm

@kalmangabriel, thanks a lot, your solution works perfectly and is pretty awesome.

Thank you so much.

Mineware
Posts: 22
Joined: Tue Jul 02, 2013 10:20 am
Location: Australia
Contact: Website

RE: New Google Map Layer and function [DEPRECATED]

Thu Jul 11, 2013 2:50 pm

Thanks Gabriel worked great!
I just need to get the weather channel to accept data from my local weather station....

Chad

User avatar
Fredrik
Posts: 1157
Joined: Fri Mar 02, 2007 1:04 pm
Location: Sweden
Contact: Website

RE: New Google Map Layer and function [DEPRECATED]

Thu Jul 11, 2013 7:09 pm

cool that you found and hacked it! ;) - But please be aware that manual modifications to a file like this will not survive a plugin update and that we can't/won't give "deep" support on this.
If you find(fix!) bugs or have good improvements feel free to send it to us though!

Btw, how did you expose the feature in UI? (Simply enabling weather will hide most map labels for example). Best would be to add another stateful button (checkbox), similar to traffic I'd say.

We'll see what can be done in future upgrades.


Regards,
Fredrik Blomqvist

GpsGate Support

kalmangabriel
Posts: 385
Joined: Wed Feb 25, 2009 12:36 am
Location: Romania
Contact: Website Skype

RE: New Google Map Layer and function [DEPRECATED]

Thu Jul 11, 2013 8:09 pm

Hey Fredrik,

I've just followed the way Traffic is added to the map.. and it has a Weather button just like the Traffic button... even more, it has some nice styled maps included and OSM activated as well...
Here is the modified Google Map plugin... maybe you are able to check and improve my pretty lame coding...
http://ggs.scorpiontrack.ro/Google_Maps.zip

Cheers,

For anyone else, just unzip and replace Google Maps folder in IIS\Resources\ScriptPlugins\com.GpsGate\ on your server, then reload the application clearing your browser's cache. Make sure you have a backup of the original Google Maps folder before doin' anything fancy...

<font color="red">Please note that my reply IS NOT from GpsGate!!!</font id="red">
------------------------------------------
<font size="1">Email: tech@scorpiontrack.ro Skype: gabrielkalman
Internet: It doesn't make you more stupid, it just makes your stupidity more accessible to others</font id="size1">

User avatar
Fredrik
Posts: 1157
Joined: Fri Mar 02, 2007 1:04 pm
Location: Sweden
Contact: Website

RE: New Google Map Layer and function [DEPRECATED]

Thu Jul 11, 2013 9:11 pm

looks good, nice same thinking :)
Well, we'll see if we can include it in a future upgrade hopefully.
(why did you strip all comments btw?)

Regards,
Fredrik Blomqvist

GpsGate Support

kalmangabriel
Posts: 385
Joined: Wed Feb 25, 2009 12:36 am
Location: Romania
Contact: Website Skype

RE: New Google Map Layer and function [DEPRECATED]

Thu Jul 11, 2013 9:22 pm

i didn't with a purpose... it was just "minimized" then "beautified" back at some point to fix something... :)

<font color="red">Please note that my reply IS NOT from GpsGate!!!</font id="red">
------------------------------------------
<font size="1">Email: tech@scorpiontrack.ro Skype: gabrielkalman
Internet: It doesn't make you more stupid, it just makes your stupidity more accessible to others</font id="size1">

User avatar
Fredrik
Posts: 1157
Joined: Fri Mar 02, 2007 1:04 pm
Location: Sweden
Contact: Website

RE: New Google Map Layer and function [DEPRECATED]

Fri Jul 12, 2013 6:12 pm

aha, ok. Easier to diff files if changes are as small as possible though.
(plan to minimize more plugins by default later btw).

Regards,
Fredrik Blomqvist

GpsGate Support

dcalhoun
Posts: 2
Joined: Fri Apr 04, 2014 9:58 pm

RE: New Google Map Layer and function [DEPRECATED]

Fri Apr 04, 2014 9:59 pm

Is there a way to change the temperature from Celsius to Fahrenheit

kalmangabriel
Posts: 385
Joined: Wed Feb 25, 2009 12:36 am
Location: Romania
Contact: Website Skype

RE: New Google Map Layer and function [DEPRECATED]

Fri Apr 04, 2014 10:35 pm

yes...

find

var weatherLayer = new google.maps.weather.WeatherLayer();

replace with

var weatherLayer = new google.maps.weather.WeatherLayer({temperatureUnits: google.maps.weather.TemperatureUnit.FAHRENHEIT});

more info

https://developers.google.com/maps/docu ... er-weather

<font color="red">Please note that my reply IS NOT from GpsGate!!!</font id="red">
------------------------------------------
<font size="1">Email: tech@scorpiontrack.ro Skype: gabrielkalman
Internet: It doesn't make you more stupid, it just makes your stupidity more accessible to others</font id="size1">

qtech
Posts: 80
Joined: Sun Mar 17, 2013 12:19 am

RE: New Google Map Layer and function [DEPRECATED]

Sat Apr 05, 2014 5:07 pm

very good i test it!

kalmangabriel
Posts: 385
Joined: Wed Feb 25, 2009 12:36 am
Location: Romania
Contact: Website Skype

RE: New Google Map Layer and function [DEPRECATED]

Sat Apr 05, 2014 6:46 pm

@qtech
sweet, you can buy me a pony :D

<font color="red">Please note that my reply IS NOT from GpsGate!!!</font id="red">
------------------------------------------
<font size="1">Email: tech@scorpiontrack.ro Skype: gabrielkalman
Internet: It doesn't make you more stupid, it just makes your stupidity more accessible to others</font id="size1">

Alon
Posts: 180
Joined: Wed Sep 01, 2004 3:48 pm

RE: New Google Map Layer and function [DEPRECATED]

Sun Dec 20, 2015 9:57 am

Hi,
This weather option seems to be broken. Any plan for GGS official support on this?
Thanks.

Return to “GpsGate Server - How to setup and use”