Page 3 of 5

Insertar google maps con una ruta personalizada (realizada en un archivo .kml)

Posted: Wed Oct 16, 2013 3:45 pm
by Vicent Cortés

Hello!

I have two questions:

The first one, I've marked several spots on a map as it is explained in the tutorial.

http://docs.appery.io/tutorials/addin...

My question is how you do the following, when users click on a point marked that opens on a different screen with information on that point.

The second of them, when I'm designing the app, there are times that information is larger than the screen, appearing in the side a scroll bar, this bar you can remove?

Greetings.


Insertar google maps con una ruta personalizada (realizada en un archivo .kml)

Posted: Thu Oct 17, 2013 10:58 am
by Kateryna Grynko

Hi Vicent,

If you add in the creation of the marker a parameter URL containing the name of the page you need to go:
codevar marker = new google.maps.Marker ({
...
url: 'someUrl',
...
});/code
Then later you can add a marker Click event handler:
codegoogle.maps.event.addListener (marker, 'click', function () {
Appery.navigateTo (this.url, {reverse: false});
});/code
On the 2nd issue: you can add CSS-property overflow:hidden; to the cell where you want to remove scrolling.


Insertar google maps con una ruta personalizada (realizada en un archivo .kml)

Posted: Thu Oct 17, 2013 2:27 pm
by Vicent Cortés

Thank you for your answer!

No I want to open a url, I want to open a new page of the App, how do this?

And one thing more, how can I remove the header and footer of the App?

A greeting


Insertar google maps con una ruta personalizada (realizada en un archivo .kml)

Posted: Thu Oct 17, 2013 2:44 pm
by Maryna Brodina

Hello!
[quote:]No I want to open a url, I want to open a new page of the App, how do this? [/quote] please take a look here http://docs.appery.io/documentation/w...
[quote:]And one thing more, how can I remove the header and footer of the App? [/quote] select the screen and in Screen properties uncheck Show Header/Show Footer


Insertar google maps con una ruta personalizada (realizada en un archivo .kml)

Posted: Thu Oct 17, 2013 2:54 pm
by Vicent Cortés

Thank you for your answer!
I will try anything!


Insertar google maps con una ruta personalizada (realizada en un archivo .kml)

Posted: Fri Oct 18, 2013 9:09 am
by laura Gómez

Hello!
No I want to open a url, I want to open in this marker a new page of the App, how do this?
Thanks


Insertar google maps con una ruta personalizada (realizada en un archivo .kml)

Posted: Fri Oct 18, 2013 9:53 am
by laura Gómez

other question:

I want to load this javascript in the startscreen, the gives me error:

function initialize() {
var chicago = new google.maps.LatLng(37.63, -122.424);
var mapOptions = {
zoom: 11,
center: chicago,
mapTypeId: google.maps.MapTypeId.ROADMAP
}

var map = Appery("googlemap_10").gmap;

var sfLatlng = new google.maps.LatLng(37.775, -122.4183333);
var marker = new google.maps.Marker({
position: sfLatlng,
map: map,
title: "San Francisco",
icon: http://i.imgur.com/QtWkT.png

});

google.maps.event.addDomListener(window, 'load', initialize);

Can you help me?

thanks


Insertar google maps con una ruta personalizada (realizada en un archivo .kml)

Posted: Fri Oct 18, 2013 11:18 am
by Kateryna Grynko

Hi Laura,

What is the error you get?


Insertar google maps con una ruta personalizada (realizada en un archivo .kml)

Posted: Fri Oct 18, 2013 12:59 pm
by Kateryna Grynko

Hi Laura,

You can use this code:
codewindow.open(this.url, '_blank');/code


Insertar google maps con una ruta personalizada (realizada en un archivo .kml)

Posted: Fri Oct 18, 2013 1:25 pm
by laura Gómez

Don't load in the page