[Qgis-developer] Installed Qgis on Ubuntu - what do I do next?
Christopher Stark
christopherstark at gmx.de
Wed Oct 19 04:08:28 EDT 2011
Hi Noli,
which parts in this code do I have to modify for my Qgis Server Project?
I pasted this code into a html (index2.html) file within var/www/ but
there is nothing displayed when I open
localhost/index2.html
best regards
Christopher
Am 16.10.2011 04:40, schrieb Noli Sicad:
>> The most common web client being Openlayers, this will require work on
>> your part, mainly a few lines of javascript in a web page. You might be
>> able to use it directly in Geocommons or in Mapfish (also takes setup).
> This is how Tim used it for OpenLayers client (below).
>
> Very few documentation how to actually use in OpenLayers and WMS.
>
> Noli
>
> ##############################################
> <script type="text/javascript">
> var map, layer;
> function init(){
> var MapOptions = {
> projection: new OpenLayers.Projection("EPSG:32633"),
> units: "m",
> masxScale: 19567.879237500,
> //maxScale:1000,
> //minScale:17000000,
> numZoomLevels: 10,
> resolutions: [19567.8792375, 9783.93961875,
> 4891.969809375, 2445.9849046875, 1222.99245234375, 611.496226171875,
> 305.7481130859375, 152.87405654296876, 76.43702827148438,
> 38.21851413574219],
> maxExtent: new
> OpenLayers.Bounds(-918304.23600184,6418410.00099619,1957227.50491800,7976533.94886646),
> fractionalZoom: false,
> transitionEffect:"resize",
> };
>
> map = new OpenLayers.Map( 'map', MapOptions );
> layer = new OpenLayers.Layer.WMS( "OpenLayers WMS",
> "http://maps.linfiniti.com/cgi-bin/tilecache.cgi",
> {layers: 'utno-test'} );
> map.addLayer(layer);
> map.zoomToMaxExtent();
> }
> </script>
> </head>
> <body onload="init()">
> <div id="map" class="map"></div>
> </body>
>
> #########################################################
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/qgis-developer/attachments/20111019/461e5006/attachment-0001.html
More information about the Qgis-developer
mailing list