How to convert google map api to image with Rectangles and circles using javascript or jQuery? -
var map; var myoptions = { zoom: 5, center: new google.maps.latlng(38.34229273303357, -84.72112273886108), zoomcontrol: true, minzoom: 4, maptypecontrol: false, scalecontrol: false, fullscreencontrol: false, streetviewcontrol: false, }; map = new google.maps.map(document.getelementbyid('map'), myoptions); //2. set options map var bounds = { north: 39.28425555214957, south: 38.34229273303357, east: -84.72112273886108, west: -85.39540862753296 }; var rectangle = new google.maps.rectangle({ bounds: bounds, editable: true, draggable: true, zindex: 100, strokecolor: '#c13f3f', fillcolor: '#c13f3f' }); tractlayer = null; tractlayer = new google.maps.fusiontableslayer({ map: map, heatmap: { enabled: false }, query: { select: 'geometry', from: "15u540_eyy8nfxxpmsaqhdqtvxrvbg5ynamdocucw", where: "" }, styles: [{ polygonoptions: { fillopacity: 0.5 } }], options: { styleid: 2, templateid: 2 } }); tractlayer.setmap(map); rectangle.addlistener('dragend', function() {}); rectangle.setmap(map); <script src='https://maps.googleapis.com/maps/api/js?v=3.exp'></script> <div id='map' style='height:600px;width:100%;'></div> i have used google map api version 3 embed google map in application. use of [static map api][3] able convert google map image format markers not rectangles , circles
how convert google map (with rectangles,circles , markers) image using javascript or jquery or other way ?
i have attached code snippet , needs converted image file rectangle.
Comments
Post a Comment