Google map of a group of addresses

If you have questions or if you want to share your opinion about Aware IM post your message on this forum
tford
Posts: 4238
Joined: Sat Mar 10, 2007 6:44 pm

Google map of a group of addresses

Post by tford »

Wondering if anyone has made a Google map of a group of instances of a BO. Tips?
Tom - V8.8 build 3137 - MySql / PostGres
rob_h7
Posts: 85
Joined: Mon Jan 25, 2010 3:52 am

Re: Google map of a group of addresses

Post by rob_h7 »

Yup. Quick solution =

1. Your business object with an address attribute - lets call it BOMAP
2. Create a Presentation on BOMAP - add in the Google Map element, fill out the options. I think the placement of it in the presentation is important, we have ours in Summary & it works, I think if you have it in Title it'll do a paged report..like 1 address per page...you can play around with that.
3. Query on BOMAP - display the presentation query.
4. Marvel as mutiple pins are placed on the maps & it looks amazeballs.
Rob . Aware 8.4 (build 2718), Developer Edition, using Linux, MYSQL
tford
Posts: 4238
Joined: Sat Mar 10, 2007 6:44 pm

Re: Google map of a group of addresses

Post by tford »

Thanks for the outline, Rob!
Tom - V8.8 build 3137 - MySql / PostGres
Jaymer
Posts: 2430
Joined: Tue Jan 13, 2015 10:58 am
Location: Tampa, FL
Contact:

Re: Google map of a group of addresses

Post by Jaymer »

+1 for Amazeballs

After you have a map with pins on it, what can you do next?
Is there a link or anyway to drill down to an Aware form when you click?
Click Here to see a collection of my tips & hacks on this forum. Or search for "JaymerTip" in the search bar at the top.

Jaymer
Aware Programming & Consulting - Tampa FL
rob_h7
Posts: 85
Joined: Mon Jan 25, 2010 3:52 am

Re: Google map of a group of addresses

Post by rob_h7 »

Yep, there's an option in the controls of the presentation to determine what happens when they click a marker, options like Edit Object, Start process etc
Rob . Aware 8.4 (build 2718), Developer Edition, using Linux, MYSQL
customaware
Posts: 2391
Joined: Mon Jul 02, 2012 12:24 am
Location: Ulaanbaatar, Mongolia

Re: Google map of a group of addresses

Post by customaware »

I assume some have got this to work.

I can't for some reason.

Any chance of a tiny demo bsv please?
Cheers,
Mark
_________________
AwareIM 6.0, 8.7, 8.8, 9.0 , MariaDB, Windows 10, Ubuntu Linux. Theme: Default, Browser: Arc
Upcloud, Obsidian....
Image
tford
Posts: 4238
Joined: Sat Mar 10, 2007 6:44 pm

Re: Google map of a group of addresses

Post by tford »

I did a few years ago, Mark, but I don't have anything currently using this.
Tom - V8.8 build 3137 - MySql / PostGres
Markfre1
Posts: 221
Joined: Sun Mar 11, 2012 10:15 pm
Location: United States

Re: Google map of a group of addresses

Post by Markfre1 »

Rob,

I thought it was recommended not to use a Presentation for maps but just a regular form? I believe the video tutorial said so. The problem with the regular form is you can only call directions. No options for processes, etc. It sounds like presentations is the way to go? Yes?

Mark F.
rob_h7
Posts: 85
Joined: Mon Jan 25, 2010 3:52 am

Re: Google map of a group of addresses

Post by rob_h7 »

Hi Marks,

Bailey I sent you a bsv.

Mark F - from what I remember:

Form - nice, quick, good for displaying one marker - i.e. a map cell on a Customer form which pins them on the map.

Presentation - a bit rigid in the display (not good if you want dynamic resizing), but allows you to define multiple operations to a marker, much like a query (edit object, start process which has the object in context etc...), can be used on a custom query to display multiple instances of the object - i.e. show 20 companies on the one map which can be clicked on an edited individually. Could get slow to generate if there were a lot.

Content panel on a VP using the predefined elements - can define a query to display multiple pins in the settings, but from what I can remember you can't define any actions on a click - so this is more like a display only option.

Rob
Rob . Aware 8.4 (build 2718), Developer Edition, using Linux, MYSQL
weblike
Posts: 1165
Joined: Sun Dec 02, 2012 12:00 pm
Location: Europe

Re: Google map of a group of addresses

Post by weblike »

rob_h7 wrote:Hi Marks,

Bailey I sent you a bsv.

Mark F - from what I remember:

Form - nice, quick, good for displaying one marker - i.e. a map cell on a Customer form which pins them on the map.

Presentation - a bit rigid in the display (not good if you want dynamic resizing), but allows you to define multiple operations to a marker, much like a query (edit object, start process which has the object in context etc...), can be used on a custom query to display multiple instances of the object - i.e. show 20 companies on the one map which can be clicked on an edited individually. Could get slow to generate if there were a lot.

Content panel on a VP using the predefined elements - can define a query to display multiple pins in the settings, but from what I can remember you can't define any actions on a click - so this is more like a display only option.

Rob
Would be nice to share with all of us... :)
thank you
Thx,
George
________________________________
Developer Edition
AwareIM: v8.5, build 2824
OS: Windows Server 2012
DB: MySql 5.6.42
Markfre1
Posts: 221
Joined: Sun Mar 11, 2012 10:15 pm
Location: United States

Re: Google map of a group of addresses

Post by Markfre1 »

Rob,

So I set a fixed location of objects as a tenant owner. FixedMarkerMGeolocation=xxxx - This is a query with a process to set the fixed location.

What I a confused on, is if a Guest comes in or a user, do I need to somehow set the guest/user location to just MGeolocation=xxx.

I want to show the guest, walking to the fixed location that they selected.

The confusion is twofold. Does AIM know the location automatically of the user, or do I need to set it. And how do I show the user walking to the fixed location.

Basically think of you entering AIM (guest or user) from a URL on your phone, selecting a fixed location like a clubhouse, and as you walk it shows you moving on the map towards the clubhouse.

Lastly, I am using MOBILE START LOCATION WATCH INTO MGeoLocation but instead of this watching the guest, it seems to be changing the FixMGeolocation. I get to blips on the screen, but nothing moves when I walk (use a background process to redisplay, and also the fixed location is on top of the user's location).

I will look at presentations as well. Any help in the steps is appreciated.

Mark F
BenchmarkDan
Posts: 50
Joined: Sun Aug 10, 2008 7:40 pm
Location: Tulsa, OK
Contact:

Re: Google map of a group of addresses

Post by BenchmarkDan »

I want amazeballs. Currently, I seem to have only one.

Have object Station. 6 sample records, each shows map individually ok on form.
Created presentation for Station. Map is in Summary band. All other bands empty.

Process : MapProcess
FIND Station WHERE Station.Country='USA'
VIEW Station USING StationMap

Only getting one (first) record to display. Shouldn't this work?
Dan
_______________________________________________
V8.4 Developer Edition Build 2722. MS SQL Windows
BenchmarkDan
Posts: 50
Joined: Sun Aug 10, 2008 7:40 pm
Location: Tulsa, OK
Contact:

Re: Google map of a group of addresses

Post by BenchmarkDan »

Thank you Mark.

Query -> Custom -> Presentation worked.

I even read this part in the manual - but somehow missed the concept. I really need to graduate from the school of hard knocks.
Dan
_______________________________________________
V8.4 Developer Edition Build 2722. MS SQL Windows
customaware
Posts: 2391
Joined: Mon Jul 02, 2012 12:24 am
Location: Ulaanbaatar, Mongolia

Re: Google map of a group of addresses

Post by customaware »

Rob Hopkins goes the credit Dan.
Cheers,
Mark
_________________
AwareIM 6.0, 8.7, 8.8, 9.0 , MariaDB, Windows 10, Ubuntu Linux. Theme: Default, Browser: Arc
Upcloud, Obsidian....
Image
Jaymer
Posts: 2430
Joined: Tue Jan 13, 2015 10:58 am
Location: Tampa, FL
Contact:

Re: Google map of a group of addresses

Post by Jaymer »

still not sure I follow.
can someone post a video of this in action?
(or at least some screen shots)
thx
Click Here to see a collection of my tips & hacks on this forum. Or search for "JaymerTip" in the search bar at the top.

Jaymer
Aware Programming & Consulting - Tampa FL
Post Reply