using Google maps JS api in blazor
Posted 315 days ago
by padans
Hi,
google.maps.event.addDomListener(window, 'load', function () {
new google.maps.places.SearchBox(document.getElementById('travelfrom'));
new google.maps.places.SearchBox(document.getElementById('travelto'));
directionsDisplay = new google.maps.DirectionsRenderer({ 'draggable': true });
These are JavaScript functions.
I use JsInterop.
How to call these functions in a Blazor component?
travelfrom and travelto are input textboxes in the html part of the component.
Thanks in advance for help.
Kind regards,
Gerard
Someone is typing...
Post a Reply
You must be logged in to add a new post.
Number of online users: 2