Infrastructure Map Server General

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

How to use Fusion API for creating points layer

357 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.

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Welcome to the new Autodesk Community!
If this is your first visit, click here to get started and make the most of the Community. Let us know what you think of the new experience in the Community Feedback Forum.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community