A
A
agent11562016-09-11 18:36:53
Yii
agent1156, 2016-09-11 18:36:53

js generator what is it?

I work in yii2, the application is almost ready. I have a yandex app map, it adds labels to the map using a small js code. How to make it so that the user could add labels by entering only the coordinates?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2016-09-11
@slo_nik

Good evening.
Make the usual form, with only two fields, for latitude and longitude.
Write these two fields and the id of the user who added the coordinates to the database. You can add more recording time or something else.
When displaying information to the user, be guided by his id.
In order to put these coordinates on the map, get them from the database and "feed" them to the Yandex script.
Or output everything in a row, I don’t know how everything is arranged there and what are the requirements ...
Or just use the same js to get data from the form and put it on the map.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question