Go Back   The macosxhints Forums > OS X Help Requests > Applications



Reply
 
Thread Tools Rate Thread Display Modes
Old 10-06-2009, 08:37 PM   #1
Phosphor
Prospect
 
Join Date: Feb 2005
Location: Lancaster PA
Posts: 45
Capture large GoogleMaps—code help, please

SIGNAL FLARE TO HTML/CODE GENIUSES!!!

Help with capturing LARGE Google Map images...

I tried the tutorial at the link below, and followed it to the letter.

http://www.dq.winsila.com/tips-trick...ogle-maps.html

After saving the text file as "***.html" I try to open it in Firefox and all I see is the actual code. It doesn't open the big map in my browser window. JFI, I tried also after disabling the NoScript and AdBlock Plus extensions. I also made sure to allow java, javascript and pop-up windows in Firefox prefs...that's all I can figure out to do.

Any help would be greatly appreciated.

In case anyone can suss the problem just by looking at the code, here it is. I'm using Seinfeld's apartment address from the TV show as an example. I tried posting the code at first, but it stretched out all on one line...hence the screen shot of the code:

Phosphor is offline   Reply With Quote
Old 10-06-2009, 08:48 PM   #2
cwtnospam
League Commissioner
 
Join Date: Jan 2005
Posts: 8,361
Does it need to be done with a script?

Command-shift-4 works for me.
Attached Thumbnails
Click image for larger version

Name:	Screenshot.jpg
Views:	18
Size:	71.8 KB
ID:	3559  
cwtnospam is online now   Reply With Quote
Old 10-06-2009, 09:02 PM   #3
Phosphor
Prospect
 
Join Date: Feb 2005
Location: Lancaster PA
Posts: 45
I'm looking to grab BIG images. I know it's possible...I've seen the results, and know that it was done on a Mac.

Ummm...look at the (image of...) the code.

Now, try to capture a 6,000pxW X 6000pxH GoogleMap using standard Mac OS screen capture commands.

No can do.

Thanks for playing, though! I appreciate your attempt!

Phosphor is offline   Reply With Quote
Old 10-06-2009, 09:44 PM   #4
schwartze
All Star
 
Join Date: Dec 2002
Location: NYC
Posts: 918
Did you do try to open it in Firefox from File -> Open File or just clicking on it?

I followed the directions and was able to open a map of the Seinfeld Diner (which is really horrible by the way - don't ever pay to eat there).
__________________
Many things are easier to break than to fix. - Craig R. Arko
schwartze is online now   Reply With Quote
Old 10-06-2009, 10:12 PM   #5
Las_Vegas
League Commissioner
 
Join Date: Sep 2004
Location: Las Vegas
Posts: 5,875
Get info on the file and verify that is isn't actually titled "****.html.txt"
__________________
Las_Vegas

-- Ts'i mahnu uterna ot twan ot geifur hingts uto.
-- Sometimes I wonder… Why is that Frisbee getting Larger? …and then it hits me.
-- Disposable thumbs make me specialer than most animals…
Las_Vegas is offline   Reply With Quote
Old 10-06-2009, 10:15 PM   #6
Phosphor
Prospect
 
Join Date: Feb 2005
Location: Lancaster PA
Posts: 45
Quote:
Originally Posted by schwartze
Did you do try to open it in Firefox from File -> Open File or just clicking on it?

Yes. Also tried double-clicking on it. Also tried dragging the file from my desktop to the URL/Location field. All I get is a text display of the code.

Also tried opening it in Safari (4.x).

No joy!
Phosphor is offline   Reply With Quote
Old 10-06-2009, 10:28 PM   #7
Phosphor
Prospect
 
Join Date: Feb 2005
Location: Lancaster PA
Posts: 45
Quote:
Originally Posted by Las_Vegas
Get info on the file and verify that is isn't actually titled "****.html.txt"

Nope. It's an HTML file. As soon as I saved it initially out of TextEdit, it showed up on the desktop as Firefox document icon. If it was a text file, it would have generated a plain old dog-eared document icon. Besides, I always make the conscious choice to show extensions in file names. ALWAYS.

This is a curious one.

Apologies for what follows:

Code:
<iframe width="6000" height="6000" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps?f=q&amp;source=s_q&amp;hl=en&amp;geocode=&amp;q=129+W.+81st+Street+New+York+NY&amp;sll=37.0625,-95.677068&amp;sspn=43.393645,63.017578&amp;ie=UTF8&amp;hq=&amp;hnear=129+W+81+St,+New+York,+10024&amp;ll=40.783614,-73.97535&amp;spn=0.000636,0.000962&amp;t=h&amp;z=20&amp;output=embed"></iframe><br /><small><a href="http://maps.google.com/maps?f=q&amp;source=embed&amp;hl=en&amp;geocode=&amp;q=129+W.+81st+Street+New+York+NY&amp;sll=37.0625,-95.677068&amp;sspn=43.393645,63.017578&amp;ie=UTF8&amp;hq=&amp;hnear=129+W+81+St,+New+York,+10024&amp;ll=40.783614,-73.97535&amp;spn=0.000636,0.000962&amp;t=h&amp;z=20" style="color:#0000FF;text-align:left">View Larger Map</a></small>
Phosphor is offline   Reply With Quote
Old 10-06-2009, 10:30 PM   #8
Phosphor
Prospect
 
Join Date: Feb 2005
Location: Lancaster PA
Posts: 45
I even tried browsers back to Mozilla 1.8.7 and Firefox 1.5.0.x.

No go there either. Just seeing code-as-text displayed in my browser windows.
Phosphor is offline   Reply With Quote
Old 10-06-2009, 11:00 PM   #9
Las_Vegas
League Commissioner
 
Join Date: Sep 2004
Location: Las Vegas
Posts: 5,875
Add <html> to the beginning of the file and </html> to the end.
__________________
Las_Vegas

-- Ts'i mahnu uterna ot twan ot geifur hingts uto.
-- Sometimes I wonder… Why is that Frisbee getting Larger? …and then it hits me.
-- Disposable thumbs make me specialer than most animals…
Las_Vegas is offline   Reply With Quote
Old 10-06-2009, 11:06 PM   #10
Phosphor
Prospect
 
Join Date: Feb 2005
Location: Lancaster PA
Posts: 45
Added the <html> tags and it's STILL rendering as text!

Geez, Tom...I wonder what the heck you have config'ed differently on your system?
Phosphor is offline   Reply With Quote
Old 10-06-2009, 11:15 PM   #11
acme.mail.order
Hall of Famer
 
Join Date: Sep 2003
Location: Tokyo
Posts: 4,419
Google Maps is a very complex javascript-driven layered document - saving a plain html won't really do it. If you want to grab an arbitrarily-large image you will have to work out how to get the map slices from Google's server and reassemble them. Don't expect Google to be helpful here.
acme.mail.order is online now   Reply With Quote
Old 10-06-2009, 11:39 PM   #12
Las_Vegas
League Commissioner
 
Join Date: Sep 2004
Location: Las Vegas
Posts: 5,875
The <html> tags worked perfectly in a new text file with your data in the previous posting. It worked in Safari, Firefox and even TextEdit!
__________________
Las_Vegas

-- Ts'i mahnu uterna ot twan ot geifur hingts uto.
-- Sometimes I wonder… Why is that Frisbee getting Larger? …and then it hits me.
-- Disposable thumbs make me specialer than most animals…
Las_Vegas is offline   Reply With Quote
Old 10-07-2009, 02:10 AM   #13
Phosphor
Prospect
 
Join Date: Feb 2005
Location: Lancaster PA
Posts: 45
Since I can't seem to get this to wok in any version of any browser I have installed, I'm starting to think maybe there's something I have in ../Library/Internet Plug-Ins that might be preventing it.

I'm running OS X 10.4.11, and I regularly perform routine a maintenance using ONYX. Generally, performance is just fine, except for stuttery Flash-wrapped content (see my amateur analysis/bi‡ch about that here).

Here's a screen shot of my system's Internet plugins...see anything that may be suspect?

Phosphor is offline   Reply With Quote
Old 10-08-2009, 12:09 AM   #14
Phosphor
Prospect
 
Join Date: Feb 2005
Location: Lancaster PA
Posts: 45
Solution found!

My pal James Dempsey from The Graphic Mac popped into my thread about this over at MacTech's forum and offered the following solution:

Quote:
Follow the steps as stated in the first link. When you paste the code into TextEdit, make sure you go under the Format menu and choose Make Plain Text (Command + Shift + T). Now go to the Save As dialog box, make sure that just below the file list the dropdown menu "Plain Text Encoding" has Unicode (UTF-8) selected. Name your file and add .html as the extension.

That should work for you. The key is making sure it is a Plain Text file before saving

For practically ever, I've had TextEdit's preferences set to create all new documents in *.rtf (Rich Text Format). Command + Shift + T on the selected text makes the document Plain Text, and makes it work.

Thanks to those here who participated...and help me thank James for getting it sussed by taking a jump over to his The Graphic Mac blog for "Tips, reviews & more on all things OSX & graphic design."
Phosphor is offline   Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 10:33 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Site design © Mac Publishing LLC; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of Mac Publishing LLC.