resolve frontend rendering issue#1671
Conversation
|
Based on my review of the PR changes, here are the issues I found: Issues1.
|
| 'info_window' => '', // Content of info window (when click on marker). HTML allowed. | ||
| 'js_options' => [], | ||
| 'zoom' => $zoom, | ||
| 'map_id' => 'DEMO_MAP_ID', |
There was a problem hiding this comment.
Sao lại để là DEMO_MAP_ID? Phải là 1 ID unique được generate tự động chứ?
| position: location, | ||
| map: this.map, | ||
| draggable: this.$canvas.data( 'marker_draggable' ), | ||
| gmpDraggable: this.$canvas.data( 'marker_draggable' ) === 'true' || this.$canvas.data( 'marker_draggable' ) === true, |
There was a problem hiding this comment.
Có cần phải check true hay 'true' ko? Vì jQuery.data() tự convert sang boolean rồi. Nếu ko thì làm tương tự như cũ nhé.
|
|
||
| initMapElements: function () { | ||
| this.map = new google.maps.Map( this.canvas, { | ||
| var mapOptions = { |
There was a problem hiding this comment.
Dùng let, const, không dùng var.
|
User opencode-agent[bot] does not have write permissions |

No description provided.