Sign in to follow this  
ganesh1412

Fusion map not working

Recommended Posts

Hi,

 

I am using jBoss-Seam framework with eclipse platform with jBoss 5.1 server and using the trial version of Fusion map v3.

 

 

 

i am trying to get the following code working(also attached).

 

 

 

/p>

 

"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

 

 

xmlns:s="http://jboss.com/products/seam/taglib"

 

xmlns:ui="http://java.sun.com/jsf/facelets"

 

xmlns:f="http://java.sun.com/jsf/core"

 

xmlns:h="http://java.sun.com/jsf/html"

 

xmlns:rich="http://richfaces.org/rich"

 

xmlns:a="http://richfaces.org/a4j"

 

template="layout/template.xhtml">

 

 

 

 

 

 

 

 

 

 

 

location_01

 

 

var map = new FusionMaps("FCMap_World.swf", "Map1Id", "750", "400", "0", "0");

 

map.setDataURL("FirstData.xml");

 

map.render("mapdiv");

 

 

 

 

 

 

 

 

 

 

 

 

 

 

but the map is not visible.

 

What could have went wrong.

 

Thanks in advance.

 

Ganesh

location_01.txt

Share this post


Link to post
Share on other sites
Guest Madhumita

Hello Ganesh,

Welcome to FusionCharts Forum. :)

Since, you have not declared a divison(<div> ) for the map to render, but have used map.render("mapdiv"); , the map is not showing.

Please create a divison or HTML element with id='mapdiv' , where the map would render.

Here's a piece of code:

 

<div id="mapdiv" align="center">

  FusionMaps will render here.

 </div>

  <script type="text/javascript">

var map = new FusionMaps("FCMap_World.swf", "Map1Id", "750", "400", "0", "0");

map.setDataURL("FirstData.xml");

map.render("mapdiv");

  </script>

 </script>

Hope this helps. :)

Share this post


Link to post
Share on other sites
Guest Rajroop

Hi Ganesh,

 

 

 

Thank for your confirmation on this. Glad everything is working for you.

 

 

 

Happy FusionCharting. :)

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