Hi, i'm also new to openlayers but i found out how to print maps by looking
at the examples in the openlayers examples, check the BASIC SINGLE
WMS EXAMPLE code, for what i understand there are a few steps u must follow:

1) include in ur site the OpenLayers,js file
<script src="../lib/OpenLayers.js"></script>
2)in javascript define map and layer variables
var map, layer;
3)define init function which can change depending on what u want to do
 function init(){
   ..........
  }
 4)make the body event "onload" calls init function
<body onload="init()">
5)create a div with "map" id
<div id="map" class="smallmap"></div>


2011/3/25 Gagan Suri <[email protected]>

> S Shadab <shadab2k8@...> writes:
>
> hi shadab,
> did u get the solution to this problem. I am also having the same task at
> hand.
> And I am new to openlayers and javascript.
> Also the backend code that we are using in java and not php as mentioned in
> the
> post.Any help would be highly appreciated.
> Thanks,
> Gagan
>
> _______________________________________________
> Users mailing list
> [email protected]
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
>
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to