Select to view content in your preferred language

Dashed Line Symbology not joining correctly

355
5
03-04-2025 10:10 AM
Labels (1)
JimHodgson
Emerging Contributor

Hello! I am trying to use a dashed line to symbolize bike lanes, with data for the bike lanes coming from a hosted feature layer. When the lines are drawn in Map Viewer, however, the dash patterns are very inconsistent:

ArcGIS_Online_InconsistentDash.png

I expected the lines to be joined together, but instead they seem to be drawn per-segment. This can also lead to the dashes disappearing completely at different zoom levels (all lines in this image are symbolized identically):

ArcGIS_Online_NoDash.png

 

I've found that dissolving the lines into a single feature can solve this in Pro, but that's not a viable solution for the ArcGIS Online map - the data is coming directly from a hosted feature layer that is updated frequently.

Is this an issue anyone else has encountered? Any recommendations on getting the dashes to draw consistently/evenly?

0 Kudos
5 Replies
RussRoberts
Esri Notable Contributor

Can you share the map/layer and I can take a look into this? You can toss it into a group and invite russell_jsapi into it. 

0 Kudos
JimHodgson
Emerging Contributor

Hey! The data is public, it can be found here: Bikeways | VanMap

If you symbolize it as "Location (Single Symbol)" and set the pattern to dashed you should see the issue described in the post.

Thanks for looking into this!

0 Kudos
RussRoberts
Esri Notable Contributor

This is a map image layer and the server is exporting the image which is displayed in the map.  Here is the raw export where you can see the similar drawing you mention above.  Also the bikeways look to be multiple tiny features 

RussRoberts_0-1741183868254.png

 

RussRoberts_1-1741184085005.png

 

I would recommend if you can use the layer at the MapServer/0 URL which will use it as a feature layer and not rely on the export image for drawing and using the vector symbols under Dashed you will get a closer to expected result but still some of the dashes are longer than some of the individual features that are in the map.

 

RussRoberts_2-1741184181674.png

 

 

0 Kudos
JimHodgson
Emerging Contributor

Thanks for the reply! I tried adding the feature layer directly to the map, and unfortunately there's still the same issue:

JimHodgson_0-1741202465919.png

 

I suspect that, as you note,  the problem is coming from the fact that most of the features are quite small. Is there any way to connect the features based on their symbology fields? A kind of pseudo-dissolve that could be used to draw the dashes continuously across adjacent features in the same symbology class?

The ideal scenario would be to maintain our small-ish sections of road (which have different attributes for each half-block) as separate features, but have them draw as one continuous stretch of painted lane.

Thanks for your time!

 

0 Kudos
RussRoberts
Esri Notable Contributor

Not that I can think of tricky part would be number of dashes we use per map scale and width and knowing how the end of a row of features exists and when its just the end of a small feature which in the case above would behave better as a segment of the line. 

0 Kudos