-
Notifications
You must be signed in to change notification settings - Fork 228
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
Standard OpenLayers controls #95
Comments
I have just noticed with v0.11.0-rc.5 that the attribution control is not collapsed and not collapsible. I think that in previous versions it was both collapsed and collapsible. This may be because of something I have done. It is not much of an issue for me as I know how to change it, so no action needed from you. In any case I see that in this issue you are intending to make it easier to specify, so I can wait for v0.12, |
Thanks @PeterC66 ! I'll take this into account |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Before you work on the implementaiton of this one. To at least be able to use the following as controls : import {defaults as defaultControls, ScaleLine} from 'ol/control.js';
...
data() {
return {
controls: defaultControls().extend([
scaleLineControl
]),
}
} |
Ok, I'll make this, for a while this is a suitable solution |
Possible release ? 😃 |
- resolved #132 #224 #225 #226, #230 - simplified initial interaction/controls setup #95 - added `id` property for all ol components for easy identification - mixins, ol-ext and rx-ext now are build to single file package, imports from those packages are not changed - UMD version (dev/demo version) now includes all used stuff from `ol` package
- resolved #173, #174, #201, #135, #216, #132 #224 #225 #226, #230 - merged of pull requests #160, #175, #180, #185, #188, #191, #206, #208, #212, #213, #215, #221, #227, #231 Thanks to @baspeeters, @sjmallon, @janlazo, @categulario, @skymaze, @jemasfox, @owen-thurston, @agmt5989, @RemiDesgrange - improved property watchers - optional debug messages - fixed broken UMD version - simplified initial interaction/controls setup #95 - added `id` property for all ol components for easy identification - mixins, ol-ext and rx-ext now are build to single file package, imports from those packages are not changed - UMD version (dev/demo version) now includes all used stuff from `ol` package - updated documentation and README
- resolved #173, #174, #201, #135, #216, #132 #224 #225 #226, #230 - merged of pull requests #160, #175, #180, #185, #188, #191, #206, #208, #212, #213, #215, #221, #227, #231 Thanks to @baspeeters, @sjmallon, @janlazo, @categulario, @skymaze, @jemasfox, @owen-thurston, @agmt5989, @RemiDesgrange - improved property watchers - optional debug messages - fixed broken UMD version - simplified initial interaction/controls setup #95 - added `id` property for all ol components for easy identification - mixins, ol-ext and rx-ext now are build to single file package, imports from those packages are not changed - UMD version (dev/demo version) now includes all used stuff from `ol` package - updated documentation and README
Release as v0.11.5, please upgrade |
Works like a charm, big thanks |
@ghettovoice I have version 0.12.6 and adding adding |
Hello @iboates , No, vuelayers still hasn't separate control components like
|
Thank you. How do you import it? I have imported it as
But then I get
|
sorry, I found an error in my example. You should pass array to
To add single control you can use: UPD: |
Currently VueLayers doesn't has any components for OpenLayers standard controls. And the only way
to work with them is through underlying
ol.Map
instance of thevl-map
component.The main goal is to implement an all standard controls to easily work with them as Vue components:
vl-control-attribution
-> Attributionvl-control-fullscreen
-> FullScreenvl-control-mouse-position
-> MousePositionvl-control-overview-map
-> OverviewMapvl-control-rotate
-> Rotatevl-control-scale-line
-> ScaleLinevl-control-zoom
-> Zoomvl-control-zoom-slider
-> ZoomSlidervl-control-zoom-to-extent
-> ZoomToExtentvl-control-default-set
(or some another name) - an extra meta component that will includes standard OpenLayers enabled controls ol/control/defaultsAlso an basic
control
mixin as a base type for all controls should be implemented to allow easy extending.Usage example:
The text was updated successfully, but these errors were encountered: