[OpenLayers-Dev] Adding client-side scale control

bwoodall bwoodall at bwoodall.org
Thu Sep 27 18:59:32 EDT 2007


May I suggest looking in the OSGEO service provider page 

http://www.osgeo.org/search_profile

On Thu, 2007-09-27 at 19:56 +0100, Ian Mayo wrote:
> Hi all,
> I'm keen to add some features to OpenLayers to support my specific
> requirement, and am looking for some contracted help.
> 
> Initially I'm going to try to find a developer through the
> rentacoder.com site.  I've had around 70% success rate there over the
> last couple of years, and see if I can find a competent developer -
> starting him/her off with a relatively simple new feature. then
> increase in complexity as my trust/confidence increases....
> 
> The first feature I'm considering is adding a client-side scale
> control.  I've created such a control in Java (see
> http://www.debrief.info/features/snail.gif), but am not yet up to
> speed in JavaScript or the OpenMap architecture...
> 
> So, here are my questions [at last...]
> - do you OpenLayers experts believe that such a scale can be drawn
> dynamically at each viewport refresh at an acceptable speed?

yes

> - should this new feature be implemented as a layer?

no, more like a control

> - does OpenMap already contain functionality to automagically decide
> on a suitable set of units/scale step size for the current viewport?

There is an 'Auto' resolutions for the baselayer (I hope I'm getting
this right since I mainly 'live' in the FixedZoomLevel world of Gmaps)

> - is there a clever way for the user to control the location of the
> scale (TL, TR, BL, BR) from within OpenLayers?

Several ways to this

>   Or is the only way to
> either specify it it the original html declaration/controls placed in
> the html "wrapper" functionality.
> 
> Any other constraints that I should bear in mind or recommendations
> for a tidy implementation would also be appreciated.
> 
> cheers,
> Ian.
> _______________________________________________
> Dev mailing list
> Dev at openlayers.org
> http://openlayers.org/mailman/listinfo/dev




More information about the Dev mailing list