Community of VE/MapPoint Users and Developers
This is a discussion on compatibility java and asp within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I would want to know if it is posible to integrated mappoint in a application and how to do it. ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| compatibility java and asp If anyone know how can I do one of this things, I thanks you. |
| |||
| ASP compatibility
You can use Mpp with ASP. First you install it on the server then you can call the application object as any COM object. <%option explicit %> <?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <% dim oApp, oMap, strUID 'Instantiate your objects Set oApp = Server.CreateObject("MapPoint.Application.eu") set oMap = oApp.newMap 'Set up application and objects to use oApp.Visible = False oApp.UserControl = False call shadedAreas private sub shadedAreas ()' Here I import a serie of data by postcode in the UK dim strCsvPath, objDataMap, oDs 'Change the map style to display DataMap oApp.ActiveMap.MapStyle = 2 'CSV text file (242 is for geoCountryUnitedKingdom, 44 for geoDelimiterComma and 0 for geoImportFirstRowIsHeadings) Set oDS = oApp.ActiveMap.DataSets.ImportData("c:\book1.csv", ,242,44,0) 'Create the data map ( 1 is for geoDataMapTypeShadedArea, for 1 geoRangeTypeContinuous and 13 for geoColorScheme) Set objDataMap = oDS.DisplayDataMap(1, oDS.Fields(2),,,1,,13) 'obviously save the map call SaveMap end sub private sub SaveMap() Set oMap = oApp.ActiveMap oMap.DataSets.ZoomTo oMap.Altitude = oMap.Altitude * 1.3 'Save the map as a web page (toto is just a dummy name for the file) oMap.SaveAs "c:\toto",2, True ' (2 is for geoFormatHTMLMap) end sub 'Quit without saving oApp.ActiveMap.Saved = true oApp.Quit %> <title>map</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> </head><body>[img]file:///C|/toto_files/image_map.gif[/img]</body> </html> |
| |||
| ASP compatibility
The error comes from your windows security settings. You need to access as local admin (wich would outraged my Windows admins if only they knew). Even so the settings are fairly tricky and even after having it set on a couple of servers I don't get it easily now. It work nicely thought, once set. |
![]() |
| Tags |
| asp, compatibility, java |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Using MapPoint 2003 with Java | Anonymous | MapPoint 2006/2009 Discussion | 3 | 09-19-2008 12:46 PM |
| Mappoint java support | Anonymous | MapPoint Web Service and Virtual Earth | 7 | 02-20-2007 08:22 AM |
| java issue | Anonymous | MapPoint 2006/2009 Discussion | 1 | 03-01-2005 06:11 PM |
| Mappoint 2004 & Office 2003 compatibility problem | javigdiaz | MapPoint 2006/2009 Discussion | 2 | 12-16-2004 10:24 AM |
| something like mappoint, but for java... | Joeba | MapPoint 2006/2009 Discussion | 2 | 12-03-2002 10:14 AM |