Skip Navigation

[Resolved] I need to know how I can split up the map from its filters on the front end

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

Problem: I would like to display a map with markers, but I want to use custom search filters displayed in a different area of the site.

Solution: Insert the map shortcode using the Fields and Views button. Make the map ID something unique. Create a View to display the filters, and include the map marker shortcodes in the loop. Reference the unique map ID in the map marker options popup. Place the View where you want to display the filters.

Relevant Documentation:
https://toolset.com/documentation/user-guides/display-on-google-maps/

This support ticket is created 5 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
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

Tagged: 

This topic contains 66 replies, has 2 voices.

Last updated by jessicaM-4 5 years, 9 months ago.

Assisted by: Christian Cox.

Author
Posts
#1235287

One issue with it is it shows all of the post titles below the filter ( I've attached a screenshot so you can see what I mean.
You have two Views here - the Map Search View on the left column, and the Locations View on the right column. The map is included in the Locations View, and in the left column the filters and titles are produced by the Map Search View. You should only use one View. That View should include the filters and markers in the Loop, but not the map shortcode. The map should be placed outside of the View in the right column, where you currently have the Locations View.

#1235306

I guess I'm not understanding how to add the map to the right side without including it in a view and also have the markers shown? Any answer to the dropdown filter questions as well?

#1235307

Not sure if you can do this but just asking. If you add the map and the filters in those sections to that page. I can style them and figure out how you did it. Or if you give me step by step instructions on how to implement it I can do it.

#1235308

Also can we please get on a call or a chat tomorrow. I have a feeling we are trying to accomplish two different things here and want to make sure we are on the same page. Ill try again after two hopefully the chat function is working.

#1235309

I guess I'm not understanding how to add the map to the right side without including it in a view and also have the markers shown?
The map ID is all that is needed to link the markers and the map. When you place the map shortcode in the right column, you will give it a unique ID. Then in the View, you use the same map ID when you insert the markers.

What's the problem inserting the filters?

#1235312

"What's the problem inserting the filters?"

Not exactly sure what you are asking me here. But I need two filters for the map as previously stated. One is an address search the other is a dropdown of locations. Both filters should re-organize the map markers when used.

#1235313

Im guessing I can just use the same map ID to attach the map to those filters.

#1235314

Let's not get ahead of ourselves. First you must replace the Locations View with the single map shortcode.

#1235315

Ok doing it now

#1235316

Ok its updated with the single map shortcode.

#1235318

Where do I go to add the map Id to the map search view?

#1235320

In each of the map marker shortcodes, there is a place to add the map ID.

#1235321

Ok the shortcode for the front end view or in the loop editor? I see the place to add the id in the view you can place on the front end but that does not populate the map for me with the markers

#1235325

Can you go in and see what Im doing wrong?

#1235330

So if im not using a view to show the map can I customize the map markers still?