Sign in to follow this  
Levti

Markers in setDataXML

Recommended Posts

Hi,

Could you please modify your Maps XML? You are using attribute with two [ ' ] character.  Please use only one [ ' ] character. Aso when you are using DataXML that time please do not use attribute with in  [""] id="myCustomShape" use id='yCustomShape' . Please follow this.

i.e

Your code:

<map showCanvasBorder=''0'' animation=''1'' baseFont=''Verdana'' borderColor=''005879'' fillColor=''F2F4F9'' includeValueInLabels=''1'' baseFontSize=''10'' >

Change to:

<map showCanvasBorder='0' animation='1' baseFont='Verdana' borderColor='005879' fillColor='F2F4F9' includeValueInLabels='1' baseFontSize='10' >

Full XML:

<map showCanvasBorder='0' animation='1' baseFont='Verdana' borderColor='005879' fillColor='F2F4F9' includeValueInLabels='1' baseFontSize='10' >

  <markers>

  <shapes>

  <shape id='myCustomShape' type='circle' fillColor='FFFFFF,333333' fillPattern='radial' showBorder='0' radius='4' />

  </shapes>

  <definition>

  <marker id='BE' x='355.23' y='160.88' label='Berlin' labelPos='bottom' />

  </definition>

  <application>

  <marker id='BE' shapeId='myCustomShape' />

  </application>

  </markers>

</map>

DataXML Code:

setDataXML("<map showCanvasBorder='0' animation='1' baseFont='Verdana' borderColor='005879' fillColor='F2F4F9' includeValueInLabels='1' baseFontSize='10' ><markers><shapes><shape id='myCustomShape' type='circle' fillColor='FFFFFF,333333' fillPattern='radial' showBorder='0' radius='4' /></shapes><definition><marker id='BE' x='355.23' y='160.88' label='Berlin' labelPos='bottom' /></definition><application><marker id='BE' shapeId='myCustomShape' /></application></markers></map>");

Edited by Guest

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this