Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some new functionality #67

Open
wants to merge 8 commits into
base: 0.7
Choose a base branch
from
Open

Some new functionality #67

wants to merge 8 commits into from

Conversation

harumando
Copy link

Hello.
So i've added 2 new functions to this controll:

  1. Control can now be displayed as a reversed control. With passing the reversed:true option you can display control upside down.
  2. Something called "zoom presets". What it does is it adds new interface elements (buttons) to zoom control. You can click on a zoom preset button and it'll zoom you to a corresponding zoom. The example is given in the "examples" folder. You can initialize zoom presets by passing "zoomPresets" option to the control. "zoomPresets" action is an array of objects:
zoomPresets: [
  {label: 'World', zoom: 0},
  {label: 'Country', zoom: 5},
  {label: 'City', zoom: 12},
  {label: 'Street', zoom: 16}
]

I also added a transition property to the knob so it'll move more smoothly.

mattiasb and others added 8 commits January 4, 2014 10:58
This defines some indentation settings and the like. Combine this with
editorconfig from npmjs and a plugin for your favourite editor.
Forgot to remove this when I moved over to npm modules.
Using minus instead of a dash is better because it's usually of the same size as plus, so the buttons look symmetric.
Use proper minus sign (U+2212)
added bower.json to project
added zoom presets and reverse mod for the control
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants