Simplest way to activate Pan tool when loading map.

2 messages Options
Embed this post
Permalink
Måns Beckman

Simplest way to activate Pan tool when loading map.

Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)

Hi,

 

I’m wondering what the simplest way to activate the Pan tool when loading a map would be? I think it would be great if the Pan tool was activated by default, because the first thing a user would like to do is probably to move or zoom in the map and they can already zoom using the mouse wheel.

 

So is there a line of code or two that you could add to your template to make the Pan tool, or any other tool, active by default?

 

Cheers

Måns

 

-----------------------------------------------------------

Måns Beckman

Man and Machine

Fabriksgatan 13

412 50 Göteborg

Phone: +46 31 - 762 8182

Mobile: +46 733 - 38 83 19

 


_______________________________________________
fusion-users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/fusion-users
Paul Spencer-2

Re: Simplest way to activate Pan tool when loading map.

Reply Threaded More More options
Print post
Permalink
You should be able to do something like this:

Fusion.getWidgetsByType('Pan')[0].activate();

Cheers

Paul

On 3-Nov-08, at 8:24 AM, Måns Beckman wrote:

> Hi,
>
> I’m wondering what the simplest way to activate the Pan tool when  
> loading a map would be? I think it would be great if the Pan tool  
> was activated by default, because the first thing a user would like  
> to do is probably to move or zoom in the map and they can already  
> zoom using the mouse wheel.
>
> So is there a line of code or two that you could add to your  
> template to make the Pan tool, or any other tool, active by default?
>
> Cheers
> Måns
>
> -----------------------------------------------------------
> Måns Beckman
> Man and Machine
> Fabriksgatan 13
> 412 50 Göteborg
> Phone: +46 31 - 762 8182
> Mobile: +46 733 - 38 83 19
>
> _______________________________________________
> fusion-users mailing list
> [hidden email]
> http://lists.osgeo.org/mailman/listinfo/fusion-users


__________________________________________

    Paul Spencer
    Chief Technology Officer
    DM Solutions Group Inc
    http://research.dmsolutions.ca/

_______________________________________________
fusion-users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/fusion-users