Skip to content

Instantly share code, notes, and snippets.

@cerkit
Last active June 1, 2016 13:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cerkit/0fa2839e32ee1e6d5c988ed8028b157c to your computer and use it in GitHub Desktop.
Save cerkit/0fa2839e32ee1e6d5c988ed8028b157c to your computer and use it in GitHub Desktop.
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