[OpenLayers-Users] Bug in Google with overaly example
Christopher Schmidt
crschmidt at metacarta.com
Tue Aug 18 12:41:48 EDT 2009
On Tue, Aug 18, 2009 at 10:22:25AM -0500, Rodolfo Moreno wrote:
>
> Hi Eric, do you realize that the overlay examples in
> "http://openlayers.org/dev/examples/" is not working appropriately. Here is
> part of the example code for "google with overlay maps":
It's not working because 'world.freemap.in' is dead, kaput, etc. The
code should certainly work; can you provide an example where the
WMS server *does* exist and it doesn't work?
-- Chris
> function init(){
> map = new OpenLayers.Map('map');
>
> var satellite = new OpenLayers.Layer.Google(
> "Google Satellite" , {type: G_SATELLITE_MAP}
> );
>
> var wms = new OpenLayers.Layer.WMS(
> "World Map",
> "http://world.freemap.in/cgi-bin/mapserv",
> {
> map: '/www/freemap.in/world/map/factbooktrans.map',
> transparent: 'TRUE',
> layers: 'factbook'
> },
> {'reproject': true}
> );
>
> map.addLayers([satellite, wms]);
>
> map.setCenter(new OpenLayers.LonLat(10.205188,48.857593), 5);
> map.addControl( new OpenLayers.Control.LayerSwitcher() );
> }
>
> In this code I can see what you are saying(transparent: 'TRUE') but this
> sample is not working either.
> maybe it's an openlayers issue.
>
> Regards,
>
>
> Eric Lemoine-2-2 wrote:
> >
> > On Tuesday, August 11, 2009, Rodolfo Moreno <rodolfoamoreno at gmail.com>
> > wrote:
> >>
> >> Thanks Eric for your answer. I am overlapping a mapguide layer. I did
> >> what
> >> you suggested but it's not working.
> >>
> >> var dynamicOverlayOptions = {
> >> buffer: 1,
> >> singleTile: true,
> >> isBaseLayer : false,
> >> visibility : true,
> >> transparent:true // This is the code added
> >> };
> >>
> >> Is this property (transparent:true) new?
> >> I ask about it because my sample works fine 3 months ago.
> >
> > transparent is a WMS param. It should go in the Layer.WMS params, not
> > options.
> >
> >
> >>
> >> Thanks in advance
> >>
> >>
> >> Eric Lemoine-2-2 wrote:
> >>>
> >>> On Sat, Aug 8, 2009 at 12:35 AM, Rodolfo
> >>> Moreno<rodolfoamoreno at gmail.com>
> >>> wrote:
> >>>>
> >>>> Hi all,
> >>>> The google with overlay example from
> >>>> "http://openlayers.org/dev/examples/"
> >>>> is working incorrectly. The bug is not only because the worldmap is not
> >>>> loaded correctly but also because this is covering whole the map and
> >>>> thus
> >>>> the google layer is not showed, just the worldmap is showed. if you
> >>>> turn
> >>>> off
> >>>> the worldmap layer then it's possible to view the google layer. I
> >>>> realized
> >>>> about it because I have a similar example overlaping google maps with
> >>>> mapguide layers and 3 months ago this sample worked appropriately (in
> >>>> that
> >>>> moment the last release was 2.6 version) and now I got the same bug, it
> >>>> means that mapguide layers covers whole map that don't enable to view
> >>>> the
> >>>> google layers.
> >>>
> >>> The layer you put on top of the google layer must be transparent. If
> >>> your layer if a WMS layer (OpenLayers.Layer.WMS) use transparent:true
> >>> in the layer params.
> >>>
> >>>
> >>> --
> >>> Eric Lemoine
> >>>
> >>> Camptocamp France SAS
> >>> Savoie Technolac, BP 352
> >>> 73377 Le Bourget du Lac, Cedex
> >>>
> >>> Tel : 00 33 4 79 44 44 96
> >>> Mail : eric.lemoine at camptocamp.com
> >>> http://www.camptocamp.com
> >>> _______________________________________________
> >>> Users mailing list
> >>> Users at openlayers.org
> >>> http://openlayers.org/mailman/listinfo/users
> >>>
> >>>
> >>
> >>
> >> -----
> >> Rodolfo Moreno
> >> CivilEng
> >>
> >> --
> >> View this message in context:
> >> http://n2.nabble.com/Bug-in-Google-with-overaly-example-tp3407076p3426344.html
> >> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> >> _______________________________________________
> >> Users mailing list
> >> Users at openlayers.org
> >> http://openlayers.org/mailman/listinfo/users
> >>
> >
> > --
> > Eric Lemoine
> >
> > Camptocamp France SAS
> > Savoie Technolac, BP 352
> > 73377 Le Bourget du Lac, Cedex
> >
> > Tel : 00 33 4 79 44 44 96
> > Mail : eric.lemoine at camptocamp.com
> > http://www.camptocamp.com
> > _______________________________________________
> > Users mailing list
> > Users at openlayers.org
> > http://openlayers.org/mailman/listinfo/users
> >
> >
>
>
> -----
> Rodolfo Moreno
> CivilEng
>
> --
> View this message in context: http://n2.nabble.com/Bug-in-Google-with-overaly-example-tp3407076p3466693.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
--
Christopher Schmidt
MetaCarta
More information about the Users
mailing list