MobiCycle UK
Posts: 0
Joined: Wed Jan 22, 2014 3:02 pm

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

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."

MobiCycle UK
Posts: 0
Joined: Wed Jan 22, 2014 3:02 pm

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

I changed line two to read:

mapOptions = {};

MobiCycle UK
Posts: 0
Joined: Wed Jan 22, 2014 3:02 pm

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

I also have an error on this code:

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

And here:

map.options['address'] = location;

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

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

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.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

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

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.

MobiCycle UK
Posts: 0
Joined: Wed Jan 22, 2014 3:02 pm

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

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?

Return to “Issues”