Support software developers

Last night I was struggling with Google Maps API and JavaScript. In my simple tool to create shapes suitable to use in Google Maps applications I have discovered bug – when creating shape You could drag&drop only last one marker. I’m quite sure it was working in March when I have released this version.

I was interested why this happens, since all markers created with this application have returned true when I called draggable() or draggingEnabled() on them. Despite of that, when You tried to drag marker, the map have scrolled, and marker was still in place.

This was strange, since markers was in perfect shape :) and even listeners for event dragend was still in place (tested with GEvent.trigger(markers[0], "dragend")).

I suppose there was problem with how I have refreshed all markers. After new marker was added I had called map.clearOverlays and then add all markers again, and draw new GPolyline. I rewrote some support functions and now markers are removed only when user changes mode of view between line or polygon. Strange is that basically all constructions used in earlier version are also in place in current one. But placed in different functions. And now it works.

And what support for developers have common with this story?

Well, I was using Firebug very heavy when I was debugging. This is so powerful tool and so simple to use. I decided that this time is enough and I need to support Firebug (which is open source and free tool) with little amount of money. You can donate some money on Firebug site.

I strongly encourage all of You to support authors of tools which are You using.

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.