Bruce Stuart
Posts: 0
Joined: Fri Oct 24, 2014 4:42 am

How do I remove map markers?

Joe,

Want to perhaps work on-line with it via a web-ex a little later today? Don't know if you're amenable to that - but it sounds like a little hands on between the two of us could shortcut a long discussion here...

email me - a href="mailto:jBruceStuart@comcast.net" rel="nofollow"jBruceStuart@comcast.net/a .... also let me know what time zone you're in.... as well as a couple of times - in that time zone - you might have free....

Best,

Bruce

Joe Sharples
Posts: 0
Joined: Mon Aug 18, 2014 1:31 pm

How do I remove map markers?

I followed further instruction from Bruce.

he suggested reseting the map on the event of leaving the page.

preApperyio("google_mapN").gmap = undefined ;
/pre

this caused my app to crash and even after removing the code and map component, and adding a new map component, the error persists.

in appery.js:

pre
refresh: function () {
if (this.isInitialized) {
var _that = this;
if (this.options.address != "") {
this.geocoder.geocode({ 'address': this.options.address}, function (results, status) {
if (status == google.maps.GeocoderStatus.OK) {
_that.options.latitude = results[0].geometry.location.lat();
_that.options.longitude = results[0].geometry.location.lng();
that.gmap.set("center", new google.maps.LatLng(that.options.latitude, _that.options.longitude));
_that.renderMarkers();
_that.options.mapElement.gmap('refresh');
} else {
console.log("Geocode was not successful for the following reason: " + status);
}
});
} else {
this.gmap.set("center", new google.maps.LatLng(this.options.latitude, this.options.longitude)); // THIS LINE IS HIGHLIGHTED IN DEV TOOLS WHEN I LOAD THE PAGE
//refresh markers
this.renderMarkers();
this.options.mapElement.gmap('refresh');
}
} else {
console.log("Cannot refresh, map is not initialized!");
}
}/pre

any idea how to fix this?

I'm having serious problems with my map.

Joe Sharples
Posts: 0
Joined: Mon Aug 18, 2014 1:31 pm

How do I remove map markers?

when i test the app it also crashes my builder page.
I have to close the page and then load the builder again.

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

How do I remove map markers?

Hi Joe,

Did you edit some sources? If so it could be a reason of this problem. Please check it.

Details: https://devcenter.appery.io/tutorials...

Regards.

Joe Sharples
Posts: 0
Joined: Mon Aug 18, 2014 1:31 pm

How do I remove map markers?

I edited a small part a few months ago on something unrelated.
But the app has worked fine, this error has occurred a soon as i used the code in my previous post.

Egor Kotov6832188
Posts: 0
Joined: Wed Nov 19, 2014 5:15 pm

How do I remove map markers?

Hello Joe,

1) Next code doesn't reset the map, it simply removes link from html structure of map and logic.
Apperyio("google_mapN").gmap = undefined ;

2) To remove markers you need for each of your marker call set function with parameter null.

https://developers.google.com/maps/do...

Joe Sharples
Posts: 0
Joined: Mon Aug 18, 2014 1:31 pm

How do I remove map markers?

Ok orignally i couldnt move the markers.
Now the app crashes when the page is loaded.

The only thing that has changed is added the code:
Apperyio("google_mapN").gmap = undefined ;

I have removed that code and now the error still persists.

Can someone from the appery take a look at it?

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

How do I remove map markers?

Hi Joe -

Could you please share your app public link? And describe how we can reproduce your problem.

Joe Sharples
Posts: 0
Joined: Mon Aug 18, 2014 1:31 pm

How do I remove map markers?

Thank you.

http://appery.io/app/mobile-frame?src...

login:
email: joe
pass: 123

after login, select 'Manchester'.

using nav bar, click 'Nights Out'

Then select the first item, 'Tika Beans @ Lola Lo'

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

How do I remove map markers?

Hi Joe,

Can not see this error with these steps.

Here is what i see: http://prntscr.com/6qjvgd/direct

Regards.

Return to “Issues”