How to fit selected features to page using openlayers2.13?

المشرف العام

Administrator
طاقم الإدارة
I want to select feature and then fit feature to page bound.

I use this code:

selected.geometry.resize(2, origin); my code, double the selected, but i want fit selected to page bound. I do not know how to calculate scale and put in place 2 in the above code.

Can someone help me?



أكثر...
 
أعلى