Javascript libraries to simplify Google Maps

12 views
Skip to first unread message

Tom Kompare

unread,
Apr 19, 2012, 12:35:35 AM4/19/12
to opengov...@googlegroups.com
Hello fellow open governors,

I've created a couple of Javascript libraries (objects, really) to
help simplify putting a Google Maps map, with Google Fusion Tables
geographic data into your web application. Caveat: I've designed
'tkmapfusionlayer.js' for Fusion Tables geographic point data. Fuller
support for line and polygon data will come shortly.

I'm hoping between the POC demo and the code comments, it'll be enough
for you to implement without too much trouble.

The POC demo is here: http://jslibrary.311servic.es/treetrim.html
The code is here: https://github.com/tkompare/jslibrary

I have plans to add features to this. So consider it a 1.0 release.

Cheers and happy hacking.

--
Tom Kompare
t...@kompare.us

Derek Eder

unread,
Apr 19, 2012, 2:43:53 PM4/19/12
to opengov...@googlegroups.com
Great work Tom! I'm taking a look at it now.

Open City has been working on a helper library for Fusion Tables as well. I'd be interested in getting developer feedback on it.


Derek


--
You received this message because you are subscribed to the Google Groups "Open Government Chicago-land" group.
To post to this group, send email to OpenGov...@googlegroups.com.
To unsubscribe from this group, send email to OpenGovChicag...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/OpenGovChicago?hl=en.




--
Derek Eder

Tom Kompare

unread,
May 8, 2012, 10:52:31 PM5/8/12
to opengov...@googlegroups.com
Open Governmenters*,

After getting feedback from the front-end developers I work with (the
primary audience for these libraries) and a few of you all, I've
completely rewritten the Javascript. Hopefully they are simpler to use
than before. Oh hey, demos and documentation too. Bonus!

The demos and documentation is here: http://jslibrary.311servic.es/
'tkmap.js' - put a Google Maps map on your custom web site/application
Using the Google Maps Javascript API.

'tkmapfusionlayer.js' - put Google Fusion Tables data onto a Google
Maps map using the Google Maps Javascript API. Points, lines, and
polygons.

'tkmapsqlfusionlayer.js' - put Google Fusion Tables data onto a Google
Maps map using the Google Fusion Tables API. Points only for now.

The difference in the last two are subtle. Essentially, if you want to
display more than 500 points on a map at one time, or have your own
map marker graphics, you need to use the Google Fusion Tables API.

The main purpose of these are to shield the user from the somewhat
complex Google APIs. Or, if you are like me, you're tired of writing
the same bits of Javascript and Google API code
over
and over
and over again
for each custom web site/application that needs to map something.

All three of these libraries can be used independently, or together.
Mix and match to your heart's desire.

Continued comments and questions are still, and always will be, warmly
welcomed. Happy hacking!

*See: http://www.urbandictionary.com/define.php?term=governmenter
Open governmenting the government, one open governmenter at a time.

--
Tom Kompare
t...@kompare.us


On Wed, Apr 18, 2012 at 11:35 PM, Tom Kompare <t...@kompare.us> wrote:
Reply all
Reply to author
Forward
0 new messages