Vicent Cortés
Posts: 0
Joined: Sat Oct 12, 2013 5:09 pm

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

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.

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

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

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.

Vicent Cortés
Posts: 0
Joined: Sat Oct 12, 2013 5:09 pm

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

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

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

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

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

Vicent Cortés
Posts: 0
Joined: Sat Oct 12, 2013 5:09 pm

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

Thank you for your answer!
I will try anything!

laura Gómez
Posts: 0
Joined: Mon Oct 14, 2013 9:51 am

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

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

laura Gómez
Posts: 0
Joined: Mon Oct 14, 2013 9:51 am

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

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

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

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

Hi Laura,

What is the error you get?

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

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

Hi Laura,

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

Return to “Issues”