Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

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 | 0 Comments
Filed under:

Javascript prototype versus closure execution speed

When Javascript execution speed matters consider using prototype instead of closures where possible. Even for a small closure the difference can be noticable when called hundreds of times. Consider the following example that implements a Pixel object
Posted by Kristoffer | 3 Comments

Debugging memory usage in managed code using Windbg

Windbg, is there anything it can't do? CLR Profiler is great for getting an overview of memory allocations and usage for managed applications but it doesn't work for very large applications and can't be attached after the application has been running
Posted by Kristoffer | 1 Comments
Filed under:
More Posts Next page »
 
Page view tracker