ucuncubayram

Javascript Api FeatureLayer Adding Map Object doesn't supported

Discussion created by ucuncubayram on May 28, 2013
Hi I am new in Javascript Api and reading 3.5 saples from here.

I wanna create new FeatureLayer like this,
   <script>
        dojo.require("esri.map");
        dojo.require("esri.dijit.Geocoder");
        dojo.require("esri.layers.FeatureLayer");
        dojo.require("esri.InfoTemplate");

        var map, geocoder;

        var censusBlock = new esri.layers.FeatureLayer(depoFeatureUrl, {
            showAttribution: false
        });




in line of "new esri.layers.FeatureLayer(...)" is throwing an error. Error is "Object doesn't support this action"

Outcomes