HAS ANY ONE USED AMMAP IN DRUPAL?

I have been struggling to use the awesome flash maps at ammap in my drupal 6 site. I can't figure out the whole flash block, swf object thing. is there another swfobject2 module for drupal 6 i can only see one for drupal 4. do i even need swf object to use a ammap.

anyways check out Ammap it looks really nice, and then please share your experience.

has anyone done this?

looking for help.

Thank You all

FM

Comments

firemountain’s picture

anyone..?

vm’s picture

With a quick search of drupal.org regarding swfobject I easily found = http://drupal.org/project/swfobject_api
which has a 6.x release. Though it may not support blocks easily based on statements in the project page.

With a little reading in the documentation section of amMap: According to this page: http://www.ammap.com/docs/v.2/basics/getting_started No, the swfobject.js files aren't needed.

I quote:

You can also embed Flash in your page without swfobject.

Doing some research can certainly help answers ones own questions.

I don't know what your intentions are with the flash maps you've linked to but if you are wanting full integration into drupal you will need to write a custom module or hire someone to do it for you.

if you've not given location.module and gmap.module a run for it's money, you may want to do so.

firemountain’s picture

thanks for your response and directio

location and gmap are nice and very flexible, but if people want to use a map as a site navigation tool, say for foods of the world or something, flash maps like ammap offer a clean alternative.

i have read through and through and tried as many ways as i could and never could make it work, it came out almost but not fully.

anyways this is a good looking map tool that would be awesome to integrate into drupal site and i hope someone with some genius can figure a module to help with this. i certainly can not because i don't yet know how to create modules.

anyway if anyone comes across this in a search when looking for related topics, if there is any alternative tool similar to ammap out there with a nice clean look and functionality post it here and we can know about it.

Also if anyone has had success with ammap please post here.

thanks again VM for your response

- FM

vm’s picture

you can use gmaps.module and location.module to do what you want with regards to food. location and gmaps have the ability to add locations to nodes. Thus "recipes" could be put in countries of origin and such.

avior’s picture

Hi
I am checking it out now for a client
this is really cool flash map (how didn't i here about this before ?) ,
what is so great that it's uses the long, lat to place a dot on the map

you can use location module to add geo location info into your nodes
and write down a module that will generate the ammap_data.xml for this map

i don't know if my client will decide to go with this project

Good Luck

Avior

Zedwards’s picture

I just got ammap working on a drupal site (http://www.advocatesinternational.org) After uploading the files to the server, I used this string:

<!-- ammap script-->   
<script type="text/javascript" src="http://***absolute url***/ammap/swfobject.js"></script>
<div id="flashcontent"><strong>You need to upgrade your Flash Player</strong></div>
<script type="text/javascript">
  // &lt;![CDATA[
  var so = new SWFObject("http://***absolute url***/ammap/ammap.swf", "ammap", "750", "365", "8", "#444444");
  so.addVariable("path", "http://***absolute url***/ammap/");
  so.addVariable("data_file", escape("http://***absolute url***ammap/ammap_data.xml"));
  so.addVariable("settings_file", escape("http://***absolute url***ammap/ammap_settings.xml"));
  so.addVariable("preloader_color", "#999999");
  so.write("flashcontent");
  // ]]>
</script> <!-- end of ammap script -->

Most of this code was found on the ammap website where others had tried without success to get it to work. The key for me was adding so.addVariable("path", "http://***absolute url***/ammap/");
Just be sure the ammap_data file has your path listed as a relative url. For example mine was: map map_file="maps/world.swf"

joetronico’s picture

Hi Zedwards, thanks for your fix. I had some problems but got it to work eventually. First I tried it as content in a node, then as content in a block, but could not get it to work. Then I tried creating a separate module which also failed. Don't really know why. However, I eventually got it to work in a template. I created a separate node template (see: http://drupal.org/node/136647) and just pasted your code into it - success.

aspacepig’s picture

The solution above worked for me after adding an "empty" input filter called "javascript" so that there would be no filtering. Created a block and pasted the code and voila.

Now I just have to to figure out how to get a php script to output the xml. Any ideas anyone?

henokmikre’s picture

Did anyone get this working? Perhaps, by extending the charts_graphs module?