Why don't I see the controls?

25 views
Skip to first unread message

corbanb

unread,
Jul 16, 2010, 3:14:48 PM7/16/10
to UMapper
Hi I am trying to just test the UMapper component but this code seems
to just show a map and no controls. Also the docs barely give any code
examples. That would be a huge help to sell this thing.


map = new UMap({size:new Size(550,400), animatePan:true});
map.apiKey = "XXXXXXX";

controls = new UIMapControl();
controls.display = "expanded";
map.addControl(controls);

addChild(map);
addChild(controls);

Andrei

unread,
Jul 16, 2010, 5:28:53 PM7/16/10
to UMapper
Please use addControl(control:IMapControl):IMapControl method to add
specific controls. See
http://www.umapper.com/content/docs/api/umap_as3/com/afcomponents/umap/core/UMap.html#addControl()
for more.

corbanb

unread,
Jul 18, 2010, 12:46:37 PM7/18/10
to UMapper
hi can someone please explain the code I wrote above and tell me why
its not working?



On Jul 16, 5:28 pm, Andrei <and...@umapper.com> wrote:
> Please use addControl(control:IMapControl):IMapControl method to add
> specific controls. Seehttp://www.umapper.com/content/docs/api/umap_as3/com/afcomponents/uma...()
> for more.

corbanb

unread,
Jul 16, 2010, 6:10:14 PM7/16/10
to UMapper

its in there. do you not see the lines:

controls = new UIMapControl();
controls.display = "expanded";
map.addControl(controls);

please help. we want to use this possibly but $7500 is high with bad
docs.


On Jul 16, 5:28 pm, Andrei <and...@umapper.com> wrote:
> Please use addControl(control:IMapControl):IMapControl method to add
> specific controls. Seehttp://www.umapper.com/content/docs/api/umap_as3/com/afcomponents/uma...()
> for more.

Andrei

unread,
Jul 18, 2010, 3:45:38 PM7/18/10
to UMapper
You need to add each control separately. For example, zoomControl =
new ZoomControl(); etc.
Reply all
Reply to author
Forward
0 new messages