Google Maps - EBT's dot grid

Euro tracking discussion in English

Moderators: Fons, avij, Phaseolus

MDeen
Euro-Master
Euro-Master
Posts: 2245
Joined: Mon Jul 15, 2002 11:52 am
Location: Helden, The Netherlands
Contact:

Google Maps - EBT's dot grid

Post by MDeen »

I believe there is no topic about an overlay for Google Maps. There is one for Google Earth, but that is a whole different piece of cake.

Google has presented us a fine site of API's for showing a Google Map online with usergenerated lines and markers on it. Great to use for EuroBillTracker of course.

I made a very modest start for this, it can be found on my website. If I did it right and requested the correct API key, you can run it from my website, otherwise you have to download the html file to your local PC and run it from there.

As you can see, this is only the very beginning (only the lat-long lines are present), what is needed is to read the csv file and place the markers or even make shaded area's like the official EBT dot-map and of course some cosmetic things on the page itself.
But it's a start.

I made this with the API's Rectangle method, for some reason or another I can't get anything on the screen with the GPolyline method.

Anyone who justs wants to code something usefull is welcome to do so. Just send me the code and I'll add the credits.
Last edited by MDeen on Sun Aug 21, 2011 10:42 pm, edited 2 times in total.
User avatar
klapotec
Euro-Master
Euro-Master
Posts: 2630
Joined: Tue Dec 27, 2005 12:18 pm
Location: Steiermark / Štajerska / Styria

Re: Google Maps - EBT's dot grid

Post by klapotec »

MDeen wrote:I made a very modest start for this, it can be found on my website. If I did it right and requested the correct API key, you can run it from my website
Yay, it works! Cool!!!
MDeen wrote:Unfortunatly this is IE only because the API's are in javascript. :evil:
I have no problem running it in Firefox on Linux, but that may be because JavaScript is mostly browser-independent ;)
MDeen
Euro-Master
Euro-Master
Posts: 2245
Joined: Mon Jul 15, 2002 11:52 am
Location: Helden, The Netherlands
Contact:

Re: Google Maps - EBT's dot grid

Post by MDeen »

klapotec wrote:
MDeen wrote:Unfortunatly this is IE only because the API's are in javascript. :evil:
I have no problem running it in Firefox on Linux, but that may be because JavaScript is mostly browser-independent ;)
Oh, yes, I see it now. I thought JS was a IE thing.
(I was confused, VBScript is the IE thing)

I'll edit my post.
Last edited by MDeen on Thu Sep 28, 2006 10:25 am, edited 1 time in total.
User avatar
androl
Euro-Master
Euro-Master
Posts: 4318
Joined: Sun Feb 08, 2004 1:20 pm
Location: München (Myeenack, Mjuncken), Deutschland (Chairmany, Djutschländ)
Contact:

Post by androl »

sorry, the dots are wrong
for (var iLon = -12; iLon <= 54; iLon += 0.88)
has to be
for (var iLon = -12; iLon <= 54; iLon += 0.8407643)
or more exactly
for (var iLon = -12; iLon <= 54; iLon += 2*66/157)

and then
new GLatLng(71, iLon + 66/157));
Joshu, a Chinese Zen master, asked a cow:
"Do you have Buddha-nature or not?"
The cow answered: "Moo."
MDeen
Euro-Master
Euro-Master
Posts: 2245
Joined: Mon Jul 15, 2002 11:52 am
Location: Helden, The Netherlands
Contact:

Post by MDeen »

androl wrote:sorry, the dots are wrong
for (var iLon = -12; iLon <= 54; iLon += 0.88 )
has to be
for (var iLon = -12; iLon <= 54; iLon += 0.8407643)
or more exactly
for (var iLon = -12; iLon <= 54; iLon += 2*66/157)

and then
new GLatLng(71, iLon + 66/157));
Thanks for the correction. I thought so too, I had an older function that did use the 157 wide, but I read a topic somewhere stating that the longitude lines were separated bij 0.44. So I was confused and couldn't find the reference to 157 again.

I will change it this afternoon.

Meanwhile, I've been trying to read the csv file using javascript, but that does not seem to be very easy.
JS does have very powerful XML functions, so the easy option will be to convert the csv file to XML. I think this would also be a nice option for the notes download page, since XML will also be supported by the new spreadsheets (openoffice has it already, Excel probably in the next version)

I also got the GPolyline to work, but this makes ugly big lines, so I think I'll stick to the rectangle to display the latitude and longitude lines. Especially because when you zoom out too far, the lines as they are now make for a very cluttered map.
User avatar
Fjon
Euro-Master
Euro-Master
Posts: 1071
Joined: Mon Mar 15, 2004 12:00 pm
Location: Bray, Ireland

Post by Fjon »

Good work!
The grid doesn't seem to match up correctly for Ireland though. Here is the grid from Google Earth, which looks quite different:

http://lh5.google.com/fklein/RRvDTVM4AB ... imgmax=512

http://lh5.google.com/fklein/RRvDRN85AB ... imgmax=512
If you can keep your head when all around you have lost theirs, then you probably haven't understood the seriousness of the situation.
MDeen
Euro-Master
Euro-Master
Posts: 2245
Joined: Mon Jul 15, 2002 11:52 am
Location: Helden, The Netherlands
Contact:

Post by MDeen »

This was probably because of my faulty calculation of the longitude lines. This is now corrected and it looks better now.

I have added (and commented out) some lines of code for reading an xml file. This works, but the next issue is to sort the note locations and get the unique note locations from the list.
It is not necessary to plot a marker twice on the same spot, and I've seen that putting markers on the map is quite a slow process.
User avatar
androl
Euro-Master
Euro-Master
Posts: 4318
Joined: Sun Feb 08, 2004 1:20 pm
Location: München (Myeenack, Mjuncken), Deutschland (Chairmany, Djutschländ)
Contact:

Post by androl »

thanks, it looks really good :)
Joshu, a Chinese Zen master, asked a cow:
"Do you have Buddha-nature or not?"
The cow answered: "Moo."
User avatar
Klazu
Euro-Master
Euro-Master
Posts: 7683
Joined: Thu Feb 19, 2004 8:34 pm
Location: Vancouver, Canada

Post by Klazu »

I haven't read this whole thread, so I might be wrong here, but wasn't there already earlier some grid of dots for the Google Earth? I at least remember using one before. I just want to know, what's new with this grid?
Living away from Euro zone in the beautiful Vancouver, Canada since January 2012. Experiences and stories of living in here can be found in here (in Finnish).
User avatar
JP Simões
Euro-Master
Euro-Master
Posts: 9709
Joined: Sat Aug 06, 2005 1:13 pm

Post by JP Simões »

There was one for Google Earth (as MDeen stated). This one is for Google Maps. :wink:
De férias por período indeterminado...
User avatar
coach vahid
Euro-Master
Euro-Master
Posts: 6598
Joined: Thu Nov 24, 2005 3:51 pm
Location: West Midlands
Contact:

Post by coach vahid »

good job
User avatar
Klazu
Euro-Master
Euro-Master
Posts: 7683
Joined: Thu Feb 19, 2004 8:34 pm
Location: Vancouver, Canada

Post by Klazu »

Zé da Silva wrote:There was one for Google Earth (as MDeen stated). This one is for Google Maps. :wink:
Oh yeah, that's right. Those are different thing. Didn't notice the difference. :oops: But wait a minute...what's the difference? How does these two maps differ? One is to be used with Google Earth programm and one is for the internet application Google Maps?
Living away from Euro zone in the beautiful Vancouver, Canada since January 2012. Experiences and stories of living in here can be found in here (in Finnish).
User avatar
androl
Euro-Master
Euro-Master
Posts: 4318
Joined: Sun Feb 08, 2004 1:20 pm
Location: München (Myeenack, Mjuncken), Deutschland (Chairmany, Djutschländ)
Contact:

Post by androl »

yes, everyone can use the GM version, while only someone with GE running on a fast computer can use the GE version.
There was however already the GM version of ernie, but it is made with an old version, you can't use the maps (only satellite) and it's very slow
Joshu, a Chinese Zen master, asked a cow:
"Do you have Buddha-nature or not?"
The cow answered: "Moo."
MDeen
Euro-Master
Euro-Master
Posts: 2245
Joined: Mon Jul 15, 2002 11:52 am
Location: Helden, The Netherlands
Contact:

Post by MDeen »

Klazu wrote:
Zé da Silva wrote:There was one for Google Earth (as MDeen stated). This one is for Google Maps. :wink:
Oh yeah, that's right. Those are different thing. Didn't notice the difference. :oops: But wait a minute...what's the difference? How does these two maps differ? One is to be used with Google Earth programm and one is for the internet application Google Maps?
Correct. And the method of making an overlay for both is different.
I don't have Google Earth installed and I don't know why I would want to if it is available online.
Plus, you can use this map when you're away from home, in an internet café, on your PDA.
I do notice that Pocket IE will not show it and Opera Mobile fills the rectangles. More work to do.

androl wrote:yes, everyone can use the GM version, while only someone with GE running on a fast computer can use the GE version.
There was however already the GM version of ernie, but it is made with an old version, you can't use the maps (only satellite) and it's very slow
I wasn't aware of that one. Did he post it in a message somewhere?
At first glance it looks the same. There are no controls for map/satellite/hybrid and the lines are all polylines (which do not seem to work properly after zooming in), but the method is basically the same.
ErGo
Euro-Master
Euro-Master
Posts: 6203
Joined: Wed Oct 05, 2005 2:12 pm
Location: Vienna, Austria
Contact:

Post by ErGo »

I only can say: FANTASTIC! :D

I wait a long time for this, because i never could use Google Earth. For Austria there was an extra program which was called A-MAP, where you
could make such an overlay, but for the rest of europe i missed this!!!! Thank you
Post Reply

Return to “Site and Euro-tracking Discussion (English)”