Recently I found a cool website that works perfectly in web view that would show an animated “journey” from 2 inputs: origin and destination.
Here’s how it works:
The link to the original page with all parameters:
https://www.mapchannels.com/RouteMaps.aspx
Here’s my Construct URL column to get the webview link:
For start & destination, it accepts both lat/lon & address in text form. Lat/lon must be enclosed with brackets e.g: (35.63, 40.28).
If you pass your Google API key inside the Construct URL column then you can get pass the “advertisement” page at the start.
Hope it helps!
I will soon also post a CSS walkthrough to custom color map pins in Glide so stay tuned!
38 Likes
Ohh very nice thank you….
1 Like
Do you have an example of how to pass the Google API KEY inside the URL? @ThinhDinh
Very very cool brother. Great finding
1 Like
Here’s their reference on how to add an API key.
https://www.mapchannels.com/ApiKey.aspx#8
You have to create an account.
3 Likes
Krivo
August 16, 2021, 3:54am
8
@ThinhDinh Is the api key exposed when doing an app exam? I would expect so.
Yeah I passed my key as a params: key=abcdef. That worked as expected but as you said it might expose the key in the webview link.
However you can restrict the domains that can use the key in the Google Cloud console. I think it’s as close as it gets.
Krivo
August 16, 2021, 4:43am
10
@ThinhDinh do you know if you can specify the domain of your app (if using glideapp.io ) like myapp.glideapp.io - or you need to use just glideapp.io - which other glide apps also use - and thereby is open to other glideapps to (mis)use
I found some examples like this for specifying a domain.
*web.domain.org/*
*.domain.org/*
https://domain.org/*
I assume you can just put your full app link in there instead of just glideapp.io , which would expose it to being used in other Glide Apps.
2 Likes
As promised, here’s the thread for color coding map pins.
We have a little bit of a color show going on here
As promised in my last thread about showing a journey view in your app, here’s the thread for custom color map pins.
[image]
Requirements
A tab with details view
You know what status you can have, what color should they be
You know what field you will use as the title of the pin
The columns
[image]
Single code: A template column to get each line’s customized CSS, with dynamic info for the pins’ title and color code.
[image]
J…
1 Like
fantastico, mil gracias. es posible que solo al escibir la ubicacion actual y ubicacion destino se vea el mapa solo sin necesidad de darle click en ver mapa.
2. es posible que no se vean 3 cuadros sino simplemente el mapa?
fantastico, mil gracias. es posible que solo al escibir la ubicacion actual y ubicacion destino se vea el mapa solo sin necesidad de darle click en ver mapa.
2. es posible que no se vean 3 cuadros sino simplemente el mapa?
de esta forma?