Feature layer with no service?

349
2
Jump to solution
02-05-2013 09:36 AM
JasonCantrell
New Contributor III
I'm trying to setup a basic FeatureLayer without a service.  I just want to have a featureLayer that displays one point on a map.  I can't seem to find any examples of how to use a FeatureLayer without a feature service or a map service.  Can anyone tell me how to do this or point me to a simple example?

In case you're wondering, I'm attempting to use the below widget to add an infoWindow to my map that displays an iFrame with streaming video content.

http://www.arcgis.com/home/item.html?id=d533bad75bac41e6904b4ddbc6b22cd2
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus
Jason,

   Sure here is a thread with an example:

http://forums.arcgis.com/threads/58388-Initialize-client-side-FeatureLayer-with-FeatureCollection

Don't forget to click the Mark as answer check on this post and to click the top arrow (promote).
Follow these steps as shown in the below graphic:

View solution in original post

0 Kudos
2 Replies
RobertScheitlin__GISP
MVP Emeritus
Jason,

   Sure here is a thread with an example:

http://forums.arcgis.com/threads/58388-Initialize-client-side-FeatureLayer-with-FeatureCollection

Don't forget to click the Mark as answer check on this post and to click the top arrow (promote).
Follow these steps as shown in the below graphic:

0 Kudos
JasonCantrell
New Contributor III
Thanks, Robert!

So I now have another question. I realized that I can't use the widget I linked to above because I'm not using the Flex viewer. I currently have a map point being displayed through a feature layer. This point marks the location of a webcam. I want to be able to display the streaming video from this webcam (via the Flex iFrame) in an InfoWindow when I click on the original webcam mappoint.

I'm having a hard time figuring this out. There seem to be two ways to define an InfoWindow (as either an InfoWindow or an InfoSymbol), plus various other ways to define the way data is going to be displayed within that InfoWindow (InfoRenderer, InfoWindowRenderer, InfoWindowContent, etc.). Can anyone suggest the best way to do this, or point me to another helpful example?
0 Kudos