Sign in to follow this  
Arindam

Clickable Marker

Recommended Posts

Hi All,

 

I want to make a marker clickable and want to open hmm suppose google.com by clicking this marker. Can anyone please help me?

 

Thanks

 

Mahesh

Share this post


Link to post
Share on other sites

Hi,

Could you please use link attribute?

<markers>

  <definition>

  <marker id='01' x='360.06' y='209.57' label='Click Me' />

  </definition>

  <application>

  <marker id='01' shapeId='circle' link='http://www.google.com' />

  </application>

</markers>

Share this post


Link to post
Share on other sites

I am providing the xml data directly to the java script. I am not using any seperate xml. Can you please guide me how to use a seperate data.xml file. I am using swfObject to prepare a Map.

 

 

 

Thanks

 

Mahesh

Share this post


Link to post
Share on other sites

when i am trying to use link='www.google.com' (Without 'http://') it is taking the relative path which tries to find www.google.com inside the Root dir in which my html lies. It is not takin the request with absolute path which should be htt://www.google.com

 

 

 

Can anyone please help me to sort out the thing??

 

 

 

Thanks

 

Mahesh

Share this post


Link to post
Share on other sites

Hi Mahesh,

To use an external link to a web site you would need to prefix it with http:// in the link attribute, as this is following the http protocol and need to specify the protocol. Otherwize, the line parser would take the link as a relative path to some URL and not a absolute URL to a site. You would need to abide by this convention.

i.e. link='http://www.google.com'

Could I please know, the main point of confusion that you are facing?

Share this post


Link to post
Share on other sites

Hi Mahesh,

Could you please let us know the following things?

1. Browser and platform you are using?

2. The minor version of the map setting debug mode on

3. Provide the XML from the debug window (by copy pasting to a text file)

Finally, if you are using any other code than our basic implementation samples please send to us.

Share this post


Link to post
Share on other sites

Hi,

 

i am using firefox2and using java platform(eclipse) and in my j2ee project i am using the xml to provide data to swf file through swfobject. I have uploaded the tag file in a fom of a txt file. Please have a look and let me know where i am wrong

 

 

 

Thanks

 

Mahesh

fcWorldMap.txt

Share this post


Link to post
Share on other sites

Hi Mahesh,

The XML links with http:/ does not work in our labs.

Could you please arrange for a live site where we can get this live over internet.

Please let us know the following:

2. The minor version of the map setting debug mode on

3. Provide the XML from the debug window (by copy pasting to a text file)

Share this post


Link to post
Share on other sites

One more confusion is there. When i am hitting a simple html, then it is working with link='http:/www.google.com' but when i am using this in my j2ee application, it is not working.

 

 

 

Thanks

 

Mahesh

Share this post


Link to post
Share on other sites

Hi Sudipto,

 

I am not getting these points:

 

 

 

The minor version of the map setting debug mode on and

 

Provide the XML from the debug window (by copy pasting to a text file)

 

 

 

Please let me know how to provide this.

 

 

 

Thanks

 

Mahesh

Share this post


Link to post
Share on other sites

Hi Mahesh,

Please use so.addVariable("debugMode","1");

Please note that we provide a wrapper JavaScript (FusionMaps.js) morphed from SWFObject which would help reducing lot of your pains in this implementaion.

http://fusioncharts.com/maps/docs/Contents/BasicUsage.html

http://fusioncharts.com/maps/docs/Contents/DataXML.html

[ Using this method you can set debougMode by the bolded parameter :

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

]

Now when you set DebugMode on you can get a window above the map:

a0d61a6a-a24f-4777-8f27-748d.jpg

http://fusioncharts.com/maps/docs/Contents/Debug/window.html

You can see that you would get the version of the map here and the XML data.

Use you mouse and select the XML data as text selection ... copy the XML and paste the XML in a blank text file...save the file and attache in your post.

You can copy the XML for both caese http:// and http:/

Surely, the actual XML passed to the map would give a claer insight into the issue.

Share this post


Link to post
Share on other sites

Thanks Sudipto for the information.

 

Ok i have done the same thing. And please get the attached txt file that contains the actual xml data. Please have a look nand let me know where i am wrong. When i am using simple html it works with link='http:/www.google.com' but when i am using this in my j2ee application, it is not working.

 

 

 

Please help me.

 

 

 

Thanks

 

Mahesh

mapData.txt

Share this post


Link to post
Share on other sites

Hi Mahesh,

Please also check using simple HTML and http:/ using other browsers like Internet Explore 6/7/8 . It wont work.

If you are facing issues with HTML or Server Application using http:// please let us know.

http:/ using simple HTML works only in Firefox or even if in some other browers, this is not the correct way.

We always maining some protocols, coventions... isnt it?

Share this post


Link to post
Share on other sites

This the only thing i am worried about. When i am using link='http://www.google.com' it is not working even when i am trying to make the entire map clickable using clickURL='http://www.google.com' in tag, it is not working at all. By doing just hit and trials, i made this like link='http:/www.google.com' in simple html, it started working. I got surprised. and used same clickURL='http://www.google.com' and the entire maps was clickable and redirect me to google.com by this single '/':hehe:. OK. But when i am using the same code in my j2ee tag file, both things http:// and http:/ are not working. It creates a lot of headache to me. Please help to solve the issue.

 

 

 

OK let me make you clear that http:// and http:/ both are not working in my j2ee application that used a jsp and tag file. AND with only simple HTML http:/ is working not http://

 

 

 

Thanks

 

Mahesh

Share this post


Link to post
Share on other sites

Oh...thats GREAT... its working at one of my team mate machine with link='http://www.google.com'. Thanks a lot. Can you please let me know what should i do to make this working on my machine.:):)

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