Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

It's 10 pm, do you know what your JITter is doing?

Ever have that awkward feeling like you don't know what actually gets executed as a result of your managed code? Visual Studio allows you to inspect the JITted code easily but does require a few tweaks first: First set your project to build in Release
Posted by Kristoffer | 0 Comments
Filed under:

OutOfMemoryException is special

Consider the humble OutOfMemoryException and its most common usage. If it is thrown when the system is well and truly out of memory then how would the system allocate enough memory to create a new instance of OutOfMemoryException? Luckily this problem
Posted by Kristoffer | 0 Comments
Filed under: ,

Troubleshooting a failed Virtual Earth 3D installation

The Virtual Earth 3D setup program is a small executable that downloads and installs pre-requisites if they're not already installed and then the correct MSI for your OS flavor (32 or 64 bit). The pre-requisites are Windows Imaging Components and .NET
Posted by Kristoffer | 0 Comments
Filed under:

How does Virtual Earth 3D find and load plugins?

On startup VE3D looks in the Plugins folder of the install directory (ProgramFiles\Virtual Earth 3D) and iterates through the assemblies in each subfolder of Plugins. A plugin named Sample would install itself as C:\Program Files\Virtual Earth 3D\Plugins\Sample\Sample.dll.

Using a plugin to add a billboard to Virtual Earth 3D

To add objects to the VE3D world we need to create our own actor that knows how to render itself. Actors descend from Microsoft.MapPoint.Rendering3D.Steps.Actors. Actor and must override the Render method. When it comes time to render a frame, all actors

BillboardPlugin.cs

using System; using System.Collections.Generic; using System.Drawing; using System.Text; using Microsoft.MapPoint.PlugIns; using Microsoft.MapPoint.Rendering3D; using Microsoft.MapPoint.Rendering3D.Cameras; namespace VirtualEarth3DSamplePlugins.Billboard
Posted by Kristoffer | 0 Comments

BillboardActor.cs

using System; using System.Collections.Generic; using System.Drawing; using System.Text; using Microsoft.MapPoint.Rendering3D; using Microsoft.MapPoint.Rendering3D.GraphicsProxy; using Microsoft.MapPoint.Rendering3D.Steps.Actors; using Microsoft.MapPoint.Geometry.VectorMath;
Posted by Kristoffer | 0 Comments

Disclaimer

Content is provided "AS IS" with no warranties and confer no rights.
Posted by Kristoffer | 0 Comments

Creating a Hello World plugin for Virtual Earth 3D

With latest release of the Virtual Earth 3D release we now support loading plugins to perform additional functionality not implemented in the main product. Two new features of the release are even implemented as plugins (bird's eye photos and user created

What's the latlong of this location?

Right click on the map to get the latitude and longitude function MouseClick(mapEvent) { if (mapEvent.rightMouseButton) { var loc = map.PixelToLatLong(new VEPixel(mapEvent.mapX, mapEvent.mapY)); document.getElementById("latlong").innerHTML = "You clicked
Posted by Kristoffer | 0 Comments

Is your e-mail going unanswered?

As a general rule the chance of your e-mail getting a response is inversely proportional to the number of people on the To and Cc lines. Let's take an example: You e-mail Bob a question. Bob now feels directly responsible for your question and promptly
Posted by Kristoffer | 1 Comments
Filed under:

Web browser information

document.write('Your browser identifies itself as " '); document.write(navigator.userAgent); document.writeln('" '); You must have Javascript enabled to show the user agent

Virtual Earth update

Virtual Earth released a new version this afternoon; read about the new features on the Virtual Earth blog .
Posted by Kristoffer | 0 Comments
Filed under:

Visual Studio Tip: Examining long strings while debugging

Long strings can be a pain to examine in Visual Studio while you're debugging but in .NET projects you can easily write these to a file on the fly. If for example we want to examine the contents of string s , open up the Immediate Window ( Ctrl+I ) and
Posted by Kristoffer | 0 Comments
Filed under:

Navigate large solutions in Visual Studio quicker

The one Visual Studio tip that everyone should know is how to quickly open a file in a large solution without having to remember which folder or project it's in. Press Ctrl+Alt+A to open up the Command Window, then type open and the first few letters
Posted by Kristoffer | 1 Comments
Filed under:
More Posts Next page »
 
Page view tracker