<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE></TITLE>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1528" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=937141717-30052007>Hello Richard,</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=937141717-30052007></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=937141717-30052007>if you put the bounds and the maxresolution into the
map initalization it works. I have changed your script for testing. Put the
layerswitcher control in your original script and you can see that the editable
layer is inactive. If you zoom in, the layer gets activated. What the cause of
this I don't know. <SPAN class=937141717-30052007>I'm using 2.4
RC5.</SPAN></SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=937141717-30052007></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=937141717-30052007>I hope that helps. Perhaps next week I can put my own
example online.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=937141717-30052007></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=937141717-30052007><!-- Converted from text/plain format -->
<P><FONT size=2>Mit freundlichen Grüssen<BR><BR>Arnd Wippermann<BR><A
href="http://gis.ibbeck.de/ginfo/">http://gis.ibbeck.de/ginfo/</A><BR><BR></FONT></P></SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=937141717-30052007></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "<A
href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</A>"><BR><html
xmlns="<A
href="http://www.w3.org/1999/xhtml">http://www.w3.org/1999/xhtml</A>"><BR><head><title><BR> Editing
Tool Example<BR></title><BR><link
href="../../App_Themes/CloudAmber/Stylesheet.css" type="text/css"
rel="stylesheet" /></FONT></DIV>
<DIV> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2>
<style type="text/css"><BR> #map
{<BR> width:
800px;<BR>
height:
475px;<BR>
border: 1px solid black;<BR>
}<BR> </style></FONT></DIV>
<DIV> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2>
<script language="javascript" type="text/javascript" src="</FONT><A
href='http://www.openlayers.org/api/OpenLayers.js"></script'><FONT face=Arial
size=2>http://www.openlayers.org/api/OpenLayers.js"></script</FONT></A><FONT
face=Arial><FONT color=#0000ff><FONT size=2>><BR>
<!--<BR> <script
src="../OpenLayers2.4RC5full.js"></script></FONT></FONT></FONT><FONT
face=Arial color=#0000ff size=2> --></FONT><BR></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2>
<script language="javascript"
type="text/javascript"><BR>
<!--<BR> var lon =
430000;<BR> var lat =
426000;<BR> var zoom =
3;<BR> var map, layer;</FONT></DIV>
<DIV> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff
size=2> function
init(){<BR>
map = new OpenLayers.Map( 'map', {maxExtent: new
OpenLayers.Bounds(0,0,700000,1100000), 'maxResolution': 1000, controls: [] }
);</FONT></DIV>
<DIV> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff
size=2> layer
= new
OpenLayers.Layer.WMS("Map",<BR>
"<A
href="http://models.itoworld.com/map/wms">http://models.itoworld.com/map/wms</A>",
{<BR>
'layers':
'vwa,vpa,via,r,rw,vlb',<BR>
'srs':
'EPSG:27700',<BR>
'format':
'image/png',<BR>
'transparent': 'false'});</FONT></DIV>
<DIV> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff
size=2>
/*,
{<BR>
'isBaseLayer':
true,<BR>
'maxExtent': new
OpenLayers.Bounds(0,0,700000,1100000),<BR>
'maxResolution':
1000,<BR>
'projection':
'EPSG:27700'}<BR>
);<BR>
*/</FONT></DIV>
<DIV> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff
size=2>
map.addLayer(layer);</FONT></DIV>
<DIV> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff
size=2> vlayer
= new OpenLayers.Layer.Vector( "Editable" );</FONT></DIV>
<DIV> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff
size=2>
map.addLayer(vlayer);<BR>
map.addControl(new
OpenLayers.Control.EditingToolbar(vlayer));<BR>
map.addControl(new
OpenLayers.Control.PanZoomBar());<BR>
map.addControl(new OpenLayers.Control.LayerSwitcher());</FONT></DIV>
<DIV> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff
size=2>
map.setCenter(new OpenLayers.LonLat(lon, lat),
zoom);<BR> }</FONT></DIV>
<DIV> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff
size=2> //--><BR>
</script></FONT></DIV>
<DIV> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff
size=2></head><BR><body onload="init()"><BR>
<div id="panel" /><BR> <div id="map"
/><BR></body><BR></html><BR></FONT></DIV><BR>
<DIV class=OutlookMessageHeader lang=de dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>Von:</B> richard@cloudamber.com
[mailto:richard@cloudamber.com] <BR><B>Gesendet:</B> Mittwoch, 30. Mai 2007
01:28<BR><B>An:</B> arnd.wippermann@web.de<BR><B>Betreff:</B> RE:
[OpenLayers-Users] Drawing polygons<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV dir=ltr align=left><SPAN class=828222323-29052007><FONT
face="Century Gothic" color=#0000ff size=2>Thanks Arnd. The next two lines in
the code are exactly as the example:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=828222323-29052007><FONT color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=828222323-29052007><FONT face="Courier New"
size=2> vlayer = new OpenLayers.Layer.Vector( "Editable"
);<BR> map.addLayer(vlayer);<BR> map.addControl(new
OpenLayers.Control.EditingToolbar(vlayer));</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=828222323-29052007><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=828222323-29052007><FONT
face="Century Gothic" color=#0000ff size=2>but no joy... any chance of a link to
your version to compare and contrast? TIA</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> arnd.wippermann@web.de
[mailto:arnd.wippermann@web.de] <BR><B>Sent:</B> 29 May 2007 23:11<BR><B>To:</B>
'Richard Thurbin'<BR><B>Subject:</B> AW: [OpenLayers-Users] Drawing
polygons<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV dir=ltr align=left><SPAN class=921110822-29052007><FONT face=Arial
color=#0000ff size=2>Hello Richard,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=921110822-29052007><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=921110822-29052007><FONT face=Arial
color=#0000ff size=2>i would think, you need an editable vector layer, where to
draw the features. I have used the same example to build an own test for
drawing and then saving features in an ODBC DB and it works
fine.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=921110822-29052007><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=921110822-29052007><!-- Converted from text/plain format -->
<P><FONT size=2><FONT face=Arial>Mit freundlichen Grüssen<BR><BR>Arnd
Wippermann<BR></FONT><A href="http://gis.ibbeck.de/ginfo/"><FONT
face=Arial>http://gis.ibbeck.de/ginfo/</FONT></A><BR><BR></FONT></P></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=de dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>Von:</B> users-bounces@openlayers.org
[mailto:users-bounces@openlayers.org] <B>Im Auftrag von </B>Richard
Thurbin<BR><B>Gesendet:</B> Dienstag, 29. Mai 2007 18:13<BR><B>An:</B>
users@openlayers.org<BR><B>Betreff:</B> Re: [OpenLayers-Users] Drawing
polygons<BR></FONT><BR></DIV>
<DIV></DIV><!-- Converted from text/plain format -->
<P><FONT size=2><FONT face="Century Gothic">Well done all on the v2.4
release.<BR><BR>Regarding the EditingToolbar, I have implemented the openlayers
example: </FONT><A
href="http://dev.openlayers.org/sandbox/vector-2.4/examples/editingtoolbar.html"><FONT
face="Century Gothic">http://dev.openlayers.org/sandbox/vector-2.4/examples/editingtoolbar.html</FONT></A><BR><BR><FONT
face="Century Gothic">Here: </FONT><A
href="http://83.104.224.181/test/pages/admin/webform1.aspx"><FONT
face="Century Gothic">http://83.104.224.181/test/pages/admin/webform1.aspx</FONT></A><FONT
face="Century Gothic">. </FONT></FONT><FONT face="Century Gothic" size=2>After
some investigation, it seems the <FONT color=#ff0000><STRONG>red
</STRONG></FONT>bit below of the new layer code is making the toolbar not
work (except pan).</FONT></P>
<P><FONT size=2><FONT face="Courier New">layer = new
OpenLayers.Layer.WMS("Map",<BR> "</FONT><A
href="http://models.itoworld.com/map/wms"><FONT
face="Courier New">http://models.itoworld.com/map/wms</FONT></A><FONT
face="Century Gothic"><FONT face="Courier New">",<BR>
{<BR> 'layers':
'vwa,vpa,via,r,rw,vlb',<BR> 'srs':
'EPSG:27700', <BR>
'format': 'image/png',<BR>
'transparent': 'off'<BR> }<FONT
color=#ff0000><STRONG>,<BR>
{<BR> 'isBaseLayer':
true,<BR> 'maxExtent': new
OpenLayers.Bounds(0,0,700000,1100000),<BR>
'maxResolution': 1000,<BR>
'projection': 'EPSG:27700'<BR>
} </STRONG></FONT></FONT></FONT></FONT></P>
<P><FONT size=2><FONT face="Century Gothic"><FONT
face="Courier New">);</FONT><BR><BR>If I take the red out it works (but the
layer is useless). Any ideas?</FONT></FONT></P>
<P><FONT size=2><FONT face="Century Gothic"><FONT size=2>Regards,<BR>Richard
Thurbin <BR>Mobile: +44 7917 704 145<BR>VOIP: +44
8458 905 299<BR>Fax: +44 8700 518 913<BR>Email:
richard.thurbin@cloudamber.com<BR><BR>Cloud Amber Research and
Development<BR>Amber House<BR>Brockley Road<BR>Elsworth<BR>Cambridge<BR>CB23
4JS<BR>United Kingdom<BR><BR><A
href="http://www.cloudamber.com/">http://www.cloudamber.com</A><BR><A
href="http://www.carboncalculator.info/">http://www.carboncalculator.info</A><BR><A
href="http://www.qbust.info/">http://www.qbust.info</A>
</FONT></P></FONT></FONT></BODY></HTML>