Coredump

Work, play, and everything in-between.

Archive for the ‘gps’ tag

Google Maps API experiment, revisited

with one comment

Apparently, I goofed.

When I visited my Google Maps API project this morning, the map was missing! Thanks to Migs Paraz for pointing that out.

In the previous version, I added a few div items that shouldn’t be there (in the spirit of separating content, presentation and behavior in the code). I cleaned the code a bit: completely separating the Javascript code to another file so the HTML will not be cluttered, and added an if (GBrowserIsCompatible()) check.

The XML is still as it is. Will have to consult with the content developers on what other info to include. And I’m still not sure about the GPS locations because I just gathered the samples from Global Gazetteer Version 2.1. Will have to check with the GIS people on Monday.

For now, here it is. It’s really not that much: there’s a list of interesting points on the left that you can click to display info on the map. I’ll be adding the relevant information soon, such as the websites, statistics and related links. The points, by the way, are some areas where our project is currently working in.

Written by Ian Dexter

December 17th, 2005 at 12:59 pm

Posted in Work

Tagged with , , , , , ,

Playing with Google Maps

without comments

I’m messing around with the Google Maps API for an app I’ll be deploying for my project.

The idea is to map all available (preferably web-based) information on agriculture in the Philippines. The resulting map can also be used to display other agricultural information resources like available seed stocks, farmers cooperatives, learning centers for extension workers and farmers, etc. For now, I’ll just be displaying the locations.

The (very) alpha app (baby steps here…) uses GPS waypoints from an XML file, then display them as markers on the map, with the corresponding info in the infowindows. Our GIS people here at the office were off on a field study so I couldn’t grab the available GPS data. (Memo to self: suggest a central {shareable} repo for their accumulated data.) I had to grab some sample GPS points from WayPointsDotPH. I use dBoracay for, sort of, my centerpoint in the map. Heh.

There’s plenty of room for improvement. The XML, for example, is flat and could be a lot richer. (Had to snatch the sample XML file from the Google Maps API reference.) The infowindows should also display a lot more, er, info. I’ll look it over during the break. Not! (It’s Christmas, my goodness! :)) But this project is definitely worth the extra hours.

Written by Ian Dexter

December 16th, 2005 at 5:12 pm

Posted in Work

Tagged with , , , , , ,