MapChartDataLayer vs. Marker Layer

Hi guys, I'm trying to access the MakerLayer class methods for my Map chart MarkerLayer, but using the code below, I keep getting "not a marker layer" results for all my layers, even though one of them is definitely a marker layer.  The results print this:

Spotfire.Dxp.Application.Visuals.Maps.StandardTileLayer

Plain reference map

not a marker layer

Spotfire.Dxp.Application.Visuals.Maps.MapChartDataLayer

AC_PROPERTY

not a marker layer

Why is my MarkerLayer being referred to as a MapChartDataLayer, and how do I convert it to a MarkerLayer, so I can access the MarkerLayer API?

I've also noticed a lot of the Map API's are marked as obsolete, specifically, the Marker Layer class...

https://docs.tibco.com/pub/doc_remote/sfire_dev/area/doc/api/TIB_sfire-analyst_api/html/T_Spotfire_Dxp_Application_Visuals_MarkerLayer.htm

What replaces this?

This is all in reference to this question / answer: https://community.tibco.com/questions/script-set-predefined-document-color-scheme-map-chart-layer#node-949851

for layer in mymap.Layers:
    markerLayer = None
    try:
        print layer.Title
        markerLayer = layer.As[Spotfire.Dxp.Application.Visuals.Maps.MarkerLayerVisualization]()
    except:
        print "passing"
        pass
    if markerLayer != None:
        break
        print markerLayer.Title

(1) Answer

Login