Sign in to follow this  
chmalon

Fusionmaps In Android

Recommended Posts

Good morning,

 

I am developing an application for the Android environment using phonegap/jquery mobile. I am currently developing in the Android 2.2 framework. With that being said, I am trying to use the fusionmaps product within a few of my html pages. I am able to successfully display the map and pass it the data to render. What I am having trouble with is how to use the Javascript call function as described in the documentation.

 

I have used both

<entity id='NA' value='515' link="JavaScript:myJS('NA, 515');"/>

and

<set label='USA' value='235' link="j-myJS-NA,515"/>

but have not had any success.

 

I have also tried to use just the link="details.html" in my xml, but it appears that when doing this, android will open up a new page that is outside of the jquery mobile ajax navigational train, so I lose my place when navigating to the new page.

 

Has anyone else encountered this? If so, what steps have you taken to work around this? Or, even better, is there a way to call a JS function when clicking on an entity as I described above?

 

Any help would be greatly appreciated!

 

Chris

Share this post


Link to post
Share on other sites
Guest Sumedh

Greetings, smile.gif

 

I could not replicate the issue.

 

As its working fine at our end.

 

Could you please send us relevant sample code and XML of your issue?

 

It will be helpful for us to look into it.

 

Hope you have a great day. smile.gif

Share this post


Link to post
Share on other sites

Greetings, smile.gif

 

I could not replicate the issue.

 

As its working fine at our end.

 

Could you please send us relevant sample code and XML of your issue?

 

It will be helpful for us to look into it.

 

Hope you have a great day. smile.gif

 

Sumedh, thanks for the response.

 

Would you be able to paste here your xml and corresponding JS so I could compare?

 

Thanks

Share this post


Link to post
Share on other sites
Guest Sumedh

Hi, smile.gif

 

Please find attached zip file for sample code and XML file of your requirement.

 

Also please note, if you want to open new link (load new page) on same page, you can use linked charts.

 

If you are willing to open chart on same page, you can open it in various ways(on the same page).

 

You can use iFrame for opening the chart in a Frame, you can load child chart in the same page by replacing the parent chart.

 

You can also load new chart in another div on the same page.

 

For more information about linked chart, please refer the following links

 

http://docs.fusioncharts.com/charts/contents/?DrillDown/Frames.html

 

http://docs.fusioncharts.com/charts/contents/?DrillDown/LinkedCharts.html

 

For live demo, please refer the following link:

 

http://www.fusioncharts.com/demos/features/#linkedcharts-for-easy-drill-down

 

Hope this helps. smile.gif

MapJSLink.zip

Share this post


Link to post
Share on other sites

Hi, smile.gif

 

Please find attached zip file for sample code and XML file of your requirement.

 

Also please note, if you want to open new link (load new page) on same page, you can use linked charts.

 

If you are willing to open chart on same page, you can open it in various ways(on the same page).

 

You can use iFrame for opening the chart in a Frame, you can load child chart in the same page by replacing the parent chart.

 

You can also load new chart in another div on the same page.

 

For more information about linked chart, please refer the following links

 

http://docs.fusionch...own/Frames.html

 

http://docs.fusionch...nkedCharts.html

 

For live demo, please refer the following link:

 

http://www.fusioncha...easy-drill-down

 

Hope this helps. smile.gif

 

Sumedh, I appreciate your response.

 

This however does not work on Android 2.2 framework. The map will show up, but the alert popup never fires.

 

Do you have any other workarounds or suggestions?

 

Thanks

Share this post


Link to post
Share on other sites

Hi,

 

Could you please confirm if you are accessing the page from a local machine?

 

If yes, to enable communication between maps and JavaScript (like updating data, retrieving data, printing, exporting, event handling etc.) in your local machine, you need to setup Flash Player Global Security settings.

 

For more information on 'Flash Player Security Settings', please refer the following link:

http://docs.fusioncharts.com/charts/Tools/FlashPlayerSecuritySetup/HowToSetup.html

 

Hope this helps.:)

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