Select to view content in your preferred language

Display hatch symbols from PolylineM values

995
5
08-18-2010 06:56 AM
BenSayers
Emerging Contributor
Is it possible to display the hatches from the measure of a polylineM shapefile?
I have created a map service and the lines are being correctly coloured using the symbology I set in the MXD but the measure do not appear to be showing. Is this something I have set wrong (or not set)?

Many thanks,

Ben Sayers
GIS Developer
0 Kudos
5 Replies
CarlaYarrow
Emerging Contributor
Ben, did you ever happen to figure this out? I am trying to display hatch markers from a polylinem myself and I have yet to find a work around. I can create polyline vertices to points, but this simply outputs points that aren't integrated within the original lines the m values are coming from. Any help would be much appreciated.
0 Kudos
BenSayers
Emerging Contributor
I never got this working for the FeatureLayer but but my work around was to use an ArcGISDynamicMapServiceLayer as well as the FeatureLayer and turn off all of the irrelevant layers using esri.layers.ImageParameters.LAYER_OPTION_SHOW

This now shows the measures along the lines.

Hope this helps.

Ben Sayers
0 Kudos
CarlaYarrow
Emerging Contributor
Thanks, Ben. Could you explain this a little more thoroughly?
0 Kudos
BenSayers
Emerging Contributor
var imageParameters = new esri.layers.ImageParameters();
    imageParameters.layerIds = [1];
    imageParameters.layerOption = esri.layers.ImageParameters.LAYER_OPTION_SHOW;

    polylineMLayer = new esri.layers.ArcGISDynamicMapServiceLayer("http://www.address_of_your_REST_service/MapServer", {
        "imageParameters": imageParameters,
        id: "polylineMLayer"
    });
    map.addLayer(polylineMLayer);


Layer with ID 1 is the polylineM layer with the hatches labelled
0 Kudos
CarlaYarrow
Emerging Contributor
Any chance you had success in displaying the hatches in ArcMap instead? I do not have my m values as attributes, but rather they are coming as a output from FME model as coordinate geometry that only display when I chose to modify features in an edit session. When I originally posted in this forum, I was coming through a general search for "polylinem hatches" and I didn't realize I would end up in the API for JavaScript.
0 Kudos