Last active
June 1, 2016 13:24
-
-
Save cerkit/0fa2839e32ee1e6d5c988ed8028b157c to your computer and use it in GitHub Desktop.
Modify the border on a DevExtreme dxVectorMap widget using jQuery
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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