ulgooglemaps on profile

blindmime
@blindmime
11 years ago
772 posts
I have this in profile_index.tpl which is in my skin directory

{ujGoogleMaps_map skin=true name="map" map=$_profile module="jrProfile" height="300"}

Nothing displays ( I do get a map in the profile form).

The docs say to put the code in modules/jrProfile/templates/item_index.tpl which doesn't exist.
updated by @blindmime: 09/19/14 02:48:43PM
SteveX
SteveX
@ultrajam
11 years ago
2,587 posts
The code you have there definitely works, although you would most likely want to remove skin=true for the profile (it still works with skin=true on the profile but you won't see the marker).

http://jam.ultrajam.net/maps-demo

Things to check:

1. That you have the map in a position where it will definitely show up, not within a smarty statement, etc. Try putting a heading or some text in right before your googlemaps function and check that it shows up on the profile. If it does not, you have either put it in the wrong place, or you are seeing a cached version of your profile.

2. That you have saved a profile_googlemaps location address for that profile. No map will show if you have not saved a location.
Put {debug} into the template and refresh the page. In the debug popup window scroll down to near the bottom and check that you have something like this in the output:


{$profile_googlemaps} "Havana, Cuba"

{$profile_googlemaps_administrative_area_level_1} "Havana"

{$profile_googlemaps_bounds_ne} "(23.1812734, -82.09113109999998)"

{$profile_googlemaps_bounds_sw} "(22.9200574, -82.5748054)"

{$profile_googlemaps_country} "CUBA"

{$profile_googlemaps_lat} "23.0540698"

{$profile_googlemaps_lng} "-82.345189"

{$profile_googlemaps_locality} "Havana"

{$profile_googlemaps_location_type} "APPROXIMATE"

{$profile_googlemaps_map_type} "ROADMAP"




--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)

updated by @ultrajam: 08/17/14 03:38:54AM
blindmime
@blindmime
11 years ago
772 posts
I took out "skin=true" and it works now. Thanks -- very nice.

Incidentally, in Chrome on a Mac when entering the address in the form, clicking on it in the dropdown doesn't register. I have to type in the entire address, selecting it from the dropdown doesn't do anything.
brian
@brian
11 years ago
10,149 posts
Can you make sure any future issues are posted over to the Ultrabubble forum?

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
blindmime
@blindmime
11 years ago
772 posts
I'm guessing you mean the ultrajam forum.
SteveX
SteveX
@ultrajam
11 years ago
2,587 posts
Yes please!

Heres the direct link to the ujGooglemaps forum:
https://www.jamroom.net/ultrajam/forum/googlemaps

blindmime:
Incidentally, in Chrome on a Mac when entering the address in the form, clicking on it in the dropdown doesn't register. I have to type in the entire address, selecting it from the dropdown doesn't do anything.

Thanks, I'll check this out.


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)
brian
@brian
11 years ago
10,149 posts
blindmime:
I'm guessing you mean the ultrajam forum.

Yep sorry - meant Ultrajam ;)


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net

Tags