Skip Navigation

[Resolved] Markers are working in post maps, but not within a view search

This thread is resolved. Here is a description of the problem and solution.

Problem:

Display markers from my search results on a map inside of a view, but Markers of the houses that are displayed in the search results

Solution:

edit the view "House Search Map 2",

In section "Loop Output Editor", edit the codes from:

[wpv-map-render map_id="house search 2" ...
To:

[wpv-map-render map_id="house-search-2" ...
You can not use blank in the map_id attribute

Same as above, in section "Loop item in House Search Map 2", edit the code from:

[wpv-map-marker map_id="house search 2"
To:

[wpv-map-marker map_id="house-search-2"

see screenshot house-search-2.JPG

https://cdn.toolset.com/wp-content/uploads/2018/04/637526-house_search_2.JPG

Relevant Documentation:

This support ticket is created 6 years, 9 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 5 replies, has 2 voices.

Last updated by Luo Yang 6 years, 9 months ago.

Assisted by: Luo Yang.

Author
Posts
#630684
maps working on house post type.jpg
Home page house map search view toolset real estate template .jpg
custom view that I created.jpg

I am trying to: display markers from my search results on a map inside of a view

Link to a page where the issue can be seen:
View that I built: hidden link
View that came with the Real Estate Site Template from Toolset: hidden link

Working on site example::::Custom Post where Template map with all markers are showing and a map marker that I created are working outside of view
hidden link

I expected to see: Markers of the houses that are displayed in the search results

Instead, I got: Map with no markers

#630823

Hello,

The problem you mentioned above is abnormal, in case it is a compatibility problem, please try this:
1) You are following our document to setup the Google map,
https://toolset.com/documentation/user-guides/display-on-google-maps/
and the Google map API key:
https://toolset.com/documentation/user-guides/display-on-google-maps/creating-a-google-maps-api-key/

2) deactivate other plugins and switch to wordpress default theme, and test again

3) If the problem still persists, please provide a database dump file (ZIP file) of your website in below private detail box, also point out the problem page URL, I need to test and debug it in my localhost, thanks

#637523

Thanks for the details, I am downloading the file, will feedback if there is anything found

#637526
house-search-2.JPG

Thanks for the details, please try this edit the view "House Search Map 2",

In section "Loop Output Editor", edit the codes from:

[wpv-map-render map_id="house search 2" ...

To:

[wpv-map-render map_id="house-search-2" ...

You can not use blank in the map_id attribute

Same as above, in section "Loop item in House Search Map 2", edit the code from:

[wpv-map-marker map_id="house search 2" 

To:

[wpv-map-marker map_id="house-search-2" 

It works fine in my localhost, see screenshot house-search-2.JPG

#640345

The space was the issue on the view that I created.

On the home page view that came with the toolset real estate template, the marker image link inside of the marker was to an image that was not there. I updated the url to an existing marker image and it appeared.

SO Both issues are solved.

Thank YOU!!

#640805

You are welcome