[OpenLayers-Users] Re verting to pan/zoom after feature insertion

Andrew de klerk andrew.deklerk at gmail.com
Wed Dec 19 08:00:09 EST 2007


Eric

It happens with me using the editingtoolbar example. Remember that one of
the vector tools must be selected when hitting refresh

Andrew

Eric Lemoine-3 wrote:
> 
> On Dec 19, 2007 12:37 PM, David E. Reksten <der at dod.no> wrote:
>> On 19/12/2007, Eric Lemoine <eric.c2c at gmail.com> wrote:
>> > On Dec 18, 2007 5:51 PM, David E. Reksten <der at dod.no> wrote:
>> > > Hi,
>> > >
>> > > is there a way to revert back to the pan/zoom function once a feature
>> > > has been finished (by double-clicking, normally)? I tried the
>> > > following, where p.controls[0] is my pan/zoom button in the
>> > > EditingToolbar:
>> > >
>> > >     vectors.onFeatureInsert = function(feature) {
>> > >         p.activateControl(p.controls[0]);
>> > >     }
>> > >
>> > > But this lets the double-click event pass through to the pan/zoom
>> > > button, where it causes the error "this.point has no properties -
>> > > /OpenLayers.js - Line 903". (Using rev. 4899)
>> >
>> > What versio of OL do you use?
>>
>> Version 2.5
>> OpenLayers.VERSION_NUMBER = "$Revision: 4899 $"
> 
> I commited a patch to trunk some days ago that may fix your problem.
> 
>> > > I'm sorry if this is more of a JavaScript question than OpenLayers,
>> > > but I was unable to find a resolution with Google.
>> > >
>> > > Oh, and by the way, I can confirm Andrew de Klerk's recent post about
>> > > an error in IE7 when doing a hard refresh of the page after inserting
>> > > a feature.
>> >
>> > Could you explain what a hard refresh is?
>>
>> Both F5 or Ctrl-F5 seems to trigger this error.
> 
> Does the problem exist on the OpenLayers examples (for example
> <http://openlayers.org/dev/examples/modify-feature.html>)? I haven't
> been able to reproduce here.
> 
> --
> Eric
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
> 
> 

-- 
View this message in context: http://www.nabble.com/Reverting-to-pan-zoom-after-feature-insertion-tp14401014p14416509.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.




More information about the Users mailing list