Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9190

Re: Change Spot Location

$
0
0

Rereading my post I thought I would elaborate a bit more. I am using the AnalyticMap component and have configured a spot on the map in the configuration JSON data.

I noticed in the GeoMap there is an api call(getVos) that seems to get the spot data among other configured VO's, but I don't see an equivalent call for AnalyticMap. Is it possible to change an AnalyticMap's configured spot location after the map has been loaded?

 

Here is a small snippet of the config code for the spot:

 

{

  "SAPVB": {

  "Resources": {

  "Set": {

  "Resource": [

      {

      name:"blue_dot.png",

          value:<long image value>     }

  ]

  }

  },

  "Data": {

  "Set": {

  "N": [

  {

  "name": "Regions",

  "E": []

  },

  {

  "name": "Circles",

  "E": [

  ]

  },

  {

  name : "Spots",

  E : [

  {

  pos : "8.64;49.25;0"

  }

  ]

  }

  ]

  }

  },

 

And then lower down in the scenes section there is this:

{

  id : "Spot",

  type : "{00100000-2012-0004-B001-64592B8DB964}",

  datasource : "Spots",

  image : "blue_dot.png",

  "pos.bind" : "Spots.pos",

  text : "",

  tooltip : "",

  fxdir : "true",

  fxsize : "true",

  scale : "1;1;1",

  hotScale : "1.2;1.2;1.2"

  }

 

Best Regards,

Nick


Viewing all articles
Browse latest Browse all 9190

Trending Articles