I want to zoom to a particular house in the google mapS, but when I provide its bounds and lattitude and longitude, it does not show images as well as the particular house. Can anyone provide the solution for this?
0
votes
Could you show us your code? It's much easier to help that way.
- Niklas Wulff
Yes the question has very little to go on - the problem could be in your code, your data provider, etc. You mention projection in the title: If you think this is the problem, look at the Proj4js docs to make sure your projection parameters are correct (OpenLayers uses Proj4js for reproductions)
- winwaed
2 Answers
0
votes
Solution would be probably to transporm coordinates first. Unfortunately when You pass coordinates to OpanLayers.LonLat(lon,lat) it is supposed to be WGS:84, while OpenLayer.Bounds() needs coordinates given in EPSG:900913. You should then use Proj4js.transform and pass transformed coordintes in EPSG:900913