Page 1 of 1

Preview Not Ready on Adding custom icons for Geolocation Marker & Multiple Location Points

Posted: Thu Jan 23, 2014 4:42 pm
by MobiCycle UK

I get an error message that reads, "preview not ready"

I also have a yellow warning on line 2 of my JavaScript, eventhough I copied and pasted the code.

"use service’s Success event. We want this code to run right after the service finishes successfully. Select the service and open Events tab.
Select Add Event Success.
Then select Add Action Run Custom JavaScript and enter the following:
Code to show the mapJavaScript

var map = Appery('googlemap1');
map.options['address']='';
map.refresh();
Test the App in browser, you should see your current location on the map."


Preview Not Ready on Adding custom icons for Geolocation Marker & Multiple Location Points

Posted: Thu Jan 23, 2014 5:02 pm
by MobiCycle UK

I changed line two to read:

mapOptions = {};


Preview Not Ready on Adding custom icons for Geolocation Marker & Multiple Location Points

Posted: Thu Jan 23, 2014 5:12 pm
by MobiCycle UK

I also have an error on this code:

if (location == '') {
alert ('Please enter a location.');
return;

And here:

map.options['address'] = location;


Preview Not Ready on Adding custom icons for Geolocation Marker & Multiple Location Points

Posted: Thu Jan 23, 2014 7:05 pm
by Maryna Brodina

Hello!
1) I get an error message that reads, "preview not ready" - could you post screenshot?
2) I also have a yellow warning on line 2 of my JavaScript - you can ignore yellow warning, there is no need to change code, should be as described in tutorial.


Preview Not Ready on Adding custom icons for Geolocation Marker & Multiple Location Points

Posted: Fri Jan 24, 2014 3:43 pm
by MobiCycle UK

i saved the screenshot as an image

Image


Preview Not Ready on Adding custom icons for Geolocation Marker & Multiple Location Points

Posted: Fri Jan 24, 2014 7:07 pm
by Maryna Brodina

Hello! This picture "preview not ready" has to be changed to map in a few seconds after opening the screen. It's normal that you see this picture while map is loading. Is this picture changes to the map? If it's not please check errors in console.


Preview Not Ready on Adding custom icons for Geolocation Marker & Multiple Location Points

Posted: Sat Jan 25, 2014 3:26 pm
by MobiCycle UK

Hi,

It did not update after 10 minutes.

I don't see any errors. Can you please be more specific about where I should check for errors?


Preview Not Ready on Adding custom icons for Geolocation Marker & Multiple Location Points

Posted: Sat Jan 25, 2014 3:30 pm
by Alena Prykhodko

Preview Not Ready on Adding custom icons for Geolocation Marker & Multiple Location Points

Posted: Sat Jan 25, 2014 3:33 pm
by Illya Stepanov

Hi - please take a look here :: http://docs.appery.io/documentation/d...