spacer1
spacer2 1_1 1_2
2_1
 Subscribe
 The MP2K Update!
 
 
 
 Magazine
Front Cover
What's New
Articles
News
Sample Data
Gallery
Advertise
About
 Features
MapPoint 2009
Press Releases
MapPoint Forums
Companies
Link to MP2Kmag
Wish List
MapPoint Trial
Authors
 Earlier Content
Past News Items
Past What's New Announcements
 Sponsors
 Order

MapPoint 2009

Programming MapPoint in .NET

MapPoint Book

  Spatial Community
ViaVirtualEarth
SVG Tutorials
MapPoint

Map Visitors

 Direct Media

Travel Insurance Compare over 450 travel insurance policies (inc. annual multi-trip, single trip & winter sports)

  ARTICLES  


Linking to Weather Data From MapPoint

Chris Gebhardt shows how to link to web-based geographical data from within MapPoint

Description:
In some circumstances, users will want to access a website that is based on Zip code information or maybe City information. For example, you could write an application that allows a user to select a place on the map using their mouse and then click a button to find out information about that City in a web browser. For this example, we will use weather forecasts. The problem statement is easy, "What is the weather at zip code XXXXX?"

Create a new Standard EXE application in Visual Basic. On Form1, add a MapPoint Control called MPC1, a Web Browser control called WB1, and a command button called cmdWeather. (The Web Browser control is "hidden" inside the Microsoft Internet Controls components!) Now, add the following code:

As you can see, this code is very simplistic and only represents one way to achieve a solution to the problem statement of "What is the weather at ZIP code XXXXX?" You could create a COM add-in that will appear on the MapPoint pop-up menu or even replace the default MapPoint pop-up window when a user clicks on the map.

A word of caution: You will want to make sure the URL use is safe and you are not violating any copyright or licensing laws.

Discuss this story in the forum.

Author: Christopher Gebhardt
Email: Chris(AT)CrimeAnalysis.net
URL: http://www.crimeanalysis.net
Chris Gebhardt is the Director of Marketing for CRISNet (www.crisnet.com) in Salt Lake City, Utah. He is also the CEO of Crime Analysis Associates (www.CrimeAnalysis.net) where he uses Microsoft products and specifically MapPoint in the creation of his Crime Analysis software.

Chris is a former Lieutenant with the Metropolitan Police Department in Washington, D.C. where he was the Commander of the Tactical Crime Analysis Unit responsible for crime analysis and crime mapping. This job is the basis for the TV show "The District."

In his spare time, Chris is the Technical Advisor to the California Crime and Intelligence Analysts Association (www.CrimeAnalyst.org).

Chris can be reached at chris@crimeanalysis.net.



Google
 
MP2Kmag Internet


 Recent Discussion
-BingMapsDev: From today you can now gaze up and explore the stars from Bing Maps Silverlight thx to WWT http://is.gd/aMtvs
-BingMapsDev: @jont87 I was thinking that as I virtually looked up at the stars from the Vegas strip, with all this neon I'm not sure what you'd see.
-bingmaps: BingMapApps pull local blogs, tweets, embedded videos, historic photos, worldwide telescope imagery and more into maps! http://bit.ly/bCPnlb
-bingmaps: @AllTheWiser Nice!You won the BingMaps contest! DM your address and we'll mail your t-shirt. http://bit.ly/adOWAO
-bingmaps: @Buitel Nice!You won the BingMaps contest!DM your address and we'll mail your t-shirt.Few hours left for everyone else http://bit.ly/adOWAO
-bingmaps: @cdlongo Nice!You won the BingMaps contest!DM your address and we'll mail your t-shirt.A few hours left for other folks http://bit.ly/adOWAO
-bingmaps: @ddavidch Nice! You won the BingMaps contest! DM your address and we'll mail your t-shirt. http://bit.ly/adOWAO
-bingmaps: @Gilly2468 Nice!You won the BingMaps contest!DM your address and we'll mail your shirt. Few hours left for other folks http://bit.ly/adOWAO
-bingmaps: @markmcc19 Nice! You won the BingMaps contest! DM your address and we'll mail your t-shirt. http://bit.ly/adOWAO
-bingmaps: @mp2kmag Nice! You won the BingMaps contest! DM your address and we'll mail your t-shirt. http://bit.ly/adOWAO
-bingmaps: @NicolasBoonaert Nice! You won the BingMaps contest! DM your address and we'll mail your t-shirt. A few more hours left for everyone else
-bingmaps: @virus84 Nice! You won the BingMaps contest! DM your address and we'll mail your t-shirt. A few more hours left for other folks
-bingmaps: @WebJives2 Nice! You won the BingMaps contest! DM your address and we'll mail your t-shirt. http://bit.ly/adOWAO
-bingmaps: RT @ChrisPendleton: Watching "Opening up opportunity with Twitter" @rsarver @raffi #Mix10
-bingmaps: RT @ChrisPendleton: Windows Phone 7 Series Developer Training Kit: http://bit.ly/aHiBPW. Now, we just need to add some Bing Maps!
-bingmaps: RT @ChrisPendleton: New Bing Maps Application - WorldWide Telescope: http://bit.ly/bEwrEE.
-deleting the number associated with pushpins.
-New Bing Maps Application: WorldWide Telescope
-bingmaps: Don't miss out! One more day to tweet to win a Bing t-shirt. Details here: http://bit.ly/adOWAO
-bingmaps: RT @ChrisPendleton: SxSW Musings and Where the World Is: http://bit.ly/9OBAU6. @BingMaps #SxSWi
-Problems with FindResults
-Restrict routes based on country of origin/destination
-How to Retrive location name form latitude and Longitude in J2ME?
-SxSW Musings and Where the World Is
-BingMapsDev: "published first windows phone 7 tutorial: 'Writing a Bing Maps Location Aware Application' http://bit.ly/dBKOjy" /via @earthware
 Resources
Browse GIS books and periodicals
Best Car Contract Hire Lease Save
Find a MapPoint Partner or Consultant
Real Estate Thornbrook Homes for Sale


Want Your Site To Appear Here?

   © 1999-2009 MP2K. Questions and comments to: website@mp2kmag.com
  Microsoft and MapPoint 2002/2004/2006/2009 are either trademarks or registered trademarks of Microsoft.

• Replacement Cordless Phone Batteries from DSMiller
Improve your career with a computer degree LocalEDU.com
• Tim Cohn's Marketing Strategy Consultancy
• Buy Toner Cartridges at Marquee Office Solutions
• Looking for Dry Erase Boards? See Dry Erase Boards • The Search Starts Here Used Cars
• 5339 - We Know Bikes: Road Bikes / Triathlon Bikes / Mountain Bikes / BMX Bikes
• Buy Your Car Used Cars UK, Car Lease and Contract Hire