[OpenLayers-Trac] [OpenLayers] #24: Incorporate OpenLayers.Control.ScaleBar

OpenLayers trac at openlayers.org
Mon Jan 7 19:55:36 EST 2008


#24: Incorporate OpenLayers.Control.ScaleBar
----------------------------+-----------------------------------------------
  Reporter:  sderle         |       Owner:  tschaub    
      Type:  feature        |      Status:  assigned   
  Priority:  major          |   Milestone:  2.6 Release
 Component:  Control.Scale  |     Version:             
Resolution:                 |    Keywords:             
     State:  Review         |  
----------------------------+-----------------------------------------------
Comment (by tschaub):

 Replying to [comment:22 ahocevar]:
 > To be honest, I do not see anything wrong here. To mee, it seems that it
 does exactly what you are describing.

 Yeah, this control does it right.  It's just in MapBuilder, ka-Map,
 PrimaGIS, my old Calico app, and who knows where else that had it wrong.
 I previously didn't break out of the inner loop when the correct rule was
 encountered.

 > One more thing: the measure texts (around lines 320, 347 and 363) should
 also use formatNumber instead of toFixed to allow locale-dependant
 customization.

 In general, I've found there's really not much space for big numbers - so
 I've left the thousands separators out of the measures.  I see the point
 in making a custom decimal separator   available.  I'd really like to wait
 until something like formatNumber is available elsewhere to do that.

-- 
Ticket URL: <http://trac.openlayers.org/ticket/24#comment:24>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer


More information about the Trac mailing list