Solved

How to parametrize bing map on webbrowser control

Posted on 2016-10-08
6
78 Views
Last Modified: 2016-10-10
Im am developing a small ms/access application. I have a ms/access 2016 database with Lat/Lon coordinates for several types of points and, for them, I want to show, on the web browser, where they are and what they are, using colours and pushpin types.
 
I am already able to center the map where it needs, provide appropriate zoom levels, etc. setting the control source of the webbrowser to:
"http://bing.com" & "/maps/embed/viewer.aspx?cp=" & [textGPS] & "&lvl=12&dir=90&sty=r&w=600&h=600"

I also learned the there is a Bing Maps V8 Web Control that provides the needed functionality as long as I am able to somehow develop programs in JavaScript/HTML/TypeScript for which Microsoft already proves samples that are good enough to me as they contain the today's required functionality (e.g. http://www.bing.com/api/maps/sdk/mapcontrol/isdk#createPushpinFromCanvas+JS) .

The problem now is, how do I, in the webbrowser control, set up the javascript or html to run?

can anyone help?
0
Comment
Question by:jirdeaid
6 Comments
 
LVL 25

Expert Comment

by:Pawan Kumar
ID: 41835457
Have you checked out Ricky's blog. He has done lot of research on this topic.  Check out this URL - Here he has given all the steps for parameters in Bing Maps.

https://rbrundritt.wordpress.com/2012/01/06/bing-maps-rest-service-net-libraries/.

Hope it helps.
0
 

Author Comment

by:jirdeaid
ID: 41835584
Hi Pawan -

nope... at the most it links to unavailable pages :(

the question is related to the webbrowser not to bing maps
0
 
LVL 57

Accepted Solution

by:
Jim Dettman (Microsoft MVP/ EE MVE) earned 500 total points
ID: 41836810
<<I also learned the there is a Bing Maps V8 Web Control that provides the needed functionality as >>

 This is meant for phones and mobile devices.   You won't be able to use this with Access.

 I do know however that one MVP (Jack Leach) gave a demo at the MVP conference two years ago showing how you could take an instance of IE and via automation, process Java Script.

 While it worked, it's not really what your looking for.

 From Access/VBA, your left working with whatever API Bing provides through the URL.   You really can't do anything beyond that.

Jim.
0
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 

Author Comment

by:jirdeaid
ID: 41836925
I'm switching to google maps... Thanks all
0
 
LVL 19
ID: 41836931
Good idea. Google does have better documentation -- and renders better (more often!) too.  I tried them both. I wanted Bing to work but it just isn't there yet.
0
 
LVL 57
ID: 41836973
<<I'm switching to google maps... Thanks all>>

 That's what I did too<g>

Jim.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
An enjoyable and seamless user experience can go a long way on an eCommerce site. While a cohesive layout and engaging copy play roles in creating a positive user experience, some sites neglect aspects that seem marginal but in actuality prove very …
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now