proximity search with search api and leaflet

17
Proximity search with Search API and Leaflet in Drupal 7 Alex Bukach

Upload: alexander-bukach

Post on 17-Jul-2015

553 views

Category:

Internet


1 download

TRANSCRIPT

Page 1: Proximity search with Search API and Leaflet

Proximity search with Search API and Leaflet in Drupal 7

Alex Bukach

Page 2: Proximity search with Search API and Leaflet

The picture

Page 3: Proximity search with Search API and Leaflet

The picture

Map Results

Suggestions

Place

DistancePopup

Page 4: Proximity search with Search API and Leaflet

Contrib modules: SearchSearch API

Search API Solr Geofield

Search API Location

Search API Location Views

Geocomplete

Page 5: Proximity search with Search API and Leaflet

Contrib modules: Map

Leaflet More Maps

Leaflet Views AJAX Popups

Leaflet Views

Leaflet

Leaflet MarkerCluster

Page 6: Proximity search with Search API and Leaflet

Setup: Field

1. Create a content type

2. Create a field storing coordinates

Page 7: Proximity search with Search API and Leaflet

Setup: Index

3. Create a Search API index

4. Add Field >> LatLon Pair to index

5. Select Latitude/longitude as field type

Page 8: Proximity search with Search API and Leaflet

Setup: View

6. Create a view with exposed coordinates filter

Page 9: Proximity search with Search API and Leaflet

The End?

Page 10: Proximity search with Search API and Leaflet

The End? No!

Page 11: Proximity search with Search API and Leaflet

Setup: Map

7. Add new display to the view

8. Select Leaflet Map style ...or Leaflet Map (AJAX Popups) style

Page 12: Proximity search with Search API and Leaflet

Setup: Put list and map together

● Content pane displays (views content panes)

● Exposed form in block

● Page manager page (panels + page manager)

Page 13: Proximity search with Search API and Leaflet

Live example

http://garagesaletrail.com.au/search

Page 14: Proximity search with Search API and Leaflet

Try It!

http://bit.ly/proximity-search-kickstart

Page 15: Proximity search with Search API and Leaflet

Contributions

● Geocomplete (geocomplete)

● Leaflet Views AJAX Popups (leaflet_views_ajax_popup)

Page 16: Proximity search with Search API and Leaflet

Bonus

5,000+ results

Views loads each node => custom page

Page 17: Proximity search with Search API and Leaflet

Thank you!

http://thislittleduck.com