Ticket #92 (new enhancement)

Opened 4 years ago

Last modified 4 years ago

Dropdown to select a scale

Reported by: ojohner Owned by: pgiraud
Priority: blocker Milestone: Future
Component: General.client Version: SVN
Keywords: Cc:
State:

Description

Set the map scale with a drop down.

Get the map object to create a dynamic select with an array of scale.

Change History

  Changed 4 years ago by pgiraud

  • owner changed from ojohner to pgiraud
  • milestone set to 0.2 Release

  Changed 4 years ago by pgiraud

the widget also needs to show an simple input if the map uses fractionalZoom

  Changed 4 years ago by pgiraud

My first attemps for this feature can be seen at (thanks to the sandboxes) : http://dev.mapfish.org/sandbox/pgiraud/scale/client/examples/map/scale.html

  Changed 4 years ago by pvalsecc

Is it normal that when I type "10000000", I get "10000000.000000002"?

Looks like map.getScale() needs to get some rounding before being displayed...

Other than that, looks good!

  Changed 4 years ago by elemoine

Pierre, could you please provide a patch so that someone can review it? Thanks,

  Changed 4 years ago by elemoine

  • milestone changed from 0.2 Release to 0.3 Release

Bumping this to 0.3. Pierre, if you care about this stuff provide a patch and I'll review it.

follow-up: ↓ 8   Changed 4 years ago by pgiraud

There's a bug reported in Open Layers? that may have an impact on this one. See http://trac.openlayers.org/ticket/1448

in reply to: ↑ 7   Changed 4 years ago by elemoine

  • milestone changed from 0.3 Release to Future

Replying to pgiraud:

There's a bug reported in Open Layers? that may have an impact on this one. See http://trac.openlayers.org/ticket/1448

This bug has been fixed.

Note: See TracTickets for help on using tickets.