Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I have a Google map with different markers and the markers are shown if the user with the lat and lng are online.
So but now I want that if a user goes offline or online that his marker appears/disappears from the map. The On/Off function is handled with firestore.
So I know when a user goes on/off and it works with a page reload, but how can I handle it without a page reload.
If you need some code let me know!
Thanks.
Create a timer in your javascript code that auto refreshes your collection of markers. Upon refreshing go through your collection of markers that you kept from your first creation and mark them as visible or not visible.
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I currently have a timer set up on an “admin” page with JavaScript and I want to display that same live clock on the homepage of my website. How can I do this? It’s basically two input fields that display number values. One displays minutes and one displays seconds. The values are updated using buttons which are found on the admin page. What I’m trying to do is display the current time that the clock is showing on the admin page on a separate page. Is there a simple way to do this?
You could store the value of the timer server side and just query it each second to see at what time it currently is. You could also use socket.IO to have real time access to the server timer.
It's impossible. website is connectionless.
You can't push any event to other client page
without client behavior(like button click..)
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
What i basically want to do is to log in a user and make a new page for every user with its own personal details.
So for example user A signs in, he would have a different view than user B.
I am using javascript ans firebase for back end.
How can i make that happen?
A rough idea would be enough.
You should use Sessions for each user and one the bases of Session value you must populate values for the user each user will have seperate details and each user will have different data page will be same but data will be different so user feels that he has a new page
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I'm trying to make an application with google maps API. I want a function to be called when the user goes into street view. How would I create an event handler for when the street view is initiated?
First of all you should really go into the documentation before asking this question. Anyway, if you pay attention to the StreetViewPanorama class doc you will find something like
visible_changed
Arguments: None
This event is fired when the panorama's visibility changes. The
visibility is changed when the Pegman is dragged onto the map, the
close button is clicked, or setVisible() is called.
So probably using something like
var your_panorama = map.getStreetView()
you can then add a listener to the 'visible_changed' event. Calling the getVisible() method on your panorama should also help detect if you are actually in streetView mode. From there you can have your app behave accordingly. Play around with it and I am sure you'll be able to attain what you want.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I 've created a website for a real estate agency, so there is a page for each property in this site. Finally, I would like to check how many visits every property gets, collect and display these stats somehow. Can this be done with Google Analytics or any other already developed solution or I have to do it increasing a visit counter for each page and storing it in my database(which might increase page load time)? I am using Symfony 2 if this can be a useful information anyhow.
Yes. Google Analytics can be used to store the number of visitors and all the data analytics like page views and the regions in which the page is being viewed and many more.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
Is someone know a online Google Map "LatLng" generator that can give all "LatLng" when i click and save my multiple clicks "Latlng" that i can copy.
Please help me.
I'm not sure if I understand correctly what you are looking for, but when you mean that you are looking for a way to collect the LatLng's for clicks on a map you only have to observe the click-event of the map and store the latLng-property of the click-event somewhere(e.g. in a element in the page where you can select and copy it).
Sample: http://jsfiddle.net/doktormolle/JM8H8/
Without more details, the first answer which comes to my mind is : It is impossible to get all latitude / longitude of the world. It's like if you tried to get position of all points on the Earth, that makes no sens.
If you want to test your application with a lot of markers, just generates random coordinates (in a for loop for example), then, do what you want with these coordinates.