amMap support forum

You are not logged in.

Announcement

FORUM CLOSED! This forum is closed. We moved to a new place at Zendesk. Update your bookmarks.

Flash amMap: Help


  • Index
  •  » Help
  •  » HELP - Error loading file: ammap_settings.xml

#1 2012-04-16 12:27:46

trichins
Moderator

HELP - Error loading file: ammap_settings.xml

meda,

I think it is a file permissions error - the XML files are not acessible. Below is the error message I received when trying to access the XML files directly (both data and settings):

Code:

Forbidden
You don't have permission to access /map/ammap/ammap_data.xml on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Offline

 

#2 2012-04-17 02:20:58

qemm
Administrator

Re: HELP - Error loading file: ammap_settings.xml

Yes, embedding settings and data in the HTML is totally possible.

Instead of "settings_file" and "data_file" parameters just use "map_settings" and "map_data" containing respective XML. I.e.:

Code:

so.addVariable("map_data", "<map ...>...</map>");
so.addVariable("map_settings", "<settings>...</settings>");

Offline

 

#3 2012-09-16 05:25:35

azorus
Member

Re: HELP - Error loading file: ammap_settings.xml

Hi,

I'm trying to use:

so.addVariable("map_data", "<map ...>...All content exernal data xml file...</map>");
so.addVariable("map_settings", "<settings>...All content external settings file...</settings>");

To embed (settings & data) in HTML file in order to be used on Google Site (problem to access external XML files !)

That seems working but accepted content must be a string on the same line in the editor (notepad)
When I try to respect XML arborescence of existing files (many many lines...) => syntax is not accepted

Do you have an idea to to that in order to maintain a clear view of setting and data inside HTML ?

Many thanks
Azorus

Offline

 

#4 2012-09-16 23:49:39

qemm
Administrator

Re: HELP - Error loading file: ammap_settings.xml

In JavaScript strings can be taken to the next line using backslash at the end of the line. I.e.:

Code:

so.addVariable("map_data", "<map ...>\
...All content exernal data xml file...\
</map>");

Offline

 

#5 2012-09-17 02:06:22

azorus
Member

Re: HELP - Error loading file: ammap_settings.xml

Hi qemm,

Many thanks...

I've tried internal settings in HTML instead external file - with so.addVariable("map_settings", "......");
That works

For data, so.addVariable("map_data", "<map....> .... </map>") do not work !

I've tested a variante : so.addVariable("map_data", escape('........'));  with escape & simple quote and that works
I do not understand why ?  Any idea ?

In other hand I can reach swfobject.js file on Google Drive, as:
<script type="text/javascript" src="https://docs.google.com/a/..../uc?id=Key1"></script>

But :

no way to reach ammap.swf as:
var so = new SWFObject("https://docs.google.com/a/ ... /uc?id=key2", "ammap", "100%", "100%", "8", "#00EEFF")

Also I cannot reach an image file inside <movie> as:
<movie long="2" lat="40" file="https://docs.google.com/a/ ... /uc?id=key3" center="true" width="10" height="10" title="test" text_box_x="650" text_box_width="300" text_box_height="400">

My goal is to place all ressources inside HTML (data & settings) and some other in Google Drive with key access

Do you have any idea to solve these problems

Many, many thanks

Offline

 

#6 2012-09-17 23:59:37

qemm
Administrator

Re: HELP - Error loading file: ammap_settings.xml

I'm not sure why it does not work without seeing your actual settings. Must be some escaping issue.

As for hosting ammap.swf on Google Drive, what does the browser Network console say about those loads?

Offline

 

#7 2012-09-19 03:32:55

azorus
Member

Re: HELP - Error loading file: ammap_settings.xml

Hi,

When hosting ammap.swf on Google Drive, Browser network console => no error
Just "Error Loading file: ammap/maps/world.swf" message appears when loading the map
(for this test I've maintened "world.swf" in ammap/maps sub directory


2nd test: when hosting also "world.swf" on Google Drive
Map appears, but settings & data seem not taken in account (no area colors, no movie)
Browser network console indicates: "PPB_Graphics2D.PaintImageData: Rectangle is outside bounds"

Thanks for your help
Azorus

Offline

 

#8 2012-09-20 02:45:25

qemm
Administrator

Re: HELP - Error loading file: ammap_settings.xml

This is due to Flash security restrictions. The swf cannot load external files from a different domain unless it contains a crossdomain.xml file.

Here is more information about it:

http://livedocs.adobe.com/flash/9.0/mai … 01085.html

Offline

 
  • Index
  •  » Help
  •  » HELP - Error loading file: ammap_settings.xml

© amMap & amCharts | Forum engine: PunBB