Select to view content in your preferred language

'barebones map'

663
4
04-01-2012 01:27 PM
TomRauch
Emerging Contributor
So I am just starting to work with the ArcGIS API for Flex, and would like some help creating the most basic map possible.  I can then build from that and add more features.

More specifically, I would like the map to load an array of data points (I will supply the data!) based on latitude and longitude.

Thanks!
Tags (2)
0 Kudos
4 Replies
RobertScheitlin__GISP
MVP Emeritus
0 Kudos
TomRauch
Emerging Contributor
Robert:

Thank you for your reply.  I did look through the samples.  Many seemed to have additional features that were specific to the sample.  I was just looking for something more simple, and I will keep looking.

Thanks again.
0 Kudos
TracySchloss
Honored Contributor
I don't think you can get much more barebones than the samples (not the code gallery) that are presented in the resources center.  The challenge is to combine them into something more useful. If you have already downloaded the API (and you probably have) every one of those samples is included in the API download.  When I was getting started, the first thing I did was start referencing my own services.  The 2nd thing was to use the sample under Mapping > Map Extent and Mouse Coordinates because it helped me change the samples to focus the map extent over my state. 

There a few other samples under the Concepts tab that were also useful to me.
0 Kudos
karldailey
Deactivated User
have a symbol declared
loop through your array, use the coords to create map ponits (http://resources.esri.com/help/9.3/arcgisserver/apis/flex/apiref/com/esri/ags/geometry/MapPoint.html)
use the map point and symbol you declared to create a graphic.
add that graphic to your graphics layer
0 Kudos