3
Using kartograph, I want to load the SVG from this link: SVG. The first thing I noticed was the missing tag Metadata. So I copied this tag from another SVG file, but the image still doesn’t appear. Could someone look at the svg file from the link and tell me what is missing?
Below my html code.
<html>
<head>
<script src="../../js/jquery/jquery-1.9.1.min.js"></script>
<script src="../../js/raphaeljs/raphael-min.js"></script>
<script src="../../js/kartograph/kartograph.js"></script>
<script>
$(document).ready(function(){
var map = kartograph.map('#map');
map.loadMap('mymap.svg', function () {
map.addLayer("Terreno");
});
});
</script>
</head>
<body>
<div id="map"></div>
</body>
</html>
I haven’t tested this library yet, but I suppose because it’s Raphael.js you’re working with canvas combined with svg I’m sure?
– Guilherme Nascimento
I cannot say, here on the kartograph homepage[http://kartograph.org/] you have some examples
– luckasx
If my answer doesn’t help you, edit your question to add a functional example of the problem using the snippet (from the stackoverflow itself) or http://jsfiddle.net
– Guilherme Nascimento