[MapQuery] how to add an existing ol layer to mapquery
Giuseppe De Marco
peppelinux at yahoo.it
Tue May 15 11:03:46 EDT 2012
> where do you actually initialise the new layer?
in OpenLayers standard initialization. I created a simple WMS layer:
pcn_orto_06_sm_tlch = new OpenLayers.Layer.WMS("Tilecache Difsuolo", "http://localhost/cgi-bin/tilecache.cgi", {'layers': "pcn_minambiente_ortofoto_2006_900913"}, {'projection': proj});
> Is it already initialised in ol_layer?
Yes, It is.
> It looks a bit strange that you use a WMS bit have a Layer names osm.
the osm was a stupid example, it's simply useless, I know.
But when I add the existing layer in mq the opacity is 0 and visibility is False.
When zomm changes the ol_layer doesn't update bbox, I have to change ol_layer's visibility to false, change zoom map, and then set visibility to true.
I'm worryng about it,
any suggestions?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapquery/attachments/20120515/f1ba47e9/attachment.html
More information about the MapQuery
mailing list