This patch provides a static map when javascript is disabled. Only works when the size of the map is in pixels else show message.

Comments

fastangel’s picture

Status: Active » Needs review
Pedro Lozano’s picture

Title: Static map » Static map if javascript is not enabled
shushu’s picture

I am for this feature, mainly since it was a simple and good solution to solve showing more than one gmap in one page problem, but the patch wasn't successful. While showing the static map, there were some 'junk' html tags around it...

nikosnikos’s picture

StatusFileSize
new3.69 KB

I couldn't apply the patch on the 6.x-1.1 (but I'm not sure I did it correctly) so I did the modifications in the gmap.module file directly and it works.

Thanks for this patch.
I attach the patch that I used on 6.x-1.1.

nikosnikos’s picture

StatusFileSize
new6.38 KB

I also had an option on the gmap views style plugin to render a gmap without javascript so if it is checked it render the static image (if there's width and height in pixel) in the place of the full javascripted google map.

I apply my patch onto the 6.x-1.1 version with the command patch < 512422-gmap-static-5-D6.patch I'm not sure this is the good way but it works...

nikosnikos’s picture

StatusFileSize
new6.44 KB

small fix for my patch

podarok’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev
Status: Needs review » Needs work

all feature requests can be imported in 6.x version after committing em in major versions with backport afterwards
Can You make this ?

nikosnikos’s picture

If you ask it to me (because I submitted the patch), unfortunately I won't have time to do that. I have no drupal 7 website with gmap and it is hard to me to get time to this without that.