Advertisement
Guest User

Untitled

a guest
Feb 14th, 2016
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. var bounds = new OpenLayers.Bounds(
  2. 66.76242541918388, 6.756367055683252,
  3. 98.64805108111362, 37.558217731396034
  4. );
  5.  
  6. var map = new OpenLayers.Map('map',
  7. {
  8. maxExtent: bounds,
  9. maxResolution: 0.10,
  10. projection: "EPSG:4042",
  11. center: new OpenLayers.LonLat(79, 21)
  12. }
  13. );
  14.  
  15. var bounds = new OpenLayers.Bounds(
  16. 66.76242541918388, 6.756367055683252,
  17. 98.64805108111362, 37.558217731396034
  18. );
  19.  
  20. var map = new OpenLayers.Map('map',
  21. {
  22. maxExtent: bounds,
  23. maxResolution: 0.10,
  24. //projection: "EPSG:4042",
  25. center: new OpenLayers.LonLat(79, 21)
  26. }
  27. );
  28.  
  29. var map = new OpenLayers.Map('map',
  30. {
  31. units : 'm', // <-define units
  32. maxExtent: bounds,
  33. maxResolution: 0.10,
  34. //projection: "EPSG:4042",
  35. center: new OpenLayers.LonLat(79, 21)
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement