Sorry about that, it was in a dev staging environment and I did not
have a publicly accessible link I could send out.
I was able to figure out how to do this though...sort of. I had been
trying to get the control to be added "automatically" as soon as
possible. However, I relaxed that requirement b/c our implementation
will not be able to make sure of the slider until a user chooses a
variable and so I've just attached the slider creation into the events
that trigger overlays being put on the map.
For whatever it is worth, I included a couple snippets of code below.
Addition of the custom control (div):
var sliderContainer = document.createElement('DIV');
sliderContainer.innerHTML='<div id="sliderContainer"></div>';
controlDiv.appendChild(sliderContainer);
Code I want(ed) to be triggered automatically (Note: This code is in a
separate file):
$('div#sliderContainer').html('');
$(function() {
$( "div#sliderContainer" ).slider({
orientation: "vertical",
range: "min",
min: 0,
max: 100,
value: 60,
slide: function( event, ui ) {
self.overlay.setOpacity(ui.value)
}
});
sliderSet=1;
});
I guess I am also sort of curious to know how to (programmaticly)
determine that the map is loaded and modifications can be made to the
controls.
Thanks
On Apr 14, 5:11 am, en4ce <
djen...@googlemail.com> wrote:
> link?
>