Select to view content in your preferred language

Webmaps and Graphics Layer within a Non-Flexviewer Application

534
1
12-06-2013 08:02 AM
ScottDawson
Emerging Contributor
Hello All,
I have a Flex based application that allows users to draw on a map. The application utilizes a dynamic service layer for project specific layers.  The code base supports multiple projects as the URL of the dynamic service is passed in when the Flex App is launched.  This application runs fine, I'm using Flex 4.6 SDK, Esri agslib-3.5-2013-09-19.swc.

The customer would like to transition to utilizing arcgisonline webmaps in-lieu of the dynamic-service layer and the base maps. In essence I would have the graphics layer laid on top of a web-map.  I am pulling in the webmap fine, and the graphics layer is being built from features pulled in via an AMF channel to the server side.   I can't seem to get the graphics layer on top of the web map, and can't find an example from Esri (or anywhere else).   My Questions:

Since the WebMapUtil inheritance tree is completely different from anything on the Layer Inheritance tree I'm wondering if what I'm trying to do is even possible? 

Do I need to re-architect the whole thing to write the graphics back to the ArcgisOnline webmap, rather than store them in a serverside database?

Is this use case for Arcgisonline webmaps a "good" use case, or should I tell the customer that we should stick with DynamicMapServiceLayer? 

It sort of seems webmaps are sort of an "all or nothing" type deal.  I haven't found a lot of examples of using a webmap as a base of a mashup.

Hopefully this will either be a 'Duh moment that I missed in the examples... but right now, I'm a bit reluctant to continue without letting the customer know it may be more time/$$$.  

Thanks.
Tags (2)
0 Kudos
1 Reply
ScottDawson
Emerging Contributor
Maybe a non-issue.
So after poking around Arcgisonline a while, all these webmaps have a plain old service URL behind them.  If I just do things the "old way" and point to this dynamic Service URL I think I should be OK.  Of course, they may lose the whole integration with tiled base layers, but they can select the base layer via a flex widget that I'd be familiar with.
0 Kudos