[OpenLayers-Users] features jump around

christopher.schmidt at nokia.com christopher.schmidt at nokia.com
Mon Jul 26 13:00:00 EDT 2010


On Jul 26, 2010, at 11:55 AM, ext ulao wrote:

> 
> ah then that explains it I had to remove that as it made the map still. Any
> idea why using sphericalMercator would cause the map to stay stationary and
> not allow moment? Zoom seems to load the right detail zoom layer but its
> always set to 0,0 and I can not move outside of that.

You didn't set the maxExtent on your Map object:

  http://docs.openlayers.org/library/spherical_mercator.html#first-map

> 
> here is what I have.
> 
> 
> GoogleAerial = new OpenLayers.Layer.Google(	"Google Streets" ,	{type: 
> G_NORMAL_MAP, 'sphericalMercator': true,  numZoomLevels: 22} );
> 
> -- 
> View this message in context: http://osgeo-org.1803224.n2.nabble.com/features-jump-around-tp5338311p5338579.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




More information about the Users mailing list