<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix"><br>
</div>
<blockquote cite="mid:007a01cda663$2f33a7e0$8d9af7a0$@com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<meta name="Generator" content="Microsoft Word 12 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal">I am new to web mapping and to OpenLayers.
I have created a basic map that has a base layer and a KML
vector layer. The features in the KML vector layer have
several attributes. When opening my map, is it possible to
highlight and zoom to a specific feature in the KML vector
layer based on one of the attributes?<o:p></o:p></p>
</div>
</blockquote>
<br>
You will note that google isnt good about providing that
functionality themselves in their products. KML is a very flexible
format. You can define attributes for a featureset in the set header
and then provide just the data for the feature ( as you would for a
"normal" layer), but you can also have attribute and data for each
feature (ie each feature could have different attributes).
Furthermore the KML could just be a network link.<br>
<br>
In short, I dont think it is implemented in OL but maybe others
would prove me wrong. If you are stuck using KML vector files, then
I think you will need custom code to pick your way through a loaded
KML layer feature entries. If you have option of not using KML than
I would strongly consider it. If your data is in say geoserver then
you can create a WFS kml link to view in GE from your web
application but using KML directly is slow and limited.<br>
<p><span style="font-family:'Arial';font-size:8pt; color:#000000;">Notice: This email and any attachments are confidential. If received in error please destroy and immediately notify us. Do not copy or disclose the contents.</span></p>
<p><span style="font-family:'Arial';font-size:8pt; color:#000000;"> </span></p></body>
</html>