DISCUSSION: Best way to integrate this SVG US Responsive Map

If you have questions or if you want to share your opinion about Aware IM post your message on this forum
Post Reply
Jaymer
Posts: 2430
Joined: Tue Jan 13, 2015 10:58 am
Location: Tampa, FL
Contact:

DISCUSSION: Best way to integrate this SVG US Responsive Map

Post by Jaymer »

Stumbled across this interactive-and-responsive-svg-map-of-US today

Here's the original place where I saw it used:
NAIA Interactive Member Map

Examining the source code led me to the "websitebeaver" page.
I don't have an immediate need, but for sake of discussion (and just to work my brain cause I don't have any Aware work right now), I thought I would think about ways to use this in AIM.

Without much thought, my "brute-force" method would be to write out the data to be shown in each state to a file on the server. Then find a way to include/merge that into the static HTML... but thats just in the 1st 5 mins.

JQuery might be a way to get to the data (actually, JQuery is already being used to index into the source HTML "data-info" tag) in a more "live way".

One could use NodeJS/GO and merge the data live from a SQL table when requested, perhaps.

Your thoughts?
jaymer...
Click Here to see a collection of my tips & hacks on this forum. Or search for "JaymerTip" in the search bar at the top.

Jaymer
Aware Programming & Consulting - Tampa FL
Post Reply