Select to view content in your preferred language

Acetate Layers (like ArcIMS) in Export (ArcGIS REST API)

2740
2
05-12-2016 04:07 AM
HorstHeger
New Contributor

Hello,

are there any ideas how to implement (workaround) Acetate-Layers, like ESRI ArcIMS can?

In the ArcIMS-LAYER type="acetate"-Tag (child of the ArcIMS-GET_IMAGE or MAP-Tag) you can define objects (OBJECT-Tag - Link) like lines, polygons, ...!

I hope anyone can help me finding a solution how to workaround without great 'programming action' 🙂

Thank you

Horst

0 Kudos
2 Replies
PanagiotisPapadopoulos
Esri Regular Contributor

Depend of what kind of graphics you want to place.

for scalebar north arrow e.t.c Javascript API provide widgets.

For polygon, line, point and text you can use Feature Services.

For text especially use the label layer on feature services.

Capture.PNG

for this you can create a web map and use it on you application with out code.

0 Kudos
HorstHeger
New Contributor

here is my example, I used in ArcXML:

<LAYER type="acetate" name="FadenKreuz" id="acetate">' />

<OBJECT units="pixel"><LINE coords="' & #xLin# & '"><SIMPLELINESYMBOL color="255,0,255" /></LINE></OBJECT>' />

<OBJECT units="pixel"><LINE coords="' & #yLin# & '"><SIMPLELINESYMBOL color="255,0,255" /></LINE></OBJECT>

<OBJECT units="pixel"><POLYGON coords="' & #Pol# & '"><SIMPLELINESYMBOL color="255,0,0" /></POLYGON></OBJECT>

</LAYER>

This AXL-Code (with dynamically calculated xLin-, yLin- and Pol-variables) I place beetween the GET_MAP-Tags - it draws a rectangle (which shows where 'i am on the whole card') and a Crosshair in my OvervieMap-Picture... - hope you know, what I mean...

Thank you

Horst

0 Kudos