@
@
@bojlahd2016-11-07 00:21:36
Google Maps
@bojlahd, 2016-11-07 00:21:36

Linking google maps to an online spreadsheet?

I have a personal Google map with points marked on it, how can I make sure that when I click on this point in the Google map, this parameter is registered in the online table? So let's say when you click, what would be at the bottom or on another page was there a calculator and counted all these points?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
alysenko, 2016-12-15
@alysenko

You need to use google.maps.event.addListener to track clicks on points (markers), and enter information about each marker into your table. Something like this:

google.maps.event.addListener(marker, 'click', (function(marker) {
  return function() {
                $('selector').append(marker.title);
  }
  })(marker));

If I understand correctly what you need.

S
Sergey delphinpro, 2017-01-23
@skdon

About something like this.
Hastily made up, just to show the basic principles.
The solution needs to be improved.
For adaptability, you need to add media queries.
Wrap the block of code where nth-child is used to minimize style conflicts in strict pixel ranges (for example, 0-479, 480-922, 922-...)
Using mixins to create frames, assign the necessary fillets. Mixins may need to be tweaked to fit the two rounds on the same block (on mobile when they are in the same column)
. Don't forget to add an order in the media queries for the correct order of the blocks.
https://jsfiddle.net/DelphinPRO/63zpaag6/
In general, nothing archi-complex. But to get a presentation you will have to spend time =) Go for it.

J
Jimmy Neutron, 2017-01-23
@SkyShot

Well, as an option, do it through the border, or through the background
. On an adaptive, I doubt that this will work out.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question