I've tried setting this up on 2 different sites without success. Have generated an API key, configured the module, added the block to a page and created store location entities but it just produces a grey area where the map should be. No network or console errors. Drupal 8.4.0

Store Locator issue

It's worth adding that using the drupal geolocation field on the same sites with embedded map and the same Google Maps API key does work just fine, so it doesn;t seem to be an API key issue.

It's also a little confusing (and non-standard Drupal) to have "Store locator settings" under "Structure", with the first tab of that page just displaying "Settings form for Store locator entities. Manage field settings here." with no actual settings on it. Then the actual module settings under "Configuration" > "System" > "Store Locator Settings" (note title case rather than sentence case of first settings link). Suggest consolidating module settings under the more appropriate "Configuration" > "Web Services" > "Store locator" and then any future block-specific settings under block admin.

CommentFileSizeAuthor
#3 store-locator-issue.png12.04 KBinteja

Comments

inteja created an issue. See original summary.

vedprakash’s picture

Hi Inteja,

Thanks for reporting. Can you please add more information about the Gray box Issue, I mean screenshot etc. so that I can regenerate the same at my end.

For the settings, If it is really confusing, I would make the changes in next release.

Thanks

inteja’s picture

Issue summary: View changes
StatusFileSize
new12.04 KB

I've updated the issue summary with more info.

DannnBeckett’s picture

Looks like there's a couple of naming conventions that changed within store_locator.js. I was experiencing the same issue, until I altered line 85 from "data.itemlist," to "data.data," and on line 100" icon: data.marker.icon," to " icon: data.markericon.icon,".

(note this is for when displaying map in a block, not on store locator page)

bsufan17’s picture

The changes mentioned in #4 worked to get the map showing for me. The line numbers have changed to 82 instead of 85, and 93 instead of 100.

q__nt_n’s picture

Status: Active » Closed (cannot reproduce)

Hello,

I can't reproduce this issue.
Contrary to what DannnBeckett and bsufan17 said, line 82 and 93 are correct :
- it's data.itemlist and not data.data
- it's data.marker.ico and not data.markericon.ico