PhotoDune

Edit Interactive SVG USA Map

3 posts
  • Bought between 1 and 9 items
  • Has been a member for 1-2 years
omidhz says
I purchased the Interactive SVG USA Map and uploaded all files to my server in a directory called us_map. Everything works fine.

Now, if I move the index.html file to my website root domain.com/index.html and change the links int he index.html by adding us_map/ in front of all src for css and js files, the map does not load. I’m not sure what am I missing.

Here is my code in the header of the new file:

<link href="us_map/css/reset.css" rel="stylesheet" type="text/css" /> <link href="us_map/css/fonts.css" rel="stylesheet" type="text/css" /> <link href="us_map/css/style.css" rel="stylesheet" type="text/css" /> <link href="us_map/css/map.css" rel="stylesheet" type="text/css" /> <script src="/A2EB891D63C8/avg_ls_dom.js" type="text/javascript"></script> <script src="us_map/js/jquery.js" type="text/javascript"></script> <script src="us_map/js/raphael.min.js" type="text/javascript"></script> <script src="us_map/js/scale.raphael.js" type="text/javascript"></script> <script src="us_map/js/paths.js" type="text/javascript"></script> <script src="us_map/js/init.js" type="text/javascript"></script>

Thanks
3400 posts
  • Australia
  • Bought between 100 and 499 items
  • Exclusive Author
  • Has been a member for 2-3 years
  • Interviewed on the Envato Notes blog
  • Microlancer Beta Tester
  • Sold between 1 000 and 5 000 dollars
Australia says

Does that folder exist ? us_map

Try putting / before the folder name

Also is this folder A2EB891D63C8 a legitimate src?

3 posts
  • Bought between 1 and 9 items
  • Has been a member for 1-2 years
omidhz says

Does that folder exist ? us_map

Try putting / before the folder name

Also is this folder A2EB891D63C8 a legitimate src?

The folder us_map does exist. I also tried to put / before the folder name but didn’t work. I can see that the js and css files are loading appropriately.

I have not idea about folder A2EB891D63C8 . This came with the file and I don’t think it is working at all. I checked the A2EB891D63C8 src link in the original file and that also does not exist but the map loads correctly with or without that folder.

Once again, here is what I have:
mydomain.com/us_map/css
mydomain.com/us_map/fonts
mydomain.com/us_map/images
mydomain.com/us_map/js
mydomain.com/us_map/xml
mydomain.com/us_map/index.html

I copied a the index.html to root directory and called it map.html and changed the src in it:
mydomain.com/map.html

index.html which is located in the us_map is working fine. map.html which is located in the root does not load the map, but the css and other links are loaded correctly.

3 posts
  • Bought between 1 and 9 items
  • Has been a member for 1-2 years
omidhz says
OK, I found the problem. For future reference: in the file init.js on line 55 the url to the xml file should be corrected. the default is” url: 'us_map/xml/usaMapSettings.xml', The above URL should be updated based on the index file location.
by
by
by
by
by