Forum
Welcome, Guest
  • Page:
  • 1
  • 2

TOPIC: Blank map, tried everything similar in forum.

Blank map, tried everything similar in forum. 2 years, 7 months ago #448

  • chiel78
  • OFFLINE
  • Fresh Boarder
  • Posts: 6
Hi,

I purchased your fix for the google map search results but I just cannot get it to work. I read the entire forum to check if my problem would be on it, but also in the previous 'blank map' topic the solution for mine wasnt there.

So, I also have this blank map. I first tried the session variant, to no avail and then switched to the fopen variant, which also doenst give me much.

I see the google buttons but the entire map is grey and there are no results. All icons are in place, I believe I did everything asked for in the manual and so on, but all to no avail.

I need help, I hope you can support me to get a quick fix. Giving acccess to the site is unfortunately not possible since I'm developing localhost at this time.

Thanks!

Re:Blank map, tried everything similar in forum. 2 years, 7 months ago #450

  • jerry
  • OFFLINE
  • Moderator
  • Posts: 407
The most common reason for a blank map is either invalid addresses or not having all of the fields required for marker creation set to display in the vcard. If you are using the address method, all of the fields having to do with address must be set to display. If you are using Lat/Long then they must be set to display.

There is a sticky note in this forum that explains how to set the CSS to not show the fields if you would rather not have them seen, but they must be set to display in the configuration.

Also, they must have the original names or the vcard code must be changed to match.

Another common problem is that the configuration is not set to use the vcard to display listings.

Let me know if any of this helps.

Jerry

Re:Blank map, tried everything similar in forum. 2 years, 7 months ago #463

  • chiel78
  • OFFLINE
  • Fresh Boarder
  • Posts: 6
I checked everything and got to the following conclusion.

In the v-card template it has the following lines;

$gmmaPart1 = $fieldsObjects['field_street']->data;
$gmmaPart2 = $fieldsObjects['field_city']->data;
// $gmmaPart3 = $fieldsObjects['field_federal_state']->data;
$gmmaPart4 = $fieldsObjects['field_postcode']->data;
$gmmaPart5 = $mySobi->title;
$gmmaSobi_id = $mySobi->id ;
$gmmaPart6 = '<b>'.$gmmaPart5.'</b><br/><a href="localhost/index.php?option=com_sobi2&sobi2Task=sobi2Details&catid=0&sobi2Id='.$gmmaSobi_id.'&Itemid=" target="_parent">View Profile</a>';
$gmmaPart7 = $fieldsObjects['field_latitude']->data;
$gmmaPart8 = $fieldsObjects['field_longitude']->data;

Problem is, all these variables, exept from the title and id vars, are emtpy. I tried an 'echo $gmmaPart1 (and so on) and all gmmaPartx variables contain nothing.

I'm sure the fields are defined as custom fields with the exact same labels.

This seems to be the problem. If I create fake-data instead of the $gmmaPartX variables, it works.
Last Edit: 2 years, 7 months ago by chiel78.

Re:Blank map, tried everything similar in forum. 2 years, 7 months ago #465

  • jerry
  • OFFLINE
  • Moderator
  • Posts: 407
OK. Check your SOBI2 Custom Fields Manager setup and make sure that all of those fields have check marks under "In Category View" and "In Details View". If not, that is your problem.

Jerry

Re:Blank map, tried everything similar in forum. 2 years, 7 months ago #468

  • nicholas
  • OFFLINE
  • Moderator
  • Developing for Joomla since it was born!
  • Posts: 1197
Also - what are you trying to map? You mentioned fake data. Do you not have those fields filled in on your test and/or real entries? To map an entry, you have to give it an address or a longitude/lattitude marker.
Nicholas
CIO - CorFun, Inc.
Publisher - orthodoxbiz.com
Webmaster - Orthodox Christian Network

Re:Blank map, tried everything similar in forum. 2 years, 6 months ago #472

  • chiel78
  • OFFLINE
  • Fresh Boarder
  • Posts: 6
Thanks a bunch! That seemed to be the problem. Custom fields are now in category and details view and it works like a charm!

What I meant with fake data was that I edited the code so all $gmmaPartX variables wouldnt be empty. ($gmmaPart1 = "<my home address>"; and so on.)

I'm happy. If I encounter problems with the finetuning (I dont expect so, but you never know) I'm glad to know support is quick and good. Thanks a bunch for the support.
  • Page:
  • 1
  • 2
Moderators: jasper, nicholas, henry, jerry
Time to create page: 0.57 seconds

Login