New package: collective.geo.faceted

We use collective.geo suite for geolocatisation on some of our projects. We also use eea.facetednavigation for easily find content into our website or application. So we decided to add a map view for eea.facetednavigation.

Why did we create collective.geo.faceted ?

We use collective.geo suite for geolocatisation for some of our projects. We also use eea.facetednavigation to easily find content into our website or application.

So we decided to add a map view for eea.facetednavigation and we created collective.geo.faceted.

How it works

Leaflet

We prefer to use Leaflet than OpenLayers, because it seems easier to use for us.

So we decided to use collective.geo.leaflet machinery for map creation.

GeoJson

We use geojson standard to add points on map. It is a famous standard used to geo content.

The view created for "faceted" will simply update the geojson and this geojson will also update the map. For the generation of geojson, we extended collective.geo.json view.

Viewlet

Map is added into a viewlet dedicated to the faceted view. We choose to use a viewlet out of 'content-core slot'  (content-core slot is used by faceted to update automatically the  contents). Indeed each technology (faceted and map) uses singular  javascript , it seems better to not mix both technology.

Plone objects are on map  and they are updated thanks to these lines of code:

jQuery(document).ready(function() {
  jQuery(Faceted.Events).bind(
    Faceted.Events.AJAX_QUERY_SUCCESS,
    update_map
  );
});

This code fetches "faceted" events when "faceted" has modifed its criterias and used update_map javascript function to update new geojson on map.

Image is better than words:

Future

This package is tested for Plone 4 with plone.app.contenttypes used as default Plone content types.

Maybe in future we should add a profile like plone5  e.g. example.p4p5 or create a branch plone4 on github and make master branch used to plone5.

 

MashaQuipt
MashaQuipt says:
Dec 10, 2017 05:48 PM

This message is posted here using XRumer + XEvil 4.0

XEvil 4.0 is a revolutionary application that can bypass almost any anti-botnet protection.
Captcha Recognition Google (ReCaptcha-1, ReCaptcha-2), Facebook, BING, Hotmail, Yahoo,
Yandex, VKontakte, Captcha Com - and over 8.4 million other types!

You read this - it means it works! ;)
Details on the official website of XEvil.Net, there is a free demo version.

Check YouTube video "XEvil ReCaptcha2"

Raymondzer
Raymondzer says:
Apr 01, 2018 08:22 PM

generic viagra prices <a href=http://viagra-generics.us/#4054>viagra generic equivalent</a> viagra generic availability <a href=http://viagra-generics.us/#4276>generic viagra called</a>

Roxie
Roxie says:
Apr 10, 2018 03:57 AM

As we went into that work well, about 20 percent of our spend was internal and 80 % was external.
Wells fargo sign in online account wells fargo sign in wells
fargo sign in to view account Warren also used her Facebook post to advocate for a rule proposed through the Consumer Financial Protection Bureau that will eliminate mandatory arbitration. CNNMoney talked to another three former Wells Fargo workers who say they were fired under similar
circumstances, and six other people who say
they witnessed such retaliation. Wells fargo sign in [url="https://loginto.us.com/"]wells
fargo dealer login[/url] wells fargo dealer login Editorial:
Wells Fargo blocks the courthouse door Wells Fargo scammed 2
million members but now desires to bloack 's news CEO, Timothy Sloan, met while using Des Moines Register's Editorial
Board a couple of weeks ago, he said the bank intends to perform everything it could to get back the trust of clients Check out this story on :.

TyzonQueby
TyzonQueby says:
May 09, 2018 06:49 AM

viagra information levitra ascending order
http://viagrawithoutdoctorpharm.com - viagra without a doctor prescription viagra 5mg daily topics
<a href="http://viagrawithoutdoctorpharm.com">viagra without a doctor prescription</a> - viagra impotence drug eli lilly co
viagra dosing options skin by

ZharlesMut
ZharlesMut says:
May 09, 2018 08:50 AM

viagra 20mg side effects msn messenger
http://xlviagracan.com - viagra for sale viagra vs viagra blogs yybbs.cgi
<a href="http://xlviagracan.com">viagra for sale</a> - viagra 20mg tablets no registered users and
genuine viagra

Add comment

You can add a comment by filling out the form below. Plain text formatting.