Peter1990 Posted August 2, 2020 Share Posted August 2, 2020 Hi everyone, These days I am working on my new project. The idea is the following: I want to insert google maps in my project. When the user click on some city, to display the table with the weather information for the city. For now I implemented google maps on my project. Also I set markers for specific places. Now I want to implement weather API, so when the user click on some specific city to display weather information. This is the tutorial I followed in order to implement google maps in my project: https://www.youtube.com/watch?v=Zxf1mnP5zcw&list=LLy8VbuH9TRk0RyLzTMcgqCg This is how my idea should works: https://openweathermap.org/weathermap?basemap=map&cities=true&layer=temperature&lat=46.3166&lon=18.9844&zoom=5 You can see from the second link that when you click on some city, the weather info appears. Can someone please tell me how to do this? I was searching on youtube, google, stackoverflow for days, but with no result. Thanks! Link to comment Share on other sites More sharing options...
Funce Posted August 4, 2020 Share Posted August 4, 2020 First of all, do you have code that can read when you click on the markers? Which markers? LongLat coordinates? After you get that information, you need to find a service which gives you weather information based on given Longitude and Latitude coordinates. Or whichever data you've received from Google Maps. Then you need to learn how to access the service you've found, and process any output accordingly. Link to comment Share on other sites More sharing options...
ishan_shah Posted September 14, 2020 Share Posted September 14, 2020 May be this will help you: https://stackoverflow.com/questions/11360090/how-to-trigger-google-maps-weather-layer-marker-click Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now