Autostrade per l'Italia

Salve a tutti,
vorrei creare un'app dove per ogni autostrada d'italia es. A1 Milano-Napoli; venisse indicato tutto il percorso; però in modo interrattivo e non in stile Google Maps.
Saluti
Nicola

The MIT Map component links to OpenStreetMap map tiles. OpenStreet map might be what you want. It does not use Google Maps.
milanA1

1 Like

@SteveJG ha ragione che può essere fatto dai collegamenti del componente MIT Map ai riquadri della mappa OpenStreetMap. OpenStreet map potrebbe essere quello che vuoi. Non utilizza Google Maps.

@SteveJG potresti per favore farmi un esempio su come poter lavorare con OpenStreet map?

Use the MIT map component.

Here is a template
openStreetMap.aia (1.1 KB)

An example showing how to use OSM without the Map Component

2 Likes

@SteveJG grazie mille per il tuo esauriente consiglio; lo studierò approfonditamente.
Saluti
Nicola

1 Like

@SteveJG sto iniziando ad utilizzare il componente Map e se associo ad un componente Marker un link, funziona perfettamente. Ma se voglio che venga visualizzato anche il nome del Marker; allora in quel caso, il collegamento al link non funziona.

The Blocks you posted are insufficient to provide any specific advice.

Are you using the Map component or the method using OSM without the Map Component using the WebViewer?

Ae you using a design time or run time Marker .

What does your SetLabel Procedure do? I expect the code is failing because your Autostrada_A1 Block. You might share all your Blocks. :cry:

You probably can provide the name with Blocks. How? It depends on how all your Blocks are coded. You do not provide sufficient information to even guess.

This tutorial shows one way to work with a 'label' for the Marker National Park Tutorial (Markers) updated

1 Like

Devo farti i miei complimenti; difatti il National Park Tutorial è fatto veramente bene.
Cmq cliccando sul marker mi lanciava direttamente il collegamento al link senza farmi leggere il nominativo del marker stesso. Quindi ho risolto semplicemente inserendo le istruzioni in un evento LongClick

1 Like

Dopo aver cliccato su un marker, mi visualizza il relativo link. Ma dopo aver cliccato su BackPressed per ritornare alla mappa e poter scegliere un'altro marker; mi visualizza questo errore:

You do not answer questions so how can anyone help without information. You do not show all your code; you do not provide an aia, you do not show how you use the Marker.

You probably cannot use Screen1.BackPressed to do what you want to do as a guess. I expect you should be using one of the WebVIewer options to make another selection. Which WebViewer feature you could use; sorryI have no idea if what you want to do is possible. :cry:

Il mio codice è essenzialmente questo..comunque ti mando il file AIA
Autostrade_Italia.aia (3.9 KB)

You have two ways you can code the BackPressed as marked in green. Either works but your existing Blocks ( x'ed out) does NOT work.

backPressed

If you make the change to either the first or second option, I think your app will work as you intended. :slight_smile:

1 Like

Grazie mille per il tuo suggerimento
Saluti
Nicola

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.