473,387 Members | 1,603 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

How do I show the satellite view of google maps

I have a button on a form which when pressed displays a google map of the
address.

Code is

Private Sub Googlemap_Click()

MakeURL ("")

End Sub
Private Sub MakeURL(strType As String)

On Error GoTo Err_MakeURL

Dim strURL As String
Dim objBrowser As Object

strURL = CreateUrl(MemAdd1, TownID.Column(0), County, PostCode)

'If strType = "Driving" Then
'strURL = strURL & "+" & "to" & "+" & CreateUrl(Me.ToAddress,
Me.ToCity, Me.ToState, Me.ToZipCode)
'End If
strURL = "http://maps.google.com/maps?q=" & strURL &
"&iwloc=A&hl=en; t=h"

Dim obj As Object
Set obj = CreateObject("InternetExplorer.Application")
With obj
.Navigate2 strURL
.Visible = True
End With
Set obj = Nothing

Exit_MakeURL:
Exit Sub

Err_MakeURL:
MsgBox Err.Description
Resume Exit_MakeURL

End Sub

Works fine as far as it goes, but shows either the Map view, Satellite view
or Terrain View, depending on the last time I accessed the maps. Low do I
force it to show the Satellite view and how can I set the zoom level

Thanks for any advice

Phil

Jul 27 '08 #1
3 4397
Hi Phil,

I believe you will have to post that question to Google Maps to see if there
is a switch you can include in the URL.

Bonnie
http://www.dataplus-svc.com

Phil Stanton wrote:
>I have a button on a form which when pressed displays a google map of the
address.

Code is

Private Sub Googlemap_Click()

MakeURL ("")

End Sub

Private Sub MakeURL(strType As String)

On Error GoTo Err_MakeURL

Dim strURL As String
Dim objBrowser As Object

strURL = CreateUrl(MemAdd1, TownID.Column(0), County, PostCode)

'If strType = "Driving" Then
'strURL = strURL & "+" & "to" & "+" & CreateUrl(Me.ToAddress,
Me.ToCity, Me.ToState, Me.ToZipCode)
'End If
strURL = "http://maps.google.com/maps?q=" & strURL &
"&iwloc=A&hl=en; t=h"

Dim obj As Object
Set obj = CreateObject("InternetExplorer.Application")
With obj
.Navigate2 strURL
.Visible = True
End With
Set obj = Nothing

Exit_MakeURL:
Exit Sub

Err_MakeURL:
MsgBox Err.Description
Resume Exit_MakeURL

End Sub

Works fine as far as it goes, but shows either the Map view, Satellite view
or Terrain View, depending on the last time I accessed the maps. Low do I
force it to show the Satellite view and how can I set the zoom level

Thanks for any advice

Phil
--
Message posted via http://www.accessmonster.com

Jul 27 '08 #2
Phil Stanton wrote:
I have a button on a form which when pressed displays a google map of the
address.

Code is

Private Sub Googlemap_Click()

MakeURL ("")

End Sub
The code looks familiar. :)

I wouldn't know. You might want to go to google maps then press the
"see more maps" link then Developer Tools. Maybe look at the API link.
>
Private Sub MakeURL(strType As String)

On Error GoTo Err_MakeURL

Dim strURL As String
Dim objBrowser As Object

strURL = CreateUrl(MemAdd1, TownID.Column(0), County, PostCode)

'If strType = "Driving" Then
'strURL = strURL & "+" & "to" & "+" & CreateUrl(Me.ToAddress,
Me.ToCity, Me.ToState, Me.ToZipCode)
'End If
strURL = "http://maps.google.com/maps?q=" & strURL &
"&iwloc=A&hl=en; t=h"

Dim obj As Object
Set obj = CreateObject("InternetExplorer.Application")
With obj
.Navigate2 strURL
.Visible = True
End With
Set obj = Nothing

Exit_MakeURL:
Exit Sub

Err_MakeURL:
MsgBox Err.Description
Resume Exit_MakeURL

End Sub

Works fine as far as it goes, but shows either the Map view, Satellite view
or Terrain View, depending on the last time I accessed the maps. Low do I
force it to show the Satellite view and how can I set the zoom level

Thanks for any advice

Phil
Jul 27 '08 #3
Ah Salad. No point in re-inventing the wheel

Will try Google maps

Thanks

Phil

"Salad" <oi*@vinegar.comwrote in message
news:cZ******************************@earthlink.co m...
Phil Stanton wrote:
>I have a button on a form which when pressed displays a google map of the
address.

Code is

Private Sub Googlemap_Click()

MakeURL ("")

End Sub
The code looks familiar. :)

I wouldn't know. You might want to go to google maps then press the "see
more maps" link then Developer Tools. Maybe look at the API link.
>>
Private Sub MakeURL(strType As String)

On Error GoTo Err_MakeURL

Dim strURL As String
Dim objBrowser As Object

strURL = CreateUrl(MemAdd1, TownID.Column(0), County, PostCode)

'If strType = "Driving" Then
'strURL = strURL & "+" & "to" & "+" &
CreateUrl(Me.ToAddress, Me.ToCity, Me.ToState, Me.ToZipCode)
'End If
strURL = "http://maps.google.com/maps?q=" & strURL &
"&iwloc=A&hl=en; t=h"

Dim obj As Object
Set obj = CreateObject("InternetExplorer.Application")
With obj
.Navigate2 strURL
.Visible = True
End With
Set obj = Nothing

Exit_MakeURL:
Exit Sub

Err_MakeURL:
MsgBox Err.Description
Resume Exit_MakeURL

End Sub

Works fine as far as it goes, but shows either the Map view, Satellite
view or Terrain View, depending on the last time I accessed the maps. Low
do I force it to show the Satellite view and how can I set the zoom level

Thanks for any advice

Phil

Jul 28 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Nils Erik Asmundvaag | last post by:
Hello I hope someone is able to help me with this frustrating problem. I have a C# web project in Visual Studio .NET 2003. I want to support Swedish and Norwegian texts and have put the texts...
6
by: autogoor | last post by:
If you visit maps.google.com and select "satellite", you get a pic. But it is not <img href="...">, and it gets quick nice response to mouse movements and click. Does anyone know how this is...
6
by: James | last post by:
I have two question regarding the version resource that is generated for a satellite assembly. 1) I have a file in my C# console app project called StringResources.en-US.resx. When I build the...
3
by: gjenglish | last post by:
I have recently migrated an ASP.NET 1.1 web application to ASP.NET 2.0. In this application I am storing all my resources in satellite assemblies and I am accessing them via the ResourceManager...
17
by: MeerkatInFrance | last post by:
There comes a time when you know you are not going to be able to work something out yourself, however hard you try. I have reached that moment. I have a master page and a slave page (or whatever...
1
by: xahlee | last post by:
Elisp Tutorial: Make Google Earth Xah Lee, 2006-12 This page shows a example of writing a emacs lisp function that creates a Google Earth file, and creates a link to the file, as well a link...
5
by: xml .NET group | last post by:
Is there any book on using ASP.NET for Google Maps. For example, following books: http://www.amazon.com/Beginning-Google-Maps-Applications-Ajax/dp/1590597079/ ...
3
by: Harch84 | last post by:
Hi I am using a javascript for google maps to geocode two locations and I thin want to retrieve the two coordinates and enter them into a Perl Script. Now I have managed to set up the page with the...
2
by: H.Schmidt | last post by:
Hi! im would like to get address informations like city, state or zip for a given GPoint. Is it possible (i found nothing in Google maps Api)? Thanks in advance
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.