Hi, I'm trying to add imageStatic layer to OpenLayers. I want to use "layer 
control using the extjs treepanel api" by ptsagkis, but when i add image 
layer, the map doesnt work. what I'm doing wrong? Can someone help me?


https://github.com/ptsagkis/extjs_ol3_layercontrol/blob/master/example2_morecontrols.html


  new ol.layer.Image({  
    title:"Image layer",
    source: new ol.source.ImageStatic({
       url: 'Map_2.jpg',
       imageExtent: ol.extent.applyTransform([2009443.115261799, 
6418096.475682668, 2038603.846745322, 6402300.52478386], 
ol.proj.getTransform("EPSG:3857", "EPSG:3857")),
    lyrControlOpt : {
       legendGroup : 'Image Layers',
       legendnodeid: 'osmid2',
       legendTitle : "Image layer",
       legendImgUrl: 
"https://encrypted-tbn2.gstatic.com/images?q=tbn:ANd9GcQuc6e1CN-FTgOjxnG0YLjQ-vxQ4T9jHXdhimbTHn1NmbXxzDJa";
    }
  }),



I'm trying to add image layer to OpenLayers. I want to use "layer control 
using the extjs treepanel api" by ptsagkis, but when i add image layer, the 
map doesnt work. what I'm doing wrong?

https://github.com/ptsagkis/extjs_ol3_layercontrol/blob/master/example2_morecontrols.html

  new ol.layer.Image({  
    title:"Image layer",
    source: new ol.source.ImageStatic({
       url: 'Map_2.jpg',
       imageExtent: ol.extent.applyTransform([2009443.115261799, 
6418096.475682668, 2038603.846745322, 6402300.52478386], 
ol.proj.getTransform("EPSG:3857", "EPSG:3857")),
    lyrControlOpt : {
       legendGroup : 'Image Layers',
       legendnodeid: 'osmid2',
       legendTitle : "Image layer",
       legendImgUrl: 
"https://encrypted-tbn2.gstatic.com/images?q=tbn:ANd9GcQuc6e1CN-FTgOjxnG0YLjQ-vxQ4T9jHXdhimbTHn1NmbXxzDJa";
    }
  }),

control layer JS is here:
https://github.com/ptsagkis/extjs_ol3_layercontrol/blob/master/src/LayerControl.js

-- 
You received this message because you are subscribed to the Google Groups 
"OpenLayers Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/openlayers-dev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/openlayers-dev/1c664991-db3a-4c26-a693-2b985a7bcfd9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to