<div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial"><DIV>Hi,guys.I am in trouble.<BR>When I add the vector layer to my map the popup of my marker don't appear correctly.I find the response area become smaller,yes,actually,it is very small so that in order to show a popup I have to click repeatedly.<BR>It works well if not add a Vector.</DIV>
<DIV>Thanks in advance.</DIV>
<DIV><BR>.........<BR>vectors = new OpenLayers.Layer.Vector("Simple Geometry", {<BR> style : layer_style<BR> });<BR>map.addLayer(vectors);<BR>var pointList = [];<BR>for ( var i = 0; i < 50; i++) {<BR> newPoint = new OpenLayers.Geometry.Point(60 + i, 8 - i);<BR> pointList.push(newPoint);<BR> }<BR>lineFeature = new OpenLayers.Feature.Vector(<BR> new OpenLayers.Geometry.LineString(pointList), null,<BR> style_green);<BR>vectors.addFeatures([ lineFeature ]);</DIV>
<DIV><BR>.....</DIV>
<DIV><BR> <BR>var markerClick = function (evt) {<BR> if (this.popup == null) {<BR> this.popup = this.createPopup(this.closeBox);<BR> map.addPopup(this.popup);<BR> this.popup.show();<BR> } else {<BR> this.popup.toggle();<BR> }<BR> currentPopup = this.popup;<BR> OpenLayers.Event.stop(evt);<BR> alert('ok');<BR> };<BR> marker.events.register("mousedown", feature, markerClick);</DIV>
<DIV> markers.addMarker(marker);<BR> }</DIV>
<DIV>.....</DIV></div><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span>