Remote Sensing Tools

Control over reality.™

IKONOS 4,3,2 false-color composite, converted to pseudo natural-color using the CIR to Naturaltone plug-in. Image courtesy of GeoEye.
shaggy ringtonesfree moaning ringtonesmp3 to ringtonesblind to you ringtone

Google Embeddable Maps Issue

August 25th, 2007 · 4 Comments · Trackback/Ping · Share This

Nikolas Schiller discovered an interesting problem associated with the new ‘embeddable’ Google Maps. I tried to suggest a couple things to correct for this, but even after seeing if that’d work — I’m also realizing that it’s a major flaw.

The problem is that Google Maps doesn’t allow you to save a link with the target="_blank" attribute — thus, any links being clicked-on will load directly into the iframe. I attempted to edit the link that’s in my own map example in the previous post, via the bubble editor in My Maps, and found that even if you include the target attribute, Google Maps strips it out instead of saving it.

The only way around this for now, is to right-click and chose Open in New Window (or simply Shift + Click) — to open whatever’s linked into a new browser window. Until Google Maps adds some kind of method to have the links default to opening in a new window (or the entire page, instead of the iframe) — or most preferably (see updates), allowing one to add the target attribute — this will create a major caveat in presentable uses for maps being published in Web pages.

Updates

The Google Maps team must have been up toiling away on this, as I noticed this morning that you can include the target="_blank" attribute to your links — and they will save.

Alternatively, and if you’re worried about correct W3C semantics (since the target attribute was depricated in the STRICT DTD), you can use the following method and it will save as well — and not conflict with any validation services.:

<a href="http://www.link-to-url-here.org/" onclick="return !window.open(this.href);">link-text-here</a>

I only discovered this, because I was experimenting this morning with varying Javascript methods, to see how that might work-out. Upon realizing that I could save the above method, I then attempted to save using the target attribute — and that’s when magic happened.

The Javascript thing is rather interesting to me now. I wonder what other little rabbits can be pulled out of the hat with using just a wee bit of Javascript in the bubbles.

Scratch that. It was allowing me to save those link methods this morning and up to when I posted this — but unless they’re in the process of updating, it isn’t allowing me to Save the links once again.

I’ve spent the last day and night trying to come-up with anything that’d work outside of the iframe. I’m now officially ready to leave this alone and wait until the Google Maps team implements a method to open links outside the iframe.

The options that I’d like to have, is to load the links in the same document window (similar to _parent), and to open in a new browser window (similar to _blank). By including these two options — it would provide ways of serving up linked content through the iframe that would also not be ‘intrusive’ to users who prefer to not have links externally loaded in a new window. This also has implications in mobile reading, as well as Kiosk reading. There’s also the issue of users who turn Javascript off, which is why I’d prefer to see Google provide a solution for this that’ll work with those considerations.

Among the tests were up to eight different Javascript methods [and a number of variations of those methods] — all of which produced ‘access denied’ or ‘permission denied’ errors. Somewhat frustrating.

One of the things that I did notice in Google’s code, was that they’re using the STRICT DTD, yet they have the target attribute in use in various places. I scratched my head a little bit over this, considering that target was stricken from the STRICT DTD paradigm. I also noticed that in the HTML’s code editor, the br tags are not being closed with a space before the slash — and that for some reason everytime I save, additional p tags are added.

Continued…
Google Embeddable Maps Issue, Part 2

Categories: Web Mapping
Tags: , , ,

Advertisement

4 responses so far ↓

  • 1 Jaan Kanellis Aug 28, 2007 at 5:31 pm

    Great write up on this thus far. I am also eager to get the windows to open in a new window. Look forward to a Google fix here.

  • 2 target="_blank" Google Maps - WebProWorld Aug 28, 2007 at 5:41 pm

    […] target="_blank" Google Maps Good thread on this here: Google Embeddable Maps Issue __________________ KBK Marketing | Jaan Kanellis Search Marketing Blog | Be the best and a link […]

  • 3 Jaan Kanellis Sep 5, 2007 at 5:57 pm

    Still no help from Google on this issue?

  • 4 Daniel Sep 6, 2007 at 6:44 am

    Jaan,

    You might want to go to the main page and read the most recent posts here on the Web site.

    I will add a note to the bottom of this page, however, to point readers to the most recent post concerning the issue.

Respond to “Google Embeddable Maps Issue”