Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Modify the border on a DevExtreme dxVectorMap widget using jQuery
<div id="mapContainer"></div>
<script type="text/javascript">
// attach map to mapContainer
var map = $("#mapContainer").dxVectorMap({
// config goes here...
}).dxVectorMap('instance');
// remove the border around the map
$("#mapContainer").children("svg:first").children("rect:first").attr("stroke-width", "0");
// you can also change the color of the border
// make sure you set the stroke-width to a non-zero value so it shows up
$(mapContainerSelector).children("svg:first").children("rect:first").attr("stroke", "#ff0000"); // make border red
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment