[OpenLayers-Users] vector layer shifts when i zoom or pan the base layer

Alexandre Dube adube at mapgears.com
Mon Mar 29 08:37:03 EDT 2010


Hi,

  Maybe because of this :

  
http://trac.openlayers.org/wiki/FrequentlyAskedQuestions#WhydontmyvectorfeaturesworkoverGoogleYahooVirtualEarthetc.

Regards,

Alexandre

sapmaster wrote:
> hi friends,
> I am using the latest build of Openlayers and asp.net 3.5 I can add 
> points and polygons etc in a vector layer but why does the vector 
> layer shift when i zoom or pan the base layer? it shifts by a very 
> small fraction, but it looks very bad for a mapping application. while 
> the marker does not shift at all.
>
> so is there is a problem with projection? or my code?
> i use the following code
>
> vectors = new OpenLayers.Layer.Vector("Vector Layer"); var gphy = new 
> OpenLayers.Layer.Google( "Google Physical", { type: G_PHYSICAL_MAP }); 
> var gmap = new OpenLayers.Layer.Google("Google Streets", { 
> 'sphericalMercator': false }); var gsat = new 
> OpenLayers.Layer.Google("Google Satellite", { type: G_SATELLITE_MAP, 
> 'sphericalMercator': false }); var ghyb = new 
> OpenLayers.Layer.Google("Google Hybrid", { type: G_HYBRID_MAP, 
> 'sphericalMercator': false });
>
> ... and ...
>
> wfs = new OpenLayers.Layer.Vector("Editable Features", { strategies: 
> [new OpenLayers.Strategy.BBOX(), saveStrategy], projection: new 
> OpenLayers.Projection("EPSG:4326"), protocol: new 
> OpenLayers.Protocol.WFS({ version: "1.1.0", //opacity: 0.3, srsName: 
> "EPSG:4326", url: "http://demo.opengeo.org/geoserver/wfs", featureNS: 
> "http://opengeo.org", featureType: "restricted", geometryName: 
> "the_geom", schema: 
> "http://demo.opengeo.org/geoserver/wfs/DescribeFeatureType?version=1.1.0&typename=og:restricted" 
> }) }); please help.
>
>
> Thanks
> <http://sigads.rediff.com/RealMedia/ads/click_nx.ads/www.rediffmail.com/signatureline.htm@Middle?> 
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>   


-- 
Alexandre Dubé
Mapgears
www.mapgears.com




More information about the Users mailing list