Page 3 of 3

Adding marker by clicking on map problem

Posted: Thu Sep 15, 2016 3:04 pm
by Misfer

Hi

I'm also using this code to select location from map and it sends the latlng of the last click to LVs nicely but the problem is that it still places markers every time I click

How to have it just moving the same marker .?

------

var placedMarkers = 0;
var availableMarkersToPlace = 1;
setTimeout( function(){
if(placedMarkers = availableMarkersToPlace)
return;
placedMarkers++;
var map = Appery("google_map").gmap;
google.maps.event.addListener(map, 'click', function(event) {
localStorage.setItem('myPos',event.LatLng);
placeMarker(event.latLng,map);

Code: Select all

 }); 

}, 1000);

---------

Adding marker by clicking on map problem

Posted: Fri Sep 16, 2016 9:02 am
by Serhii Kulibaba

Hello Misfer,

Please send a current location as a parameter of the function "placeMarker", instead of localStorage


Adding marker by clicking on map problem

Posted: Fri Sep 16, 2016 1:17 pm
by Misfer

Hi Sergiy,

I still need to send the selected location to localStorage because I need to use the value in different page .

Problem still not resolved


Adding marker by clicking on map problem

Posted: Sat Sep 17, 2016 11:49 am
by Misfer

Any guideline to move the marker ?

-----

var placedMarkers = 0;
var availableMarkersToPlace = 1;
setTimeout( function(){
if(placedMarkers = availableMarkersToPlace)
return;
placedMarkers++;
var map = Appery("google_map").gmap;
google.maps.event.addListener(map, 'click', function(event) {
localStorage.setItem('myPos',event.LatLng);
placeMarker(event.latLng,map);

});

}, 1000);

---------

Adding marker by clicking on map problem

Posted: Mon Sep 19, 2016 8:11 am
by Serhii Kulibaba

Unfortunately this is something outside the scope of standard Appery.io platform support. You may consider purchasing Advisory Pack to get more in-depth help on this question. Here is more information about Advisory Pack (http://appery.io/services/#Advisory_Pack).

Please look at this topic how to do that:
http://stackoverflow.com/questions/66...

E.g. you can check the source of the http://www.kmcgraphics.com/google/ to get it's JS code


Adding marker by clicking on map problem

Posted: Mon Sep 19, 2016 5:46 pm
by Misfer

Thanks


Adding marker by clicking on map problem

Posted: Wed Nov 09, 2016 1:15 pm
by Misfer

Hi

Sorry for repeating the same question again but I really ran out of any solution for about a month now. I even published my app to Appstore and GooglePlay with this problem because I gave up on fixing it

I'm using this code to select location from map and it sends the latlng of the last click to LVs nicely but the problem is that it still places markers every time I click

How to have it just moving the same marker .?

------

var placedMarkers = 0;
var availableMarkersToPlace = 1;
setTimeout( function(){
if(placedMarkers = availableMarkersToPlace)
return;
placedMarkers++;
var map = Appery("google_map").gmap;
google.maps.event.addListener(map, 'click', function(event) {
localStorage.setItem('myPos',event.LatLng);
placeMarker(event.latLng,map);

});

}, 1000);

---------

Adding marker by clicking on map problem

Posted: Wed Nov 09, 2016 3:10 pm
by Illya Stepanov

Hello - we can provide you help with your app implementation through our Advisory Pack service: https://appery.io/services/


Adding marker by clicking on map problem

Posted: Sun Nov 13, 2016 5:04 pm
by Misfer

Thanks - I found a workaround