hi, I''m having trouble getting an overlaid image to show up at anything other than 100% opacity. On the mapstraction sandbox, everything works fine; on my test site: http://www.anterotesis.com/mapdeployments/overlaytest.html as you can see it is at 100%, although I''ve specified just 10%. I can''t work out what version of mapstraction is being used for the sandbox; I''m using ver. 2.0.15. The only difference in the code is the sandbox calls: mapstraction = new mxn.Mapstraction(''map_canvas'',''google''); whereas I call: mapstraction = new mxn.Mapstraction(''mymap'', ''googlev3''); but trying to call ''google'' just gives me a blank page. Could someone set me on the right track here? Thanks John Levin -- John Levin http://www.anterotesis.com johnlevin at joindiaspora.com http://twitter.com/anterotesis
Hi John, I''ve tested tout overlay image (just replaced the url of the png) with the code provided in mapstration examples and works : https://github.com/mapstraction/mxn/blob/master/examples/googlev3.html Your mistake is that tou don''t use an absolute url for your image : mapstraction.addImageOverlay("murray","murray.png",10,30.2331661,59.8929121,30.4324581,59.9898820); Try with an absolute url and it will work ;) ++ b_b Le 14/01/2011 02:09, John Levin a ?crit :> hi, > > I''m having trouble getting an overlaid image to show up at anything > other than 100% opacity. On the mapstraction sandbox, everything works > fine; on my test site: > http://www.anterotesis.com/mapdeployments/overlaytest.html > as you can see it is at 100%, although I''ve specified just 10%. > > I can''t work out what version of mapstraction is being used for the > sandbox; I''m using ver. 2.0.15. > > The only difference in the code is the sandbox calls: > mapstraction = new mxn.Mapstraction(''map_canvas'',''google''); > whereas I call: > mapstraction = new mxn.Mapstraction(''mymap'', ''googlev3''); > but trying to call ''google'' just gives me a blank page. > > Could someone set me on the right track here? > > Thanks > > John Levin >
On 14/01/2011 11:20, Bruno Bergot wrote:> Hi John, > > I''ve tested tout overlay image (just replaced the url of the png) with > the code provided in mapstration examples and works : > > https://github.com/mapstraction/mxn/blob/master/examples/googlev3.html > > Your mistake is that tou don''t use an absolute url for your image : > > mapstraction.addImageOverlay("murray","murray.png",10,30.2331661,59.8929121,30.4324581,59.9898820); > > > Try with an absolute url and it will work ;) > > ++ > b_bHave tried with absolute url: http://www.anterotesis.com/mapdeployments/overlaytest.html but still no transparency. I have got transparency calling ''google'' (with a key) as opposed to ''googlev3''; is this a bug in mapstraction''s googlev3 code? Thanks John> > Le 14/01/2011 02:09, John Levin a ?crit : >> hi, >> >> I''m having trouble getting an overlaid image to show up at anything >> other than 100% opacity. On the mapstraction sandbox, everything works >> fine; on my test site: >> http://www.anterotesis.com/mapdeployments/overlaytest.html >> as you can see it is at 100%, although I''ve specified just 10%. >> >> I can''t work out what version of mapstraction is being used for the >> sandbox; I''m using ver. 2.0.15. >> >> The only difference in the code is the sandbox calls: >> mapstraction = new mxn.Mapstraction(''map_canvas'',''google''); >> whereas I call: >> mapstraction = new mxn.Mapstraction(''mymap'', ''googlev3''); >> but trying to call ''google'' just gives me a blank page. >> >> Could someone set me on the right track here? >> >> Thanks >> >> John Levin >> > _______________________________________________ > Mapstraction mailing list > Mapstraction at lists.mapstraction.com > http://lists.mapstraction.com/listinfo.cgi/mapstraction-mapstraction.com >-- John Levin http://www.anterotesis.com johnlevin at joindiaspora.com http://twitter.com/anterotesis
Hi John, Le 14/01/2011 12:50, John Levin a ?crit :> > Have tried with absolute url: > http://www.anterotesis.com/mapdeployments/overlaytest.html > but still no transparency. > I have got transparency calling ''google'' (with a key) as opposed to > ''googlev3''; is this a bug in mapstraction''s googlev3 code? > > Thanks > > John > >I''ve tried your code (exactly the same) on my machine and it works. Maybe a problem with the version of mapstration you are using. Ha i''ve found the problem ! The implementation of googlev3 addimageoverlay is not finished on mxn 2.0.15. I''ve made a pull request for this but Derek said that he want to refine it before integration. So it works on my machine beceause i use the dev version of mxn... You have to wait a bit that this functionnality ben integrated. ++ b_b
On 14/01/2011 12:03, Bruno Bergot wrote:> Hi John, > > Le 14/01/2011 12:50, John Levin a ?crit : >> >> Have tried with absolute url: >> http://www.anterotesis.com/mapdeployments/overlaytest.html >> but still no transparency. >> I have got transparency calling ''google'' (with a key) as opposed to >> ''googlev3''; is this a bug in mapstraction''s googlev3 code? >> >> Thanks >> >> John >> >> > > I''ve tried your code (exactly the same) on my machine and it works. > Maybe a problem with the version of mapstration you are using. > > Ha i''ve found the problem ! The implementation of googlev3 > addimageoverlay is not finished on mxn 2.0.15. I''ve made a pull request > for this but Derek said that he want to refine it before integration. So > it works on my machine beceause i use the dev version of mxn... > > You have to wait a bit that this functionnality ben integrated. > > ++ > b_b >Thanks very much! That explains it. I''m using 2.0.15; when will the next version be released? Thanks, John -- John Levin http://www.anterotesis.com johnlevin at joindiaspora.com http://twitter.com/anterotesis