Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2013-10-26 11:40:02

wordgasm
Member
Registered: 2006-05-17
Posts: 83
Website

Google Map & Search Filter

Would it be possible to create something like this in Textpattern? I’m trying to create a directory of travel destinations, searchable through maps & filters. Thanks :)

Offline

#2 2013-10-26 12:15:18

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: Google Map & Search Filter

Easily. That is just JavaScript and uses Google Map API; whether you are using Textpattern or WordPress doesn’t matter. It seems to use Gmap3 jQuery plugin as an abstraction layer.

Merely just create an article list of your places, populate map markers according to the generated list (process the DOM, store coordinates in HTML data attributes, pulled from custom fields) and that’s it. Then just load search results with Ajax and re-populate the markers according to the article results. Super easy, bit time consuming tho.

Offline

Board footer

Powered by FluxBB