Advertisement

01.02.2008 at 01:48PM PST, ID: 23054308
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

Omit InfoWindow in embedded Google Map

Tags: Google Maps
I am embedding a Google Map on an html page using an iframe as copied from "Link to this page" on the desired Google Map.  The map on my page opens with the InfoWindow bubble obscuring a significant part of the map.  How can I cause it to open without the InfoWindow?

Using "Link to this page"/"Customize and preview embedded map",  I can set the map size and zoom I want, and those specifications are reflected in the parameters of the resulting URL.  Closing the InfoWindow does not seem to be reflected in any parameter.  The best parameter list I can find is <http://mapki.com/wiki/Google_Map_Parameters>, which may be out of date (I can't get the InfoWindow Display (iwd) parameter to work).

I don't believe using the Google Map API is an option for me as its Terms of Use require updates to the API to be tracked, and I will be turning over the designed Web site to my customer upon its completion.  They would not be happy if it stopped working after six months.

Thanks.
Start your free trial to view this solution
Question Stats
Zone: Web Development
Question Asked By: DCraft99
Solution Provided By: rweil
Participating Experts: 1
Solution Grade: A
Views: 82
Translate:
Loading Advertisement...
01.02.2008 at 02:39PM PST, ID: 20568887

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
01.02.2008 at 04:21PM PST, ID: 20569470

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
01.02.2008 at 07:13PM PST, ID: 20570065

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
01.13.2008 at 05:29PM PST, ID: 20650143

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Loading Advertisement...
Microsoft
  • Internet Protocols
  • Applications
  • Development
  • OS
  • Hardware
  • Windows Security
Apple
  • Operating Systems
  • Hardware
  • Programming
  • Networking
  • Software
Internet
  • Search Engines
  • File Sharing
  • WebTrends / Stats
  • Spy / Ad Blockers
  • Web Browsers
  • New Net Users
  • Web Development
  • Chat / IM
  • Anti Spam
  • Web Servers
  • Anti-Virus
  • Email Clients
Gamers
  • Tips
  • Online / MMORPG
  • Puzzle
  • Emulators
  • Action / Adventure
  • Role Playing
  • Consoles
  • Game Programming
  • Strategy
  • Sports
  • Misc
  • Computer Games
Digital Living
  • Hardware
  • New Net Users
  • New Users
  • Software
  • Digital Music
  • Gaming World
  • Home Security
  • Apple
  • Networking Hardware
Virus & Spyware
  • Vulnerabilities
  • IDS
  • Encryption
  • Anti-Virus
  • Operating Systems Security
  • Software Firewalls
  • WebApplications
  • Cell Phones
  • Operating Systems
  • Internet
  • Hardware Firewalls
Hardware
  • Handhelds / PDAs
  • Displays / Monitors
  • Components
  • Networking Hardware
  • Peripherals
  • Laptops/Notebooks
  • Storage
  • Servers
  • Desktops
  • New Users
  • Misc
  • Apple
Software
  • System Utilities
  • Industry Specific
  • Network Management
  • Photos / Graphics
  • Page Layout
  • VMWare
  • Misc
  • Web Development
  • OS
  • CYGWIN
  • Voice Recognition
  • Message Queue
  • Quality Assurance
  • Security
  • Firewalls
  • MultiMedia Applications
  • Development
  • Database
  • Office / Productivity
  • Business Management
  • OS/2 Apps
  • Server Software
  • Internet / Email
ITPro
  • OS
  • Storage
  • Encryption
  • Operating Systems Security
  • Apple Hardware
  • Laptops & Notebooks
  • Servers
  • Networking Hardware
  • Peripherals
  • Devices
  • Displays / Monitors
  • WebTrends / Stats
  • Search Engines
  • Firewalls
  • WebApplications
  • IDS
  • Vulnerabilities
  • Email Clients
  • File Sharing
  • Spy / Ad Blockers
  • Web Browsers
  • Web Servers
  • Networking
  • Anti-Virus
  • Chat / IM
  • Anti Spam
Developer
  • Web Servers
  • Web Browsers
  • Game Programming
  • Dev Tools
  • Industry Specific
  • Office / Productivity
  • Database
  • CYGWIN
  • Web Development
  • Search Engines
  • File Sharing
  • WebTrends / Stats
  • Programming
  • Content Management
  • Application Servers
  • Protocols
Storage
  • Removable Backup Media
  • Storage Technology
  • Servers
  • Grid
  • Remote Access
  • Backup / Restore
  • Misc
  • Hard Drives
OS
  • Miscellaneous
  • Security
  • Development
  • Linux
  • VMWare
  • MainFrame OS
  • Unix
  • Apple
  • OS / 2
  • AS / 400
  • BeOS
  • Microsoft
  • VMS / OpenVMS
Database
  • Oracle
  • Miscellaneous
  • MySQL
  • Software
  • Sybase
  • Contact Management
  • PostgreSQL
  • Data Manipulation
  • Clarion
  • InterSystems Cache
  • Siebel
  • MUMPS
  • OLAP
  • SQLBase
  • SAS
  • GIS & GPS
  • 4GL
  • Berkeley DB
  • DB2
  • Informix
  • Interbase / Firebird
  • FoxPro
  • Reporting
  • LDAP
  • Filemaker Pro
  • MS SQL Server
  • dBase
  • MS Access
Security
  • Misc
  • Web Browsers
  • Software Firewalls
  • Operating Systems Security
  • File Sharing
  • Spy / Ad Blockers
  • Vulnerabilities
  • WebApplications
  • IDS
  • Anti-Virus
  • Encryption
  • Anti Spam
  • Email Clients
  • VPN
  • Chat / IM
Programming
  • Editors IDEs
  • Installation
  • Handhelds / PDAs
  • Multimedia Programming
  • System / Kernel
  • Algorithms
  • Game
  • Signal Processing
  • Project Management
  • Open Source
  • Database
  • Misc
  • Languages
  • Processor Platforms
  • Theory
Web Development
  • Scripting
  • Blogs
  • Web Servers
  • Software
  • Search Engines
  • Web Graphics
  • Images
  • Internet Marketing
  • Images and Photos
  • Components
  • Document Imaging
  • Web Languages/Standards
  • Illustration
  • WebApplications
  • Fonts
  • WebTrends / Stats
  • Authoring
  • Digital Camera Software
  • Miscellaneous
Networking
  • Protocols
  • Apple Networking
  • Network Management
  • Message Queue
  • Application Servers
  • Content Management
  • File Servers
  • Email Servers
  • Misc
  • Java Editors & IDEs
  • Wireless
  • Networking Hardware
  • Backup / Restore
  • System Utilities
  • ISPs & Hosting
  • Web Servers
  • Storage Technology
  • Removable Backup Media
  • Servers
  • Broadband
  • Grid
  • OS / 2
  • Novell Netware
  • Unix Networking
  • Windows Networking
  • Security
  • Telecommunications
  • Operating Systems
  • Linux Networking
Other
  • Community Advisor
  • Lounge
  • Community Support
  • New Net Users
  • Philosophy / Religion
  • Math / Science
  • Miscellaneous
  • URLs
  • Expert Lounge
  • Politics
  • Puzzles / Riddles
Community Support
  • Suggestions
  • New to EE
  • New Topics
  • Community Advisor
  • CleanUp
  • Announcements
  • General
  • Feedback
  • Input
  • EE Bugs
 
01.02.2008 at 02:39PM PST, ID: 20568887
an ugly way around it is to create a temporary KML file with the desired zoom, size, and markers. Then feed the KML file to maps.google.
 
01.02.2008 at 04:21PM PST, ID: 20569470
That type solution should work fine for me--the map(s) are basically fixed at the time of site design.  KML is new to me.  Kinda neat.

I'm having trouble referencing the KML file from the embedded iframe.  Here's what I've tried, and where I'm stuck (numbers in square brackets reference code snippets below):
- view map I want at Google Maps;
- "Link to this page"/"Customize and preview embedded map" to refine iframe params and centering, and get HTML [1];
- plug the iframe src param into a browser address bar, fixing ampersands and changing "output=embed" to "output=kml" [2];
- save the resulting kml file [3] to a Web server;

Now, how do I reference the KML file from the iframe (for embedding)?  I tried using src="q=<theKMLFileURL>" [4], and I get not only the map but the Google UI outside the map (search text area, etc.) stuffed into my iframe.  I tried adding back in the "embed" specification, imagining that would suppress all but the map, src="q=<theKMLFileURL>&amp;source=embed" [5] and get the "Google Error Forbidden" message.  Tried several other permutations, but to no avail.

I notice the <styleURL> in the KML.  Perhaps I need to adapt that?

Thanks!
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
[1] From Google Maps "Link to this page":
 
<iframe width="270" height="170" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps?f=q&amp;hl=en&amp;geocode=&amp;time=&amp;date=&amp;ttype=&amp;q=1600+Amphitheatre+Parkway,+94043&amp;sll=37.388891,-122.075212&amp;sspn=0.011781,0.010321&amp;ie=UTF8&amp;om=1&amp;s=AARTsJp_83qfLjgMbgZ7nNcJmn8mr0FA9Q&amp;ll=37.423685,-122.081022&amp;spn=0.011588,0.023174&amp;z=14&amp;output=embed"></iframe>
<br />
<small><a href="http://maps.google.com/maps?f=q&amp;hl=en&amp;geocode=&amp;time=&amp;date=&amp;ttype=&amp;q=1600+Amphitheatre+Parkway,+94043&amp;sll=37.388891,-122.075212&amp;sspn=0.011781,0.010321&amp;ie=UTF8&amp;om=1&amp;ll=37.423685,-122.081022&amp;spn=0.011588,0.023174&amp;z=14&amp;source=embed" style="color:#0000FF;text-align:left">View Larger Map</a></small>
 
[2] Doctored URL to get KML:
 
http://maps.google.com/maps?f=q&hl=en&geocode=&time=&date=&ttype=&q=1600+Amphitheatre+Parkway,+94043&sll=37.388891,-122.075212&sspn=0.011781,0.010321&ie=UTF8&om=1&s=AARTsJp_83qfLjgMbgZ7nNcJmn8mr0FA9Q&ll=37.423685,-122.081022&spn=0.011588,0.023174&z=14&output=kml
 
[3] Resulting KML:
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://earth.google.com/kml/2.0">
    <Placemark>
        <name>1600 Amphitheatre Pkwy, Mountain View, CA 94043</name>
        <address>1600 Amphitheatre Pkwy, Mountain View, CA 94043</address>
        <styleUrl>root://styleMaps#default+nicon=0x304+hicon=0x314</styleUrl>
        <Point>
            <coordinates>-122.081785,37.423127,0</coordinates>
        </Point>
        <LookAt>
            <longitude>-122.081022</longitude>
            <latitude>37.423685</latitude>
            <range>1621.619141</range>
        </LookAt>
    </Placemark>
</kml>
 
[4] referencing HTML:
 
<iframe width="270" height="170" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps?q=http:.../maps.kml"></iframe>
 
[5] referencing HTML with "embed":
 
<iframe width="270" height="170" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps?q=http:.../maps.kml&output=embed"></iframe>
Open in New Window
 
01.02.2008 at 07:13PM PST, ID: 20570065

I suspect the <style> has to do with the style of the individual points, polylines, etc.

See  http://code.google.com/apis/kml/documentation/kml_tags_beta1.html#style

I also suspect that to get what you want, you will have to go with the google maps API.  If you keep it simple I would guess that it will work for a long time.
Accepted Solution
 
01.13.2008 at 05:29PM PST, ID: 20650143
I've ended up using the API.  I think you (rweil) are correct that, with simple usage, I will diminish the probability of being hit with an incompatible update to the API, so the solution will continue to work.

I ran into problems with locations mapping to different map positions via the API compared to the main GoogleMaps.  This is not the commonly-encountered geocoder (f(streetAddr)=latitude,longitude) issue.  The locations for a particular latitude and longitude actually show up several hundred yards apart in the Tele Atlas data (which GoogleMaps uses for embedding and API access) compared to the NAVTEQ data (which they use at the main GoogleMaps).  I will specify the latitude and longitude differently as required by each system (yech; problematic as they improve their mapping).

I've summarized my findings and solutions at http://SeizeTruth.com/Tech/GoogleMaps.

Thanks, rweil!

--Dan
 
 
01.14.2008 at 02:19AM PST, ID: 20652042
>> The locations for a particular latitude and longitude actually show up several hundred yards apart in GoogleMaps API access and  GoogleMaps).

Is this true for all addresses?

If you are feeding it the address it is probably caused by someone moving the marker.  See http://maps.google.com/support/bin/answer.py?answer=68474&query=move+marker&topic=&type=#modify

If you are feeding it the address it might be caused by different base data/algorithms for translating house number to distance along a street.

I wonder if that is caused by each system using different datum? For an example of the difference  see:  http://www.adaweb.net/devserv/survey/verifica/thirteen.htm   - doubt it, but compare the amount of shift caused by datum change. See lower corner of USGS topgraphic quad for the area.

I wonder if it is caused by different registration of the mapping to the aerial photography? I have noticed that streets that used to be missed aligned with the aerial photography are better aligned.

Not only that, but as they update their mapping the picture under the lat/log might change.
 
 
01.14.2008 at 10:35AM PST, ID: 20655296
>> The locations for a particular latitude and longitude actually show up several hundred yards apart in GoogleMaps API access and  GoogleMaps).
>
> Is this true for all addresses?
>
> If you are feeding it the address it is probably caused by someone moving the marker.

I am specifying latitude and longitude, so it's neither the geocoding (mapping from address to lat/long) nor someone moving an address marker.  I really am trying to avoid as many possibly-error-inducing components as I can!

I suspect it's a registration issue, but also wonder about precision.  How precise is lat/long given by hours to six decimal places?  I can't imagine them choosing a standard too imprecise for the intended use, but do notice many of the differences in the thirteen.htm you reference are several decimal places down in the seconds.  Anyway, that's curiosity.  

Practically, mapping of lat/long differing by several hundred yards on the two systems puts my customer's site half way down the next block, which is not acceptable.  I will manually enter the correction for my customer's address so it's correct at Google Maps (when looked up by address), but that won't affect the embedded map marker location (which is specified by lat/long).

> Not only that, but as they update their mapping the picture under the lat/log might change.

What I meant by "yech; problematic as they improve their mapping" is that any compensation I make for the discrepency will backfire as their lat/long locating improves.  If there are registration problems, they're going to have this issue anyway (with all the address locations people have "corrected") as they improve registration, though they could update algorithmically their database of corrections to reflect the new locating with each improvement.

Sigh.  I am so far past the three hours I had allocated for this task :-).
 
 
01.14.2008 at 11:12AM PST, ID: 20655635
Apparently a known bug, I mean feature  :-)       Google says

Why does the API Geocoder provide different locations than Google Maps?

The API geocoder and Google Maps geocoder rely on two different data sources. This is because the API tiles use a different data source than the main Google Maps, and we wanted to make sure the points returned from the geocoder would match up with the tiles displayed. The API geocoder occasionally gets updated with new data, so you can expect to see results changing or improving over time.
See http://code.google.com/support/bin/answer.py?answer=60738

I think what that means is that you need to Geocode (determine lat/long) in the same system (API or Maps) that you plan to use for display. i.e. you can not use maps.Google.com to determine lat/long to be used in the API,  

Sigh
 
 
 
20080236-EE-VQP-29 / EE_QW_2_20070628