Virtual earth’s capability
The three dimensional map controls is not able to display custom HTML. And if you are thinking to make use of 3D control and if you also wish to make use of HTML icons in 2D then you should use VECustomIconSpecification wrapper. With the help of this wrapper, you are able to produce custom HTML icons in 2D. And you can also make use of imagery plus text in 3D.
The constructor accepts various kinds of parameters which permit you to imitate raw HTML in 3D control. You are able to set custom image and you are also able to set the text for displaying over the font, image, back color and fore color. You can also make use of Imageoffset property for determining where the custom icon comes regarding to location of the shape.
While setting the image property you have to remember one thing that the target URL is a completely qualified and outwardly reachable URL. When you will try to connect to a relative path or to a localhost then you will get the default icon instead of getting desired image. As the 3D control is known as Active X control, so it will work according to security restrictions, which never permit access for local web namespace.
The chief advancement in shapes is having ability to completely control the info box which displays if you will hover on icon. The default infobox includes fields for
Title: On the top of the info box title comes in bold font.
Description: The description is the text field, which fills up most of the box.
PhotoURL: by setting the PhotoURL you can display the image at the left side of the info box. The URL should be a completely formed URL.
MoreInfoURL: when you will set this property, the info box shows a “…” section beneath the main description. This section is a link pointing towards your MoreInfoURL.
When you will use all these methods your default info box looks different. Even if the basic info box is sufficient for lots of people, you can determine you need something wholly custom to meet your requirements. In that situation by completely clearing the default styles you can produce a wholly custom info box.
For creating a custom info box you have to clear the default map styles and after this influence a particular details in the div that you have already created for your title and description. Note down one thing that when you will clear the default styles, you affect each single info box on your map. You can do the thing like making use of default style for some boxes and making use of custom styles for other. By making use of VEShape object you are not only produce various kinds of shapes but you have total control on the behavior and appearance of what you display. And in case if you do not have the object then by making use of GetShapeByIndex method you can find your shape.
Technorati Tags: virtual earth, Microsoft, using virtual earth, using virtual earth,
Tags: Microsoft Virtual Earth
























