Last night I updated MyMap Explorer for Google Maps to make it more future-proof and improve KML support. The most recent version is available on the project website.
The most important changes that were made are:
- MyMap Explorer is now locked to Google Maps API version 2.150, so version 1.2 will not break on July 1 when API versions prior to 2.140 are depreciated
- MyMap Explorer now supports area overlays on the maps, not simply points as before
- There is some improved error-checking
This update was initiated by a fellow named Joel asking questions and reporting bugs. Thanks Joel!
Back in November, Heri asked for a relatively simple way to integrate his Technology Map of Montreal into Montréal Tech Watch, and MyMap Explorer is the result, (see it live on the Technology Map of Montréal), It takes the KML description of a map from Google Maps and adds it to a map created using the Google Maps API. It also provides an alphabetized, clickable list of the points on the map so that your users don’t have to click on each marker to find the location that they are looking for.
I have some features that I still plan on adding, but want to get the basic script out there and into use. I’ve released the code on Google Code under an MIT license so you are all free to use MyMap Explorer, and contribute if you feel up to it.
The demo is here.
We hear it all of the time, “Don’t open links in a new window.” However, sometimes it makes sense, whether it’s because a client insists on it, or because way the site is meant to be used, (and is used by its users), works better if some, links are opened in new windows. The fact of the matter is that sometimes you’ve just got to open a new window.
But, what happens when someone else decides to close that window? Confused users, that’s what.
Here’s the code:
if (typeof(window.opener) != 'undefined')
var queryString = window.location.search.substring(1);
if (queryString.indexOf('cliententry=true') == -1)
window.opener.top.location = window.location;
//We Ignore this error becuase the user
//may have closed the opener
Seriously! I was disgusted. There is no better way to mess with a user than that!