Skip Navigation

[Closed] Split: Map Questions – show no results until select filter

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
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 27 replies, has 3 voices.

Last updated by Nigel 1 year, 3 months ago.

Assisted by: Nigel.

Author
Posts
#2643077

jww

Also the lat long I'm using for the center is 39.809860, -98.555183 (Lebanon, Kansas).
But that page keeps choking on updating. It hangs, spins, doesn't complete an update. Sometimes it does, sometimes not.
I don't get it.

#2643081

jww

And same on the front end, it really struggles to load if it ever loads at all.

#2643083

jww

And I absolutely can not get it zoom out far enough to see all of the contiguous US, not Hawaii and Alaska but all of Florida. I tried what you said about multiple markers, no dice, and that's what seems to make the page hang forever until I just have to close it. Can you see what's going on there? It's really frustrating.

#2643263

jww

Can we get this solved today? See the other ticket with Waqar please. Splitting the tickets is creating confusion. New page was created, it doesn't work either. So far the map experience has not been a good one.

#2643277

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Screenshot 2023-09-12 at 16.57.53.png
Screenshot 2023-09-12 at 16.57.44.png

I edited the page and I didn't experience any particular problems, I'm not sure why you would have been earlier.

I set the coordinates you specified, and set the zoom at 4 (screenshot).

That fits the contiguous United States into the map boundaries (screenshot).

I checked what it would be like with 5, which wastes less of the space left and right in the oceans, but means that Florida is lost. You would need to make the height of the map larger to fit in Florida at zoom level 5.

Regarding using custom markers, it is a feature that could be implemented with the legacy editors, but is not supported with the newer block-based editor.

In the legacy editor you would add markers to the output of the View using shortcodes (see https://toolset.com/documentation/legacy-features/maps-plugin/displaying-markers-on-maps/). That meant you could combine them with conditional shortcodes so that depending on whether the condition you were testing was met, you could output a marker using a custom icon, and if not output some other icon.

What were you intending to base your custom markers on?

It might be possible to use a hybrid implementation (rather than going all-in on the legacy editor for this page), which keeps the View block you created and jettisons the Map block, implementing the map via shortcodes instead. Do you want to go down that route?

Lastly, sorting is limited to two fields within the UI, the first of which can be any field, the second of which can only be standard fields (e.g. post date) and not custom fields.

But with the API you can use the wpv_filter_query hook to modify the query parameters and set any kind of order conditions you want, but that requires coding: https://toolset.com/documentation/programmer-reference/views-filters/#wpv_filter_query

#2643345

jww

Thanks for that. There is still something on my end that just doesn't let this page load or allow me to edit and if it does it takes like 5 minutes to load - and it's only this page. So I don't get that. Are there error logs to look at to see what might be causing it? The page is far from done and I can't work with it.

#2643347

jww

Also it's still showing me Africa.

#2643351

jww

Oh I see - because you (rightfully) did it on the new version of the page not the other one which I can't get to load.
Ok - I'll work on just the newer one you made the changes on.
Please see private reply.

#2643359

jww

The lat long keeps getting wiped out.

#2643371

jww

And I set it back, again, and it blinks the US map but then goes to a grey box and that's all I see for the map is a grey box.
I did set the view id back to this page in the snippet.
I added lat long again.
I switched adjust zoom and markers back on.
Grey box for a map.

#2643373

jww

And with the grey box it's not showing the search results on the map. Nor the US map. Nothing.

#2643381

jww

See private reply please.

#2643535

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

I've tried to log back in to the site and it now says the username is not registered on the site, so I can't enter to check the problems you describe.

Let me set another private reply to get updated credentials from you.

The topic ‘[Closed] Split: Map Questions – show no results until select filter’ is closed to new replies.