For instance code
[gmap |zoom=9 |center=47.4057852900587,8.470458984375 |width=600px |height=400px |id=map |control=Small |type=Satellite]
shows Map view.

Comments

bdragon’s picture

Assigned: Unassigned » bdragon
Status: Active » Fixed

Mea culpa.
It was two bugs at once:
A) I changed the internal name maptype and forgot to write the macro alias.
B) The GMap2 object was giving itself a type early in init and then sending off a "map type changed" event which was causing the variable to get overwritten with the default.

--Brandon

chess2u.com’s picture

1. I see, that you have change module, but

[gmap |zoom=9 |center=47.4057852900587,8.470458984375 |width=600px |height=400px |id=map |control=Small |type=Satellite]

still doen't work, it shows Map view :(

2. Before was a possibility to add user's location in their profile. As well as to show world map with user's location at /map/users

bdragon’s picture

One of the bugs was in the module, one of them in the javascript.
You'll probabaly have to force refresh your browser to pick up the new javascript.

chess2u.com’s picture

You are fully right !
Today cache in browser was updated and everything works !
Many thanks for great module.

I would only recommend to change page.tpl.php to
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
print $language " lang=" print $language ">

i.e. to use Transitional instead of Strict
otherwise http://validator.w3.org/ cannot recognize web-site correctly.

What's about point 2, do you have plans to implement /map/users ?

chess2u.com’s picture

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php print $language ?>" lang="<?php print $language ?>">
bdragon’s picture

Yes, I will attempt to port as much of the 4.7 version's features as possible. I'm still working on map/node and map/users.

Anonymous’s picture

Status: Fixed » Closed (fixed)