Re: [MAPSERVER-USERS] problem with map.zoomToExtent

2008-08-13 Thread BrainDrain

OpenLayers works perfectly if it configured correctly.
first of all you need to setup base OpenLayers layer (map server layer in
your case as I understand). Note: OL uses some default values for map obj:
DD units and EPSG:4326 proj (wgs84 LL) ... etc.
You need to spec. your own. spatialreference.org can help.
from my exp. - in current 2.6 version you need to normalize map obj with
some parameters from base layer / I mean:
'maxExtent','minExtent','maxScale','minScale','maxResolution','minResolution','units','projection'.
Older versions (for ex. used in fusion mapping js lib) did this
automatically.

S.Reena wrote:
 
 i have three files... one html, one javascript and one phpi am
 handling database through php file and sending the result of that to a
 function in javascript file..
 echo  \javascript:zoomVillage($box1,$box2,$box3,$box4)\ Open Map ;
 
 These are ST_box2D() data which i hv split in 4 parts ...the thing is if i
 alert these values in that function..its working..but i i do like
 
 map.zoomToExtent(new OpenLayers.Bounds(str1,str2,str3,str4))  where str1
 etc contain the passed values.. 
 
 this doesn't work..
 
 Can any1 help?
 
 Cheers,
 S.Reena
 

-- 
View this message in context: 
http://www.nabble.com/problem-with-map.zoomToExtent-tp18902842p18957700.html
Sent from the Mapserver - User mailing list archive at Nabble.com.

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [MAPSERVER-USERS] problem with map.zoomToExtent

2008-08-11 Thread Alan Boudreault

Reena,

I don't understand why your map.zoomToExtend() call don't work. This 
is a very basic function.  Are you sure that the parameters used for 
create the OpenLayers.Bounds object are good ? (str1 = left, str2 = 
bottom, str3 = right, str4 = top). If so, can you show us some code ... 
in this way, we'll be more able to check what could be the problem.


Regards,
Alan

S.Reena wrote:

i have three files... one html, one javascript and one phpi am handling
database through php file and sending the result of that to a function in
javascript file..
echo  \javascript:zoomVillage($box1,$box2,$box3,$box4)\ Open Map ;

These are ST_box2D() data which i hv split in 4 parts ...the thing is if i
alert these values in that function..its working..but i i do like

map.zoomToExtent(new OpenLayers.Bounds(str1,str2,str3,str4))  where str1 etc
contain the passed values.. 


this doesn't work..

Can any1 help?

Cheers,
S.Reena
  



--
Alan Boudreault
Mapgears
http://www.mapgears.com

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[MAPSERVER-USERS] problem with map.zoomToExtent

2008-08-09 Thread S.Reena

i have three files... one html, one javascript and one phpi am handling
database through php file and sending the result of that to a function in
javascript file..
echo  \javascript:zoomVillage($box1,$box2,$box3,$box4)\ Open Map ;

These are ST_box2D() data which i hv split in 4 parts ...the thing is if i
alert these values in that function..its working..but i i do like

map.zoomToExtent(new OpenLayers.Bounds(str1,str2,str3,str4))  where str1 etc
contain the passed values.. 

this doesn't work..

Can any1 help?

Cheers,
S.Reena
-- 
View this message in context: 
http://www.nabble.com/problem-with-map.zoomToExtent-tp18902842p18902842.html
Sent from the Mapserver - User mailing list archive at Nabble.com.

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users