3

I have an SVG image of African Continent, that I would like to make responsive, the image is 1500px by 1500px. and I use the ImportSVG library extension of Rapheal to utilize my SVG:

jQuery(document).ready(function () {
    jQuery.ajax({
        type: "GET",
        url: "Content/Blank_Map-Africa.svg",
        dataType: "xml",
        success: function (svgXML) {
            var paper = Raphael(150, 150, 1500, 1500);

            var newSet = paper.importSVG(svgXML);

            var world = paper.setFinish();
        }
    });
});

I have found this library, but not sure how I would include it in my project.

Shaddow
  • 3,175
  • 3
  • 22
  • 42
RogueWolf
  • 135
  • 3
  • 13
  • possible duplicate of [How Can i scale Raphael js elements on window resize using jquery](http://stackoverflow.com/questions/11176396/how-can-i-scale-raphael-js-elements-on-window-resize-using-jquery) – givanse Oct 03 '14 at 14:00

1 Answers1

3

here is a similar question:

Cross-browser SVG in responsive or fluid layout?

I believe using the Article mentioned would solve your issue

Community
  • 1
  • 1
Jacques Bronkhorst
  • 1,685
  • 6
  • 34
  • 64