Earl.Bennett

Members
  • Content count

    9
  • Joined

  • Last visited

Everything posted by Earl.Bennett

  1. I am replacing an existing map with a second one by creating a new FusionMaps object with the registerWithJS flag set to 1. The callback functions (getEntityList, setDataXML, etc.) are not being properly registered, and generate an error when I try to call them. (The first map works OK) The problem appears to be the following code in the render function in FusionMaps.js. if(!document.embeds[this.getAttribute('id')] && !window[this.getAttribute('id')]) window[this.getAttribute('id')]=document.getElementById(this.getAttribute('id')); It appears that the if statement prevents the window[this.getAttribute('id')] being properly set for the 2nd map, preventing the callback functions from being properly registered. This is FusionMaps V3.0, using IE 7.
  2. I am using FusionMaps V3.0. When I click on the link for the Map Specification Sheet for the Asian country of Georgia in the on line documentation, I get the map specification sheet for the U.S. state of Georgia.
  3. We are setting up an Angular Chart to automatically update itself every 60 seconds. When we use a URL for the chart (and dataStream) of the form http://localhost:8080/... the auto update does not work. It gives the following error: Error in loading stream data: The chart couldn't load data from the specified data stream URL. Error HTTP Status returned was: undefined. Please make sure that your data stream provider page is present in the same sub-domain as the chart. If we use a URL for the chart and dataStream of the form http://<machinename>:8080/.. the update works fine. Is this by design? Can someone explain to me why this would be? Thank you
  4. I have discovered the (undocumented) API getEntityList. This would be VERY useful in our application. I am pretty much copying what the FusionMaps GUI configuration tool does. In my FC_Rendered event handler I have the following code.. var widget = infosoftglobal.FusionMapsUtil.getMapObject(DOMid); var entities = new Array(); entities = widget.getEntityList(); This works great the first time I call it. However, when I load a new map, when I make this call from the FC_Rendered handler I get the following error.. Unable to evaluate the expression. Operation not supported. Unknown error: 0x80020102 Any suggestions as to what I might be doing? Earl
  5. Error when calling getEntityList

    After much hair pulling, I have tracked the problem down to the following code contained in the render function in FusionMaps.js.. if(!document.embeds[this.getAttribute('id')] && !window[this.getAttribute('id')]) window[this.getAttribute('id')]=document.getElementById(this.getAttribute('id')); When the second map is loaded, the if statement prevents window[this.getAttribute('id')] being updated, and the flash object can not properly register with the javaScript. The various callback methods (getEntityList, setDataXML, etc.) do not get created, and an error occurs when I try to call them. If I comment out the if statement, allowing the assignment to always execute, everything works fine. The FusionMaps.js used by the Maps GUI tool is much different than the one used by the FusionMaps product itself, and does not contain this code. By the way, I'm using IE 7, with the latest version of FusionMaps (3.0?) Earl
  6. Error when calling getEntityList

    With more testing, I have found that ANY call I make, including setDataXML(), fails after I load the second map. I could live without the getEntityList(), but not being able to make other calls is a real problem. Again, I have verified that the registerWithJS flag is set when I create the FusionMaps object, and the debug window shows the message "INFO: Map registered with external script. DOM Id of map is serviceMapID". However, I can't make any calls to the object. :w00t: Any suggestions would be greatly appreciated... Earl
  7. Error when calling getEntityList

    Sudipto, Thank you for your reply. Unfortunately, I am setting the registerWithJS flag for every map that I load. I set the debug flag, and verified via the messages in the debug window that the control is (claiming to) register with Javascript when the call fails. I have also reduced the XML used to load each map to the following minimal XML: <map animation="0" showShadow="0" showBevel="0" fillColor="F1F1F1" /> Do you have any otherr suggestions? Earll
  8. Real time angular charts and alerts

    I am setting up a real-time angular chart to refresh its data every 5 minutes. The upper limit of the chart is initially 1000. If the real-time update gets a value greater than 1000, then I want an alert so I can regenerate the chart with a new upper limit. If I set up an alert with a minValue of 1000, then I never get the alert. The values are just quietly discarded. If I set up an alert with a minValue of, say, 900, then I get the alerts when the value is equal to 900 or greater, but there does not seem to be any way to find out what the value received by the chart actually was without regenerating the request to the server from Javascript. This may be a very expensive operation. Any suggestions for how to handle this situation? In summary, I need to know when the real time data being received by the chart exceeds the charts upper limit so that I can regenerate the chart with a new upper limit.
  9. Real-time angular charts and alerts

    I am setting up a real-time angular chart to refresh its data every 5 minutes. The upper limit of the chart is initially 1000. If the real-time update gets a value greater than 1000, then I want an alert so I can regenerate the chart with a new upper limit. If I set up an alert with a minValue of 1000, then I never get the alert. The values are just quietly discarded. If I set up an alert with a minValue of, say, 900, then I get the alerts when the value is equal to 900 or greater, but there does not seem to be any way to find out what the value received by the chart actually was without regenerating the request to the server from Javascript. This may be a very expensive operation. Any suggestions for how to handle this situation? In summary, I need to know when the real time data being received by the chart exceeds the charts upper limit so that I can regenerate the chart with a new upper limit.