Renderer with TextSymbol for dynamic layer from Mapserver

444
5
02-01-2019 02:14 AM
Satish_Kumar_VarmaDandu
New Contributor
when trying to use Renderer with TextSymbol for  dynamic layer from Mapserver
following error is seen in the logs of Arcgis Server 
'Unable to instantiate class for xml schema type: esriTS'
0 Kudos
5 Replies
RobertScheitlin__GISP
MVP Emeritus

Satish,

   Your post is lacking a lot of details.

  1. What type of geometry is the layer of the map service that you are applying the renderer to?
  2. What version of the JS API are you using?
  3. What does your code look like for what you are attempting?
0 Kudos
RAMAKRISHNAVEMIREDDY
New Contributor

thanks for the reply

1. layer is of point geometry

2. I am using 3.27 jasvascript api

3. I am just dipalying the layer in my javascript apllication with my own textsymbol form true font

i am using ArcGISDynamicMapServiceLayer and creating 

var textSymbol = new TextSymbol('d', new Font("20pt", Font.STYLE_NORMAL, Font.VARIANT_NORMAL, Font.WEIGHT_BOLD, "gecefont"));
textSymbol.setColor(new Color([255,255,0,0.5]));

renderr and attaching to drawingoption of layer

I am able add textsymbol as graphic to map

but when i attaching same symbol to renderr and use it in drawing options of layer

at server i am getting error

'Unable to instantiate class for xml schema type: esriTS'

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

OK, I don't see the same error as you do but I definitely can verify that setting the layers renderer to a TextSymbol does not work for a ArcGISDynamicMapServiceLayer.

0 Kudos
RAMAKRISHNAVEMIREDDY
New Contributor

Unable to instantiate class for xml schema type: esriTS

what does that mean any idea

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Normally I would see something like that if you are trying to convert JSON to a symbol and something was wrong in the JSON.

0 Kudos