Thanks Stefano for replying.
The Global Imagery base map is showing even if its visibility is false.
However when I check my wms layer to be displayed on top of it . I get the
pink tiled image.
I'm using the projection EPSG:4326.
On the other hand , Ideleted the preview base layer and replaced it with
OpenStreetMap as a base layer defined like this :
this.mapPanel=new GeoExt.MapPanel({
layout:"anchor",border:true,region:"center",
map:this.map,
center:mapConfig.center&&new
OpenLayers.LonLat(mapConfig.center[0],mapConfig.center[1]),
zoom:mapConfig.zoom,
items:[{
xtype:"gx_zoomslider",
vertical:true,height:100,
plugins:new GeoExt.ZoomSliderTip({template:"<div>Zoom Level:
{zoom}</div>"})},
this.createMapOverlay()
],
layers: [
//====base layer=====
new OpenLayers.Layer.OSM("OpenLayers"),
//=====overlays=====
new OpenLayers.Layer.WMS("dim_bts_geo",
"http://localhost:8080/geoserver/wms", {
layers: "dw1:dim_bts_geo",
transparent: true,
format: "image/gif"
}, {
isBaseLayer: false,
buffer: 0,
visibility: false
}
)
]
});
However, No map Component is showing. The page is just empty .
ᐧ
2015-05-15 13:16 GMT+02:00 Stefano Costa <stefano.co...@geo-solutions.it>:
> Hi,
>
> Il giorno ven, 15/05/2015 alle 12.07 +0200, ELKHATTABI Imane ha scritto:
>
> Thank you so much Stefano for these indications.
>
>
>
> Actually I defined a baselayer in GeoExplorer.js function which is :
>
>
>
> new OpenLayers.Layer.WMS("Global Imagery (OpenGeo) [Online]",
>
> "http://maps.opengeo.org/geowebcache/service/wms", {
>
> layers: "bluemarble"
>
> },{
>
> //buffer: 0,
>
> isBaseLayer: true,
>
> visibility: false
>
> }
>
>
> visibility: false? But do you actually see the base layer on the map, or
> just "missing image" placeholders? What options are you setting on the map
> (projection, extent, ecc...)?
>
>
>
> I doubt if it's not compatible with my wms layer.
>
> If there anyway to raplace it with 'Open Street Map' for instance?
>
>
> May be, since it's a cached layer (judging from the /geowebcache path in
> the URL).
> To use Open Street Map, just create a OpenLayers.Layer.OSM layer (see here
> <http://dev.openlayers.org/docs/files/OpenLayers/Layer/OSM-js.html> and
> here <http://dev.openlayers.org/examples/osm.html>).
>
> By the way, what version of OpenLayers are you using?
>
> Last but not least: if you open up Chrome's Dev Tools, do you see any
> error in the Console?
>
> Also, remember to hit the "Reply all" button, or other people will not be
> able to join the conversation.
>
> Regards,
> Stefano
>
>
>
> 2015-05-12 21:44 GMT+02:00 Stefano Costa <stefano.co...@geo-solutions.it
> >:
>
> Hi,
> just a couple of things to check:
>
> 1) could you open up your favorite browser's dev tools (e.g. in Chrome,
> hit F12) and check if there are any error messages in the JavaScript
> console?
>
> 2) I noticed that you configured your layer with "isBaseLayer: false";
> that is fine, but did you add a base layer to your OpenLayers.Map? I
> believe at least one is required.
>
> Hope it helps,
> Stefano
>
>
>
> Il giorno mar, 12/05/2015 alle 20.29 +0200, ELKHATTABI Imane ha scritto:
> > Hello everyone,
> >
> >
> > I'm having a problem with the pink tiles when trying to display a map.
> >
> >
> > I'm using Geoserver 2.6 . In the main html page , I reference to
> > Openlayers with :
> >
> >
> > <script src="openlayers/lib/OpenLayers.js"></script>
> >
> >
> > This is how I define my layer :
> >
> >
> > new OpenLayers.Layer.WMS("dim_province",
> > "http://localhost:8080/geoserver/wms", {
> > layers: "dw1:dim_province",
> > transparent: true,
> > format: "image/gif"
> > }, {
> > isBaseLayer: false,
> > buffer: 0,
> > visibility: false
> > }
> > ),
> >
> >
> > The layer is displayed with no poblem on Geoserver>preview as
> > openlayers. However It shows a pink tile image when I'm running the
> > html page.
> >
> >
> > Any hint or help would be highly apreciated.
>
> > ᐧ
> >
> ------------------------------------------------------------------------------
> > One dashboard for servers and applications across Physical-Virtual-Cloud
> > Widest out-of-the-box monitoring support with 50+ applications
> > Performance metrics, stats and reports that give you Actionable Insights
> > Deep dive visibility with transaction tracing using APM Insight.
> > http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
> > _______________________________________________ Geoserver-users mailing
> list Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
>
>
>
>
>
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users