I can draw the image map and i can retrieve the geometry path, however and despite the geoData link be correct it is not drawing any geometry in the map. Been seeing some examples from stack and other's places and the examples are similar to this ones.
Any idea why the data is not being read (i am assuming the problem lies there with the data being retrieve) ?
Thanks in advance
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/5.7.0/d3.min.js"></script>
<body>
<div id="map" style="position:absolute; width:400px; height:600px; overflow:hidden; border: 1px solid red;">
<img
src="https://sig.cm-figfoz.pt/arcgis/rest/services/Internet/MunisigWeb_DadosContexto/MapServer/export?dpi=96&transparent=true&format=png8&layers=show:1,2,4,7,8,12,13&bbox=-58842.91417500004,43056.64792531277,-58667.48812500015,43317.59417468761&bboxSR=3763&imageSR=3763&size=400,595&f=image">
</div>
<svg overflow="hidden" width="400" height="600" id="map_gc"
style="touch-action: none; will-change: transform; overflow: visible; position: absolute; transform: translate3d(0x, 0px, 0px);">
</svg>
<script>
var width = 400;
var height = 600;
var chosenProjection = d3.geoMercator()
.scale(0)
.translate([0, 0])
var path = d3.geoPath()
.projection(chosenProjection);
var OutputJSON = "https://sig.cm-figfoz.pt/arcgis/rest/services/Internet/MunisigWeb_DadosContexto/MapServer/12/query?where=NOMERUA+LIKE+%27%25Beco+da+F%C3%A9%25%27+AND+LUG11DESIG+LIKE+%27%25Franco%25%27&text=&objectIds=&time=&geometry=&geometryType=esriGeometryPolygon&inSR=&spatialRel=esriSpatialRelIntersects&relationParam=&outFields=&returnGeometry=true&returnTrueCurves=false&maxAllowableOffset=&geometryPrecision=&outSR=&returnIdsOnly=false&returnCountOnly=false&orderByFields=&groupByFieldsForStatistics=&outStatistics=&returnZ=false&returnM=false&gdbVersion=&returnDistinctValues=false&resultOffset=&resultRecordCount=&queryByDistance=&returnExtentsOnly=false&datumTransformation=¶meterValues=&rangeValues=&f=pjson"
d3.json(OutputJSON, function (error, data) {
d3.select("svg").append("path")
.attr("d", path(data));
});
</script>
</body>