[OpenLayers-Users] pink tiles?
Imran Rajjad
rajjad at gmail.com
Tue Jun 1 10:46:40 EDT 2010
ok ther is a typo in my layer url!! that was silly
On Tue, Jun 1, 2010 at 7:19 PM, Imran Rajjad <rajjad at gmail.com> wrote:
> Hi list,
>
> I`m new to open layers. I`m using Geoserver 1.7.7 in Weblogic 10.3 on
> Solaris Sparc V9. Im trying to load a basemap and an overlay, but I
> get pink tiles. I followed the instructions at
> http://trac.openlayers.org/wiki/TroubleshootingTips . I tried the url
> of a single tile and I`m getting the image seperately. However there
> are only pink tiles in OpenLayers. My code is as below
>
> map = new OpenLayers.Map('map', { // initializing map div
> controls: [ // adding controls
> new OpenLayers.Control.Navigation(), //buttoms
> new OpenLayers.Control.PanZoomBar(),//bar
> new OpenLayers.Control.ScaleLine(),
> new OpenLayers.Control.MousePosition(), //
> mouse position will be displayed
> new OpenLayers.Control.KeyboardDefaults() //
> keyboard pan
> ],
> numZoomLevels: 20
>
> });
>
>
>
>
> var pakter_wms = new OpenLayers.Layer.WMS(
> "Pakistan Terrain",
> "http://http://10.0.80.41:7004/geoserver/wms",
> {layers: 'topp:pak-terain',
> format: "image/gif"}
> );
>
> var admin_wms = new OpenLayers.Layer.WMS(
> "General Layers",
> "http://http://10.0.80.41:7004/geoserver/wms",
> {layers:
> "topp:province,topp:district,topp:tehsil,topp:pakistan_highway,topp:urban,topp:Rural,topp:isb123,topp:parceldata,topp:pakistan_poi",
> format: "image/gif"}
> );
>
> var network_wms = new OpenLayers.Layer.WMS(
> "Network Data",
> "http://http://10.0.80.41:7004/geoserver/wms",
> {
> layers: "topp:networkcoverage",
> transparent: "true",
> format: "image/gif"
> },
> {isBaseLayer: false, visibility: false} // will be
> treated as overlay because it is not baselayer
> );
>
>
>
>
> map.addLayers([pakter_wms, admin_wms, network_wms]);
> map.addControl(new OpenLayers.Control.LayerSwitcher());
> map.zoomToMaxExtent();
>
>
> what am i doing wrong here
>
> thanks
>
> --
> I.R
>
--
I.R
More information about the Users
mailing list