bixal/bixal_simple_map

A module to provide a json endpoint, content type for a basic map.

This package's canonical repository appears to be gone and the package has been frozen as a result.

Installs: 808

Dependents: 0

Suggesters: 0

Security: 0

Type:drupal-module

v1.0.0-rc1 2016-12-30 16:54 UTC

This package is auto-updated.

Last update: 2021-11-14 13:11:09 UTC


README

This module creates a single endpoint,and content type to generate geojson for a simple map. Usage is very simple. It does not do the implementation of the map. This will be done in a separate project specific module or theme. In theroy we could make the completely dynamic by recreating the fields in drupal but this is to be discussed. @todo: consider adding in polygon coordinates to reduce reliance on base geojson.

  • Install the module.
    • A content type of country has been created with a few basic fields. Active work indicates a country to highlight.
    • The iso country code should refer to the 3 letter code in `./js/source/map-all-countries.geojson`
  • Create a country, using a correct code, and making sure active is checked.
  • Navigate to api/v1/active and you should see json object with you entry, representative of that country.