Есть код:
Код: Выделить всё
	switch( bounds[i].Type )
	{
		case "Point":
			var size = new OpenLayers.Size(20,20);
			var offset = new OpenLayers.Pixel(-(size.w/2), -size.h);
			var icon = new OpenLayers.Icon('http://domain.ru/images/marker_map_red.png', size, offset);
			var ll = new OpenLayers.LonLat( bounds[ i ].Bounds[ 0 ].x , bounds[ i ].Bounds[ 0 ].y );
			var feature = new OpenLayers.Feature(markers, ll);
				feature.closeBox = false;
				feature.popupClass = OpenLayers.Class(OpenLayers.Popup.AnchoredBubble, {'autoSize':true,'minSize': new OpenLayers.Size(70, 20) } );
				feature.data.popupContentHTML = '<?=$line['name_firm']?>';
				feature.data.overflow = "hidden";
			//feature.popup = feature.createPopup(this.closeBox);
			//map.addPopup( feature.popup );
			var marker = new OpenLayers.Marker(ll, icon);
			    marker.feature = feature;
			var markerClick = function(evt) {
				if (this.popup == null) {
					this.popup = this.createPopup(this.closeBox);
					map.addPopup(this.popup);
					//this.popup.show();
				} else {
					this.popup.toggle();
				}
			       OpenLayers.Event.stop(evt);
		};
		marker.events.register("mousedown", feature, markerClick);									
		markers.addMarker( marker );
		map.setCenter(new OpenLayers.LonLat( bounds[ i ].Bounds[ 0 ].x, bounds[ i ].Bounds[ 0 ].y ), 16);
	break;
	}
Код: Выделить всё
//feature.popup = feature.createPopup(this.closeBox);
//map.addPopup( feature.popup );А нужно мне - чтобы созданный popup показывался сразу, а не после клика.
Хелп ми плиз
