Forum Discussion

FirzanaShuja's avatar
FirzanaShuja
New Member
25 days ago
Solved

Azure Map - Issue with Conditional formatting

I am using an Azure Map visual which is connected to a table which has my Line ID in Location bucket and values in the Size bucket. There is a shapefile which is connected as a Reference Layer which ...
  • FirzanaShuja's avatar
    FirzanaShuja
    12 days ago

    Hi v-abhinavmu​ and ShahRukhSameer​ 

    Thanks so much for your response and for the time you've taken to help with my query, I really appreciate it. I did try these approaches as well, but unfortunately, they didn't resolve the issue in my case.

    After some further digging, I traced the problem back to the WKT/geometry of the shapefile I was uploading. Within the shapefile, the Line feature has a geometry type of MultiLineString. The Azure Maps visual does support MultiLineString geometry via shapefiles (and not other formats), so that part was fine.

    The actual issue was that my Line had a disjoined geometry as a result of spatial processing. As you can see in the screenshot below, the Line is split into 3 separate parts whose ends don't connect.

    Even though this disjoined Line still carries a MultiLineString geometry type, Azure Maps does not support disjoined features. The root cause turned out to be a cardinality/binding problem rather than a data problem: Azure Maps applies data-driven styling per feature. A LineString is a single feature (so it colours correctly), but a MultiLineString is one row holding N sub-parts, and the styling binder doesn't distribute reliably across them - so it drops the fill. 

    This also helped me rectify a related issue I was facing. I had been uploading the WKT geometry as a CSV, and none of the Lines were getting coloured. Once I geoprocessed the shapefiles to have a LineString geometry (rather than MultiLineString), I was able to upload the CSV as a Reference Layer directly — and the Lines rendered and coloured correctly.

    Hope this helps anyone running into something similar!😄