SObre mapas

More
1 month 1 week ago #203952 by brauliofirpo77
SObre mapas was created by brauliofirpo77
Estimados,

existe alguna manera de setear el centro y poner un marcador en una pregunta del tipo mapa via javascript? (los datos los saco de una base de datos)

Por las dudas, uso openstreetmap


Gracias!

Please Log in to join the conversation.

LimeSurvey Partners
More
1 month 1 week ago #203956 by Joffm
Replied by Joffm on topic SObre mapas
Cual datos?

Las coordenadas o la dirección?

¡Mira este!

File Attachment:

File Name: limesurvey...1211.lss
File Size:57 KB


Volunteers are not paid.
Not because they are worthless, but because they are priceless
Attachments:

Please Log in to join the conversation.

More
1 month 1 week ago #203977 by brauliofirpo77
Replied by brauliofirpo77 on topic SObre mapas
Joffm, gracias!

Respondiendo a tu pregunta, yo consigo las coordenadas a traves de una consulta a una api.

Entonces, si entendí bien, es en estas lineas donde seteo el centro y el marker, no?
$('#answer_lat{SGQ}_c').val($.trim(latLong[0]));
$('#answer_lng{SGQ}_c').val($.trim(latLong[1])).trigger('blur');


Ahi pruebo, y mientas te pregunto: sabes como se saca la barra de busqueda del mapa?

Please Log in to join the conversation.

More
1 month 1 week ago #204015 by Joffm
Replied by Joffm on topic SObre mapas
Tienes que añadir a custom.css:

.geoname_search, .coordinate-item {display:none !important;}

Joffm


Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now