I would like to add weather layer to one particular map.
I am wondering if by a custom module I can call a hook and then add weather layer to a particular map. I don't want anything fancy for user UI. Only coding shall work.
Please guide me. After I work on it, I will add the code here for community :)

Thanks for reading this.

CommentFileSizeAuthor
#4 gmap_1931044_weather_cloud_layer.patch1.63 KBjohnv

Comments

podarok’s picture

Version: 7.x-2.4-beta4 » 7.x-2.x-dev

looks like this is for dev version

johnv’s picture

Title: Add New layer » Add New layer: weather
shenagarg’s picture

Category: feature » support

Basically I would like to have support since I would like to include this layer in my website in few days.

I can do custom programming, if you please provide some information on hooks which I can access using another module.
Thanks

johnv’s picture

Status: Active » Needs review
StatusFileSize
new1.63 KB

Attached patch is just a start: it works, but doen't have any config settings, and is a streight copy from the Google example.

It adds the weather library, the weather and the cloud layer, and a click-listener.
Feel free to amend.

podarok’s picture

Status: Needs review » Needs work
+++ b/js/gmap.jsundefined
@@ -418,7 +428,12 @@ Drupal.gmap.addHandler('gmap', function (elem) {
+        + e.featureDetails.current.temperature + ' degrees.');
+});    ¶

trailing whitespace error

anpolimus’s picture

Assigned: Unassigned » anpolimus
Issue summary: View changes
Issue tags: +dcuacs2015
anpolimus’s picture

Status: Needs work » Closed (won't fix)

Wheather layer is deprecated at current Google maps API.
http://googlegeodevelopers.blogspot.com.au/2014/06/sunsetting-javascript...