Answer Questions
b6s Dynamic TileSource not showing up in 3D
Hi all, I'm using sharpmap to render some shapefiles as dynamic tile sources, and I've run into an issue with 3D mode. The same code seems to work flawlessly in 2D mode, so I'm kind of stumped. Here's the nefarious javascript: function AddHazardLayer(layername, zorder) { try { var bounds = [new VELatLongRectangle(new VELatLong(42,-127),new VELatLong(29,-108))]; var tileSourceSpec = new VETileSourceSpecification(); tileSourceSpec.ID = layername; tileSourceSpec.TileSource = GetTilePath3D() + "&LAYER=" + layername + "&QUADKEY=%4"; alert(tileSourceSpec.TileSource); tileSourceSpec.NumServers = 1; tileSourceSpec.MinZoom = 1; ...Show All
sydes141 Opening a pin
Hi How do you open a pin from javascript It's easy in G and Y maps. This thread: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=676048&SiteID=1 doesn't work as far as I can tell :-( got it: $(pin.pinID + "_" + map.GUID).onmouseover(); where $ gets the element... thanks! :-) What I can tell you is this works: function AddClickablePin (location, icon_url, title, details, iconStyle) { var pin = new VEPushpin(pinID, location, icon_url, title, details, iconStyle); map.AddPushpin(pin); var element = document.getElementById(pinID); element.onclick = EventHandlerOnClick; pinID++; } function EventHandlerOnClick (e) ...Show All
BobConsultant Smart device CAB project - registry error during build
I am building a CAB file for a Pocket PC application in Visual Studio .NET 2005. In VS .NET 2003, there was a fairly straightforward option to 'Build CAB file' in the project context-sensitive menu. As far as I can see, in VS .NET 2005, one has to add a Smart device CAB project. I have followed walkthrough 'Packaging a Smart Device Solution for Deployment' available in VS .NET 2005 online help and completed all the steps. When attempting to build the cab file, I receive the following error in the output window: Warning: Section [RegKeys] registry value "" has an empty string for the data Error: CAB file "P:\MyApp_Setup\Release\MyApp.CAB" could not be created I am guessing that VS wants me to do some extra wor ...Show All
fermar84 About SSI for Messenger
Hello dear My company(internet game company) want to login by MSN Messenger. It is SSI. So i wanna know about logic. If user already logined in Messeger and he open P4 window with someone. Where dose it redirect in P4 It redirect live.com or my RPS server I know when i want SSI, i have to use RPS. Thanks a lot ...Show All
Kees 123 windows mobile 2003 SE and net cf v2
I moved from using visual studio 2003 to develope an application for a windows mobile 2003 SE PDA to vs2005. After some problems this now works. However when I upgrade to using .net cf v2 and download to the PDA the forms in the application become compressed to appox. a quarter of their origial size. The menus are still in the correct place its just the size oif the forms. Has anyone else had this problem, does anybody know of a solution I already have NETCFv2 SP1 installed. Thanks Rob Please set form's AutoScaleMode to Dpi in form's properties or in code: Me .AutoScaleMode = Windows.Forms.AutoScaleMode.Dpi Thanks for replying. The post from Tim ind ...Show All
shanejh MSAJAX 1.0 conflict with V4 API. Sys.InvalidOperationException. V3 API is fine.
Hi Guys, Been trying to use the new V4 API in my application but I get this error when I call the LoadMap method function GetMap() { map = new VEMap( 'myMap_myMap' ); map.LoadMap( new VELatLong(53.278353017531821 , - 2.153320312500008) , 5 , 'h' ,false ); ***** Get the error here when I call LoadMap. Microsoft JScript runtime error: Sys.InvalidOperationException: Object Microsoft already exists and is not a namespace. Can anybody please help me to find the problem. V3 of the API still works fine without any problems. If I remove AJAX references from my page the error goes away. Unfortunately, I make heavy use of MS Ajax 1.0 and can't get around it. thanks, SoS ...Show All
IceAngel89 specifying path names on mobile devices
hey there.... I am using visual studio to create a program that reads and writes from an xml file "books.xml". Everything deploys ok to my ppc but I'm having trouble specifying the path name of the xml file. does anybody happen to know... - How can I specify an absolute path on windows mobile 5 ( "c:/books.xml" doesn't allow me to find the file). - Where should I put an xml file when using a relative path referring to("books.xml"); and placing the file in the deployed application directory on my ppc returns an error that it can't find the file either. any help is would be greatly appreciated.... ch ...Show All
Jehan Badshah Newby question about Syncronization
Hi, I made a small application to a PocketPC 2003 that creates a xml file. I want to copy that file to a specific folder in a computer... Anyone knows how can I copy that file (by code) to the computer Thanks for your help. RAPI ...Show All
pgeeeee Another Control.Invoke - disregard
I am confused about the error I am getting trying to use Control.Invoke in the following. I thought "this.Invoke" for a class derived from Form would work. This is CF2.0 Steve public partial class AssetTracker : Form { ... public void setWebBrowser(WebBrowser newBrowser) { // called from another thread // save status in local variable browser = newBrowser; // the following causes error: "Control.Invoke must be used to interact with controls created on a separate thread" this.Invoke(new EventHandler(workerAddBrowser)); } private void workerAddBrowser(object sender, EventArgs e) { Controls.Add(browser); } Thanks. That got rid of the exception. What is the significance of mo ...Show All
clint 2 WLM error
whenever i sign onto WLM it loads my contacts (sometimes doesnt even get that far) but then it just freezes and crashes, any idea whats up with it you should post this in the newsgroups sorry but can you tell me where i need to go (link) as this formus set up is confusing me ...Show All
RayPowers Discovering OS version / device model number programatically.
Hello. We are developing the same app for 2 different devices. They are running WM 5.0 and WM 2003. The proxy string which one uses does not work for the other and vice versa. One likes "192.168.10.3" and the other likes "http://192.168.10.3". So I need to discover at run-time either the OS version or device model number. I've not been able to find this info anywhere. Does anyone know of a way to do this Thanks in advance Lee. I make a call to KernelIoControl in a C# program to get the device ID and platform ID. The device ID is typically the serial number of the device. The platform ID is typically the model number of the device. I can upload sample code if needed, or you can review ...Show All
jayakhanna Request for Address to LatLong function
As part of a web application I would like to geocode the entered address and save it in a database without having to do loadmap - i.e. a stand alone function. I see from previous threads that this might be a popular function. I did see a way of doing this server side http://viavirtualearth.com/wiki/UseLiveSearch.ashx but I would like to do it clientside as well. David. Another way to do it through server side is integration of Mappoint Web Service with Virtual Earth to do your geocoding. Basically its using MWS to geocode, and then passing it to Virtual Earth via AJAX calls. Keep in mind MWS "developer/free" account is limited to 1000 transactions a day so if this is for commercial purp ...Show All
Soteriologist How do I capture "panel" scroll event?
I want to do some drawing bigger than the PocketPC Screen. I need to be able to capture the panel scroll event to draw the picture correctly base on the scroll bar position. Thanks in advance. .NETCF doesn't expose the scroll event on scrollable controls. Since you are planning on painting your panel's client area, just hook the OnPaint event. When deciding what part of your picture to draw, look at the AutoScrollPosition property to see what offset to use. ...Show All
BigBoom The file '/veapi.ashx' does not exist.
Hello! I've been working with the Virtual Earth API and I love it! However, I've noticed that every once in a while I will receive this exception in the Global.asax: Exception Message: System.Web.HttpException: The file '/veapi.ashx' does not exist. at System.Web.UI.Util.CheckVirtualFileExists(VirtualPath virtualPath) at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.UI.SimpleHandlerFactory.System.Web.IHt ...Show All
Aleniko29139 Shape editing revisited
Hi, I'm new to VE development, so I wanted to confirm a few points. For my app, I need the following: user-editable shapes, scratch pad functionality fetching the shapes' long+lat and storing them in my database checking if a point is within this custom shape Is this true that none of this is currently available in the SDK and has to be implemented independently Are there any plans to add this to the SDK You use VE methods to acheive these functions. There are no "built in" scratchpad, editably shapes or bounds logic but you certianly have the tools to do it yourself allowing this to be very customised. We have been asking for some samples of how the maps.live.com guys did ...Show All
