[OpenLayers-Users] Adding new zoombar control?

samd sdoyle_2 at yahoo.com
Thu Nov 29 15:09:51 EST 2007


No Chris, there is more then this I understand that otherwise I would not be
able to produce a map in the first place. I was showing you that a simple
option of adding the numZoomLevels produced pink tiles. 

When adding the following controls:

map.addControl(new OpenLayers.Control.PanZoomBar({zoomWorldIcon:true}));
map.addControl(new OpenLayers.Control.MouseToolbar());
map.addControl(new OpenLayers.Control.LayerSwitcher({'ascending':false}));
map.addControl(new OpenLayers.Control.Permalink());
map.addControl(new OpenLayers.Control.Permalink());
map.addControl(new OpenLayers.Control.MousePosition());
map.addControl(new OpenLayers.Control.OverviewMap());
map.addControl(new OpenLayers.Control.KeyboardDefaults());


Christopher Schmidt-4 wrote:
> 
> On Thu, Nov 29, 2007 at 11:11:13AM -0800, samd wrote:
>> 
>> Hi Chris, very basic this works:
>> 
>>   map = new OpenLayers.Map( "map",
>>       {
>>          controls: []
>>       }
>>    );
>> 
>> This produces the pink tiles:
>>   map = new OpenLayers.Map( "map",
>>       {
>>          numZoomLevels: 5,
>>          controls: []
>>       }
>>    );
> 
> No, this produces nothing. You have no layers, and you haven't set a
> center.  
> 
> Regards,
> -- 
> Christopher Schmidt
> MetaCarta
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
> 
> 

-- 
View this message in context: http://www.nabble.com/Adding-new-zoombar-control--tf4891748.html#a14033820
Sent from the OpenLayers Users mailing list archive at Nabble.com.




More information about the Users mailing list