Solved

How to parametrize bing map on webbrowser control

Posted on 2016-10-08
6
110 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 28

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
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 

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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

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 …
It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

790 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