Hello people...
Any ideas on how to draw a polygon on a geomap of zip codes, have
the user select the area,trap the zips in the shape and export to a dataset?
I am using mappoint 2006 in visual studio 2005 via activex, VB.
Best
M. Martin
Printable View
Hello people...
Any ideas on how to draw a polygon on a geomap of zip codes, have
the user select the area,trap the zips in the shape and export to a dataset?
I am using mappoint 2006 in visual studio 2005 via activex, VB.
Best
M. Martin
1) Display the drawing toolbar, which allows the user to activate the polygon tool. See the Control.Toolbars property.
2) Check to see which shape (polygon) is selected using the Selection property. Or in a click event, use ObjectsFromPoint to get the underlying shape.
3) Assuming you have coded pushpins for all zipcodes (easily done using the data mapping wizard and a demographic set), you can retrieve all zipcodes within the selected shape using the QueryShape method.
4) Use your favorite VB ADO method to export the returned pushpin information to a dataset.
HTH
Paul
Thanks Paul. The info is a tremendous help.
Best,
M.Martin