Hi,

 I want to ask two questions:

I have to use one marker layer and I found some examples to “do” something
on mouseover and on mouseout. Something likes that:

var marker = new OpenLayers.Marker(punt,icona);

 marker.events.register("mouseover", foo_var, method2);

 marker.events.register("mouseout", foo_var, method2);



And I also have to use one vector layer, but I only found the SelectFeature
solution to do the same:

selectControl = new OpenLayers.Control.SelectFeature( [layer1,layer2],
{onSelect: onFeatureSelectMethod,onUnselect:onFeatureUnSelectMethod, hover:
true});

map.addControl(selectControl);

selectControl.activate();
But this second way it’s not working so fine as the first one. Is there some
possibility to use mouseover and mouseout events in vector layers?


Another question, not so important, I use  OpenLayers.Request.GET method
calling a php file, but in this one I can’t access to SESSION variable. I’m
doing it right?

OpenLayers.Request.GET({url:'file.php',params: {"lon":
feature.geometry.x,"lat":feature.geometry.y},success:successMethod,scope:feature,failure:function()
{alert('Something wrong happenned’);}});



Thanks a lot!
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users

Reply via email to