Google Maps aren't showing up.

Mateusz Żebrowski asked on January 5, 2015 15:59

I'm using Kentico 7.0.70. I've add google maps web part (this one based on documents) and configure it just like in the developer guide. This web part create two elements one is script and second is empty div (width and height are 400px as in default configuration). It seems that the data are read by the web part because script contains the following code:

content_p_lt_p_lt_ctl00_ColumnLayout_ColumnLayout_center_GoogleMaps.push({'cont':'<span class=\"Header\"> <a href=\"/Store-Locator/Test\">Test</a> </span> <table> <tr><td rowspan=\"2\" style=\"vertical-align: top;\"></td></tr> <tr><td class=\"Address\"> line 1<br /> line 2<br /> middle earth<br /> 1234<br /> none<br /> </td></tr> </table>'});

and those are data passed to the web part. But still I can't see the map.

Recent Answers


Brenden Kehren answered on January 5, 2015 16:47

What is your configuration for the web part? That looks like the code for the pin and info box.

0 votesVote for this answer Mark as a Correct answer

Mateusz Żebrowski answered on January 7, 2015 08:07

Yes it looks like that code. The configuration is as follows:

Web Part Control ID: GoogleMaps Default latitude: 39.27 Default longitude: -98.2 Latitude field: OfficeLatitude Longitude field: OfficeLongitude Use server porocesing: true Path: /{0}/% Document types: CMS.Office Transformation: CMS.Office.Preview

Rest are empty or default.

0 votesVote for this answer Mark as a Correct answer

Sandro Jankovic answered on January 12, 2015 10:21

Hello,

Would it be possible to clarify what you meant by Google Maps aren't showing? Are the Pins for the documents not showing or the entire Web part? Assuming it is the pins, would it be possible to set a static path to your document to ensure that is not the issue? Could you also confirm that your CMS.Office documents have correct values saved on the Form tab?

I've tested the settings you provided in the same version (7.0.70) and everything worked as expected. If you are unable to find any issues in your settings, I would recommend installing the Corporate Site sample and checking if the maps work correctly under Content > Examples > Web parts > Maps.

Best Regards,

Sandro

0 votesVote for this answer Mark as a Correct answer

Mateusz Żebrowski answered on January 13, 2015 08:15

I can't see entire web part. As I mentioned before, on site there is a script and a div which should be holding a map. But there is no map at all. I've also installed Corporate Site sample and checked the examples. But still I can't find any map.

0 votesVote for this answer Mark as a Correct answer

Sandro Jankovic answered on January 15, 2015 12:01

Thank you for the additional clarification. Would it be possible to confirm if you are using SSL? Also, are there any errors in the Console window when refreshing the page with FireBug or Chrome Dev Tools open?

Could you please open the Web part properties and temporarily disable "Check Permissions" and "Hide if no record found" if they are enabled?

Was this instance upgraded from an older version?

We are hoping to find way to reproduce this issue. If we are unable to determine the cause based on your answers to these questions, we may request that you send a backup of your project to support@kentico.com so that we could take a closer look.

Thanks in advance for the additional details.

Best Regards,

Sandro

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.