Title: FF Communitymap
Author: andibraeu
Published: <strong>2 november 2015</strong>
Last modified: 7 maart 2021

---

Plugins zoeken

![](https://ps.w.org/ff-communitymap/assets/banner-772x250.png?rev=1344866)

Deze plugin **is niet getest met de laatste drie grote versies van WordPress**. 
Mogelijk wordt het niet meer onderhouden of ondersteund. Er kunnen ook compatibiliteitsproblemen
ontstaan wanneer het wordt gebruikt met recentere versies van WordPress.

![](https://s.w.org/plugins/geopattern-icon/ff-communitymap_f0f0f0.svg)

# FF Communitymap

 Door [andibraeu](https://profiles.wordpress.org/andibraeu/)

[Download](https://downloads.wordpress.org/plugin/ff-communitymap.4.3.zip)

 * [Details](https://nl-be.wordpress.org/plugins/ff-communitymap/#description)
 * [Beoordelingen](https://nl-be.wordpress.org/plugins/ff-communitymap/#reviews)
 * [Ontwikkeling](https://nl-be.wordpress.org/plugins/ff-communitymap/#developers)

 [Ondersteuning](https://wordpress.org/support/plugin/ff-communitymap/)

## Beschrijving

This plugin provides a shortcode to display the well known freifunk community map:[
ffcommunitymap]

It is fully configurable to embed your own sources. These options are available:

 * geojsonurl
    - Default: “//api.freifunk.net/map/ffGeoJsonp.php?callback=?”
    - Description: URL with API data, we need jsonp there
 * hidelocationbutton
    - Default: 0
    - Description:
 * hidelayercontrol
    - Default: 0
    - Description: hide or show layer box
 * hideinfobox
    - Default: 0
    - Description: hide or show info box
 * feedurl
    - Default: “//api.freifunk.net/feed/feed.php”
    - Description: a feed provided by https://github.com/freifunk/feed.api.freifunk.
      net
 * newscontentlimit
    - Default: 3
    - Description: number of news entries
 * eventscontentlimit
    - Default: 2
    - Description: number of event entries
 * postcontentlength
    - Default: 30
    - Description: length event headlines
 * zoomlevel
    - Default: 5
    - Description: default zoom level on page load
 * scrollandzoom
    - Default: 1
    - Enable scroll and zooming by mouse wheel or one-finger-touch
 * center
    - Default: [51.5,10.5]
    - Description: initial center of map
 * divid
    - Default: “map”
    - Description: div id where map should be displayed
 * showevents
    - Default: 0
    - Description: show events in community popup
 * shownews
    - Default: 0
    - Description: show news in community popup
 * mapboxid
    - Default: “mapbox.streets”
    - Description: id for your mapbox tiles
 * mapjs
    - Default: “//api.freifunk.net/map/community_map.js”
    - Description: link to community js files
 * popuptype
    - Default: “community”
    - Description: type for popups for different purposes

Another shortcode is for displaying a community table: [ffcommunitytable]

Available options are:

 * summaryurl
    - Default: “//api.freifunk.net/map/ffApiJsonp.php?mode=summary&callback=?”
    - Description: URL with API data, we need jsonp there
 * columns
    - Default: “city,name,firmware,routing,nodes,contact”
    - Description: select available columns comma separated
 * number_communities
    - Default: “3”
    - Description: number of communities displayed in search
 * enable_zip_search
    - Default: “1”
    - Description: enable zip/city search
 * nominatim_email
    - Default: “yourmail@domain.tld”
    - Description: email provided to nominatim queries to avoid abuse

The shortcode [ffapijs] simply loads ffctable.js and dependencies for use API data
in pages and posts.

Example code to embed a selction of email addresses of communities:

    ```
    <p>Adresse<br />
    *    [text* your-street placeholder "Straße"]
    *    [text your-location id:zipinput placeholder "Postleitzahl und Ort"]
    </p>
    <div class="zipsearch"><button type="button" id="zipsubmit" class="btn waves-effect waves-light">Nächste Communities finden</button></div>
    <div id="zipresult"></div>

    <p>Communities<br />
    *    [select your-communities id:mycommunities multiple]
    </p>

    <p>[submit "Senden"]</p>

    <script type="text/javascript">
    var cTable;
    jQuery(document).ready(function() {
      cTable = FFCTABLE.init("dummyid", "//api.freifunk.net/map/ffApiJsonp.php?mode=summary&callback=?", "mail@dingsund.so", "3");
      cTable.getData(function(e) {});
      jQuery("#zipsubmit").click(function(e) {
          cTable.getDistanceByZip(cTable, function(data, type) {
          console.log(data);
          jQuery("#mycommunities").empty();
          _.each(data.communityDataDisplay, function(item, key, list) {
              if (item.socialprojects && item.socialprojects.contact) {
              email = item.socialprojects.contact;

              } else if (item.contact && item.contact.email) {
              email = item.contact.email;

              }
              if (email) {
              email = email.replace('mailto:', '');
              jQuery("#mycommunities").append(new Option(item.name + " (ca. " + item.distance + " km)", email, true, true));

              }

              })

              });

          });

        });
    </script>
    ```

## Beoordelingen

Er zijn geen beoordelingen voor deze plugin.

## Bijdragers & ontwikkelaars

“FF Communitymap” is open source software. De volgende personen hebben bijgedragen
aan deze plugin.

Bijdragers

 *   [ andibraeu ](https://profiles.wordpress.org/andibraeu/)

[Vertaal “FF Communitymap” naar jouw taal.](https://translate.wordpress.org/projects/wp-plugins/ff-communitymap)

### Interesse in de ontwikkeling?

[Bekijk de code](https://plugins.trac.wordpress.org/browser/ff-communitymap/), haal
de [SVN repository](https://plugins.svn.wordpress.org/ff-communitymap/) op, of abonneer
je op het [ontwikkellog](https://plugins.trac.wordpress.org/log/ff-communitymap/)
via [RSS](https://plugins.trac.wordpress.org/log/ff-communitymap/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 4.2

 * use an icon font instead of an image for contact options

#### 4.1

 * add option to disable scroll by mouse wheel or one-finger-touch

#### 4.0

 * javascripts now use callbacks, we’re more flexible to use api data
 * added shortcode [ffapijs] to load javascripts in page

#### 3.2

 * refactoring to display popups on different use cases

#### 3.1

 * some minor corrections

#### 3.0

 * add zip search to community table

#### 2.1

 * refactoring
 * table now sortable
 * table now mobile friendly

#### 2.0

 * add community table

#### 1.0

 * initial release
 * show community map and use a bunch of options

## Meta

 *  Versie **4.3**
 *  Laatst bijgewerkt: **5 jaar geleden**
 *  Actieve installaties: **Minder dan 10**
 *  WordPress versie ** 3.6 of nieuwer **
 *  Getest t/m **5.6.18**
 *  Taal
 * [English (US)](https://wordpress.org/plugins/ff-communitymap/)
 * Tags
 * [community map](https://nl-be.wordpress.org/plugins/tags/community-map/)[freifunk](https://nl-be.wordpress.org/plugins/tags/freifunk/)
   [wifi](https://nl-be.wordpress.org/plugins/tags/wifi/)
 *  [Geavanceerde weergave](https://nl-be.wordpress.org/plugins/ff-communitymap/advanced/)

## Beoordelingen

Er zijn nog geen beoordelingen ingediend.

[Your review](https://wordpress.org/support/plugin/ff-communitymap/reviews/#new-post)

[Bekijk alle beoordelingen](https://wordpress.org/support/plugin/ff-communitymap/reviews/)

## Bijdragers

 *   [ andibraeu ](https://profiles.wordpress.org/andibraeu/)

## Ondersteuning

Iets te melden? Hulp nodig?

 [Het supportforum bekijken](https://wordpress.org/support/plugin/ff-communitymap/)

## Doneren

Wil je de groei van deze plugin ondersteunen?

 [ Doneer aan deze plugin ](http://www.weimarnetz.de/spenden)