Infrastructure Map Server General Discussion

Infrastructure Map Server General Discussion

Valued Contributor
Posts: 87
Registered: ‎04-12-2012
Message 1 of 1 (362 Views)

How to use Fusion API for creating points layer

362 Views, 0 Replies
10-18-2012 03:01 PM

How to create points in the client side by input lonlat values? I try use following code:


           var mgApiMapWidgetId = 'Map';
            var MainFusionWindow = GetFusionWindow();
            var pointsLayer = MainFusionWindow.OpenLayers;
            var Fusion = MainFusionWindow.Fusion;
            var mapWidget = Fusion.getWidgetById(mgApiMapWidgetId);
            var map = Fusion.getWidgetById(mgApiMapWidgetId).oMapOL;
            pointsLayer.LonLat.fromString("51.2356, -114.235689");

It can alert to "aa". That means last step not success. Do I need add SRS from the current map? Thank you.

Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.