Skip to content
Chicago Resource Hub Open Data
JavaScript CSS PHP HTML Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
v1
v2
.gitignore
README.md
server-cors.py

README.md

Chicago Resource Hub Child Theme and Map Template

Front-end

https://www.chicagoresourcehub.com/

Dependencies

  • WordPress

This child theme can be plugged into WordPress: https://wordpress.org/ However, all that is needed are some of the JS, CSS & HTML files. The PHP is just some of the design stuff.

  • Materialize

The ui uses materialize theme based on material design: https://materializecss.com/

  • FlexSearch

The Data Store of locations is queried using FlexSearch: https://github.com/nextapps-de/flexsearch

About

V1

(Now Deprecated) This tool interacted with Google Fusion Tables Database using the Google Rest API: https://developers.google.com/fusiontables/

V2

Current Version of Map Search Tool and Google Maps API. This uses an in-memory data store, FlexSearch Search API, & Google Maps API

Usage

  • Start server and begin!
$ cd v2 && ../server-cors.py
  • encode locations js file
// convert json data to javascript object
let r = $.getJSON("http://localhost:8000/data/locations.json", function(json) {
  return json;
});

// convert data right back to string
// r.responseText;
let stringData = JSON.stringify(r.responseJSON);

// convert string to base65 encoding
let encodedData = btoa(stringData)

// convert back
let decodedData = JSON.parse(atob(encodedData))

Author

David John Coleman II, davidjohncoleman.com

License

Public Domain, no copyright protection

You can’t perform that action at this time.