Google Maps + Gallery

galmoid

Joined: 2005-11-07
Posts: 364
Posted: Tue, 2005-12-13 16:12
Termitenshort wrote:
I would like more details regarding the Bulkload feature !

Are you referring to uploading a gps track (like a route) that
would overlay polylines (like the current route feature)? Attached is a pic of what I mean.

 
Termitenshort
Termitenshort's picture

Joined: 2005-10-09
Posts: 1894
Posted: Tue, 2005-12-13 16:32
galmoid wrote:
Quote:
I would like more details regarding the Bulkload feature !

Are you referring to uploading a gps track (like a route) that
would overlay polylines (like the current route feature)? Attached is a pic of what I mean.

I think that's different. For the GPS track thing I will need to have a gps track file if you can send one to me, that would be great :-)

For the bulkload. At some point someone ask (or maybe I'm dreaming) for a way to bulk load the GPS coordinates into the database so you don't have to manually edit each photo/album and add the settings, no ?

Let me know before I spend time on this :-) (even tho a backup/restore of the GPS coordinates database would be cool)

Thanks
---------------------------
The Termite :-)

 
galmoid

Joined: 2005-11-07
Posts: 364
Posted: Tue, 2005-12-13 18:33
Termitenshort wrote:
I think that's different. For the GPS track thing I will need to have a gps track file if you can send one to me, that would be great :-)

Doing this could be a dangerous thing for those that would not
pay attention to necessary warnings regarding the number of
trackpoints that can be used without problems. I found that
using too many would completely stress the browser's ability
to plot the polylines (and even crash it). The track/route in
the pic I posted earlier is comprised of 400 points. I formatted
them and plugged them into your route feature (I stuck the data into
the datbase manually). I made a post some time back about this
in which I had mentioned the Xmaps library.

Attached are two GPX trackpoint files. They both represent the
same route; but, one has 3364 points and the other 400 points.
Obviously, reducing 3364 to 400 reduces precision; but,
it works for this purpose.

Termitenshort wrote:
For the bulkload. At some point someone ask (or maybe I'm dreaming) for a way to bulk load the GPS coordinates into the database so you don't have to manually edit each photo/album and add the settings, no ?

Let me know before I spend time on this :-) (even tho a backup/restore of the GPS coordinates database would be cool)

I think you are correct . . . somebody did ask for such a feature. Maybe "that
somebody" :-) would discuss this further.

All forms of backup/restore are cool . . . and wise. :-)

 
Termitenshort
Termitenshort's picture

Joined: 2005-10-09
Posts: 1894
Posted: Tue, 2005-12-13 19:31
galmoid wrote:
Quote:
Termite,
You asked about including the infowindow templates (the 'gxxxxx.inc' files) that
I created in the releases.

Quote:
I've kept the files as you provided :-). I made no changes to them or anything.

OK. Here is a way I came up with to address having URLs that
appear in summary and/or description follow the 'popup' method
in the 'g' files. It requires adding code to two files (ShowMap.inc
and MapHeader.tpl). I could not come up with a way of accomplishing
this using just the 'g' files. Maybe you will consider using
this way -or- come up with another way?

(I'm still working with 0.4.5 files)
After this line in ShowMap.inc (at least I put it here):
include ($absolutegallerydir."modules/map/templates/infowindow/".$map['MapWindowType'].".inc");

this needs to be added (it is used to pass the name of the
infowindow template file):
$map['infoWindowName']=$map['MapWindowType'];

In MapHeader.tpl replace: (...)

The 'g' files remain the same.
It all appears to work as intended. What do you think?

Well, I think that it's good that way but I'm going to look for a way to get the same result using only the 'g' files. Otherwise I keep that as a backup solution. It works great :-)

Thanks for your work :-)

PS: you icon on the Map Module gallery map should be either blue or green ;-)

---------------------------
The Termite :-)

 
Termitenshort
Termitenshort's picture

Joined: 2005-10-09
Posts: 1894
Posted: Tue, 2005-12-13 19:34
galmoid wrote:
Quote:
I think that's different. For the GPS track thing I will need to have a gps track file if you can send one to me, that would be great :-)

Doing this could be a dangerous thing for those that would not
pay attention to necessary warnings regarding the number of
trackpoints that can be used without problems. I found that
using too many would completely stress the browser's ability
to plot the polylines (and even crash it). The track/route in
the pic I posted earlier is comprised of 400 points. I formatted
them and plugged them into your route feature (I stuck the data into
the datbase manually). I made a post some time back about this
in which I had mentioned the Xmaps library.

Attached are two GPX trackpoint files. They both represent the
same route; but, one has 3364 points and the other 400 points.
Obviously, reducing 3364 to 400 reduces precision; but,
it works for this purpose.

I do recall the work you did on this and I found your posts also. I will try to put some logic in there to prevent destroying the browser :-)

galmoid wrote:
Quote:
For the bulkload. At some point someone ask (or maybe I'm dreaming) for a way to bulk load the GPS coordinates into the database so you don't have to manually edit each photo/album and add the settings, no ?

Let me know before I spend time on this :-) (even tho a backup/restore of the GPS coordinates database would be cool)

I think you are correct . . . somebody did ask for such a feature. Maybe "that
somebody" :-) would discuss this further.

All forms of backup/restore are cool . . . and wise. :-)

Yeah that's what I thought. "somebody" may recognize himself and give me more details (i'm lazy, don't want to browse all the thread) :-)

See you

 
galmoid

Joined: 2005-11-07
Posts: 364
Posted: Tue, 2005-12-13 20:55
Termitenshort wrote:
Well, I think that it's good that way but I'm going to look for a way to get the same result using only the 'g' files. Otherwise I keep that as a backup solution. It works great :-)

I think that would be best; but, I tried to come up with a way
to do it that way without success. :-(

 
amentges

Joined: 2005-11-02
Posts: 25
Posted: Tue, 2005-12-13 21:55

First I want to say love the plugin have been using it for quite some time now. The one thing that I have seen other people do is create multiple maps. Meaning like having a map for each country, can anyone point me in a direction on where or how to accomplish this. I have tried multiple things and could never get multiple maps to show up. Thanks

 
gilrim

Joined: 2005-08-28
Posts: 32
Posted: Tue, 2005-12-13 22:30

well, this might be unrelated, and I don't have gps unit myself, but my understanding is that you are to import the captured data from a gps unit that've saved the coordinates for a set timespan? if so, wouldn't it make sense to search thru the gallery items' exif capturedates? Then display the matching pictures, giving you a checkbox on wherther to use it (possibly correct it) for each image? maybe even a checkbox for auto route creation?

 
Termitenshort
Termitenshort's picture

Joined: 2005-10-09
Posts: 1894
Posted: Tue, 2005-12-13 22:46
gilrim wrote:
well, this might be unrelated, and I don't have gps unit myself, but my understanding is that you are to import the captured data from a gps unit that've saved the coordinates for a set timespan? if so, wouldn't it make sense to search thru the gallery items' exif capturedates? Then display the matching pictures, giving you a checkbox on wherther to use it (possibly correct it) for each image? maybe even a checkbox for auto route creation?

yeah that could be a good idea to do that as well. that sould be on the todo :wink:

 
Termitenshort
Termitenshort's picture

Joined: 2005-10-09
Posts: 1894
Posted: Tue, 2005-12-13 23:09
galmoid wrote:
Doing this could be a dangerous thing for those that would not
pay attention to necessary warnings regarding the number of
trackpoints that can be used without problems. I found that
using too many would completely stress the browser's ability
to plot the polylines (and even crash it). The track/route in
the pic I posted earlier is comprised of 400 points. I formatted
them and plugged them into your route feature (I stuck the data into
the datbase manually). I made a post some time back about this
in which I had mentioned the Xmaps library.

Ok after making some very basic tests i was able to draw the tracklog you provided (the 2484 points one).

I cheated a bit by "splitting" the polyline in series of 1000 points (which seems to work fine in FF 1.5 and in IE 6)

 
galmoid

Joined: 2005-11-07
Posts: 364
Posted: Tue, 2005-12-13 23:35
Termitenshort wrote:
Ok after making some very basic tests i was able to draw the tracklog you provided (the 2484 points one).

I cheated a bit by "splitting" the polyline in series of 1000 points (which seems to work fine in FF 1.5 and in IE 6)

Be sure to load and reload the page. Also be sure to go through
the zoom range. The area of those points can zoom only to level
three on a sat map. See if you find any problem with this.
Maybe the polyline(s) not drawing completely or browser slowdown.
What map API are you using? Just curious. When I last played
with those tracks I think it was probably 1.27a or less.

I think, if this would work out OK, people with digital
cameras and GPSr will get a charge out of it. Going on a
trek with a GPSr (which will save the tracklog) and snapping
pictures along the way. Using a variety of methods, combining
the tracklog can be used to GeoStamp the exif data in the photos.
Just think about the possibilities.

 
Termitenshort
Termitenshort's picture

Joined: 2005-10-09
Posts: 1894
Posted: Tue, 2005-12-13 23:42
galmoid wrote:
Quote:
Ok after making some very basic tests i was able to draw the tracklog you provided (the 2484 points one).

I cheated a bit by "splitting" the polyline in series of 1000 points (which seems to work fine in FF 1.5 and in IE 6)

Be sure to load and reload the page. Also be sure to go through
the zoom range. The area of those points can zoom only to level
three on a sat map. See if you find any problem with this.
Maybe the polyline(s) not drawing completely or browser slowdown.
What map API are you using? Just curious. When I last played
with those tracks I think it was probably 1.27a or less.

I think, if this would work out OK, people with digital
cameras and GPSr will get a charge out of it. Going on a
trek with a GPSr (which will save the tracklog) and snapping
pictures along the way. Using a variety of methods, combining
the tracklog can be used to GeoStamp the exif data in the photos.
Just think about the possibilities.

I've made a couple changes and have automatically break the traclogs in many polyline of 100 item. This seem to work in all situation.

Also I'm using v=1.28 ;)

I would love to have a HUUUUUGE track for several thousands (or maybe millions ?) of points and see if it works fine still.

There also must be a limitation with the memory available to the browser, my machine has 2GB and firefox uses 580M when the tracklog is being displayed :-)

After having 2 tabs with the track displayed I cannot have a 3rd one with the track. it just tries to load the page for ever ...

I did get a few crashes at the beginning but after I broke it down in 100s then everything seems fine :-)

I'll tell you more when i get more tests out of this beast :D

 
swordfish
swordfish's picture

Joined: 2004-10-01
Posts: 388
Posted: Wed, 2005-12-14 00:47
Termitenshort wrote:
galmoid wrote:
Quote:
Ok after making some very basic tests i was able to draw the tracklog you provided (the 2484 points one).

I cheated a bit by "splitting" the polyline in series of 1000 points (which seems to work fine in FF 1.5 and in IE 6)

Be sure to load and reload the page. Also be sure to go through
the zoom range. The area of those points can zoom only to level
three on a sat map. See if you find any problem with this.
Maybe the polyline(s) not drawing completely or browser slowdown.
What map API are you using? Just curious. When I last played
with those tracks I think it was probably 1.27a or less.

I think, if this would work out OK, people with digital
cameras and GPSr will get a charge out of it. Going on a
trek with a GPSr (which will save the tracklog) and snapping
pictures along the way. Using a variety of methods, combining
the tracklog can be used to GeoStamp the exif data in the photos.
Just think about the possibilities.

Quote:
I've made a couple changes and have automatically break the traclogs in many polyline of 100 item. This seem to work in all situation.

Also I'm using v=1.28 ;)

I would love to have a HUUUUUGE track for several thousands (or maybe millions ?) of points and see if it works fine still.

There also must be a limitation with the memory available to the browser, my machine has 2GB and firefox uses 580M when the tracklog is being displayed :-)

After having 2 tabs with the track displayed I cannot have a 3rd one with the track. it just tries to load the page for ever ...

I did get a few crashes at the beginning but after I broke it down in 100s then everything seems fine :-)

I'll tell you more when i get more tests out of this beast :D

FF 1.5 has serious memory leak issues. You're much better off using FF 1.07 or even IE. I would definitely NOT test such a memory intensive feature like this on FF 1.5.

 
galmoid

Joined: 2005-11-07
Posts: 364
Posted: Wed, 2005-12-14 01:26
Termitenshort wrote:
I would love to have a HUUUUUGE track for several thousands (or maybe millions ?) of points and see if it works fine still.

I ran into the same limitations and just kept reducing the number
of points until I found a number (about 400) that appeared to
work OK for me (I also have 2G mem). I did not even consider
what would happen on a smaller machine.

In any case, I found the attached gpx file (I left the extension
.gpx on it - it's just a text file though) on The Net. It
has 6040 trkpt's and some other stuff (waypoints).

By the way, just in case it is of interest, the tracklog I put up
earlier represents a hike of about 18 miles.

 
galmoid

Joined: 2005-11-07
Posts: 364
Posted: Wed, 2005-12-14 01:38
swordfish wrote:
FF 1.5 has serious memory leak issues. You're much better off using FF 1.07 or even IE. I would definitely NOT test such a memory intensive feature like this on FF 1.5.

That's no lie; although the FF board appears not to be a welcoming
place to make such statements. I've actually had FF get
up to 900M. More often it chokes and crashes. I did read
about a config setting that may help. It turns off the
bfcache (so-called blazing fast cache) which is why the back
button displays the previous page so quickly.

Off topic; but, in case you're interested:
Go to about:config
find:
browser.sessionhistory.max_total_viewers
and change it from -1 to zero

also maybe try:
config.trim_on_minimize
set it to true and after allowing FF to grow, watch the memory
as you minimize FF. Quite a sight. I believe this setting
did not exist and I added it.

 
Termitenshort
Termitenshort's picture

Joined: 2005-10-09
Posts: 1894
Posted: Wed, 2005-12-14 04:29
galmoid wrote:
Quote:
I would love to have a HUUUUUGE track for several thousands (or maybe millions ?) of points and see if it works fine still.

I ran into the same limitations and just kept reducing the number
of points until I found a number (about 400) that appeared to
work OK for me (I also have 2G mem). I did not even consider
what would happen on a smaller machine.

In any case, I found the attached gpx file (I left the extension
.gpx on it - it's just a text file though) on The Net. It
has 6040 trkpt's and some other stuff (waypoints).

Nice I'll make a test with that tomorrow and let you guys now. It should work but I'd like to see the limit :-)

galmoid wrote:
By the way, just in case it is of interest, the tracklog I put up
earlier represents a hike of about 18 miles.

Daaaaamn, it looked long on the map I had no idea it was hike ... good job man, that's impressive !!

 
Termitenshort
Termitenshort's picture

Joined: 2005-10-09
Posts: 1894
Posted: Wed, 2005-12-14 04:31
swordfish wrote:
FF 1.5 has serious memory leak issues. You're much better off using FF 1.07 or even IE. I would definitely NOT test such a memory intensive feature like this on FF 1.5.

For real ... I've made the same test on IE and I got up to 180M of memory and it doesn't matter how many window I open with the same track ;-)

 
Termitenshort
Termitenshort's picture

Joined: 2005-10-09
Posts: 1894
Posted: Wed, 2005-12-14 04:33
galmoid wrote:
Off topic; but, in case you're interested:
Go to about:config
find:
browser.sessionhistory.max_total_viewers
and change it from -1 to zero

also maybe try:
config.trim_on_minimize
set it to true and after allowing FF to grow, watch the memory
as you minimize FF. Quite a sight. I believe this setting
did not exist and I added it.

Cool, I will try that. Also just to make things more tricky I used a very old alpha version of FF1.5 ...someday I will update my laptop :)

 
Termitenshort
Termitenshort's picture

Joined: 2005-10-09
Posts: 1894
Posted: Wed, 2005-12-14 05:32

Allright I didn't want to go to bed until I tried so I put the gpx file on the mix and got the track traced out. It worked fine on this machine (using FF 1.5 beta 2, which is an improvement from alpha 2 :)) but then the display of the map is slugish.

Also, the track looks horrible. I'm wondering if something in the file is messing it up or what. so I enclosed screeshots to check it out :-)

galmoid's file (the one with the 2484 points) looks great and the map is not slugish at all

-------------------------
The Termite :-)

 
Termitenshort
Termitenshort's picture

Joined: 2005-10-09
Posts: 1894
Posted: Wed, 2005-12-14 14:10

As it turn out the reason for the tracklog to be so messy is because the file containt multiple track segment as opossed to 1 single track. I will correct that and see if it looks better :-)

-------------------------
The Termite :-)

 
seehundnz
seehundnz's picture

Joined: 2003-02-03
Posts: 34
Posted: Wed, 2005-12-14 16:22

hey!
i finished translating the .po-file into german and as far as i can see it works fine for me ;-)
corrections welcome ;-)
seehundnz :wink:

 
galmoid

Joined: 2005-11-07
Posts: 364
Posted: Wed, 2005-12-14 16:25
Termitenshort wrote:
Daaaaamn, it looked long on the map I had no idea it was hike ... good job man, that's impressive !!

Yes, it (I) was impressive. Sea-level dude at 12,500 feet. :-)
Sure was beautiful.

 
galmoid

Joined: 2005-11-07
Posts: 364
Posted: Wed, 2005-12-14 16:29
Termitenshort wrote:
As it turn out the reason for the tracklog to be so messy is because the file containt multiple track segment as opossed to 1 single track. I will correct that and see if it looks better :-)

Sorry 'bout that. My files were already cleaned up. The large
one was completely raw.

 
Termitenshort
Termitenshort's picture

Joined: 2005-10-09
Posts: 1894
Posted: Wed, 2005-12-14 18:55
seehundnz wrote:
hey!
i finished translating the .po-file into german and as far as i can see it works fine for me ;-)
corrections welcome ;-)
seehundnz :wink:

I will compile it and add it to the files on the CVS tonight so that everyone can take advantage of it :-)

Thanks for your work :-)

 
Termitenshort
Termitenshort's picture

Joined: 2005-10-09
Posts: 1894
Posted: Wed, 2005-12-14 20:28
neilcreek wrote:
- Is it possible to enter the same data to multiple pictures at the same time? It's a pain to have to edit each one and paste in the coordinates. This isn't a problem when the whole album is at the same location, but on a trip, there is likely to be several groups of photos taken at different locations.

AHAH I found the feature request :-)
neilcreek, can you elaborate on that a little bit to explain what you are thinking about exactly ? I have some time to put that in and I'd like an idea of how you see it implemented :-)

Thanks in advance

 
galmoid

Joined: 2005-11-07
Posts: 364
Posted: Wed, 2005-12-14 22:21
Termitenshort wrote:
I have some time . . .

Well Termite, since you have such an inordinate amount of time
with nothing to do :-) :-)

I have set up some if/else statements in MapHeader.tpl where the
map.googleMapKey is set which detect the servername and port number. I did this in order to use the same ShowMap for the
same servername being accessed via http and https (This of course,
requires separate map keys). I then added a couple of other
different servernames (same as domainname in these cases).

I then started down the road of trying to create a key
management addition to MapSiteAdmin. After trying to think of
how I might do this, I thought, maybe adapt the filters stuff.
Well, i did mange to get pretty far; but, I'v now got myself
in a mess (my little knowledge has proven dangerous). I
ended up abandoning the key management effort and instead
just stuck with what I could do . . . the if/else statements.
Hey, they work for me.

Maybe -you- could more easily (and more quickly) adapt the
filters stuff to manage multiple map keys? I suppose it may
need four fields (a name for the entry, servername, serverport,
map key).

I did this in MapHeader:

{if $map.serverName == "www.anysystem.com" and $map.serverPort == "80"}
<script src="http://maps.google.com/ma . . .
{else}
{if $map.serverName == "www.anysystem.com" and $map.serverPort == "443"}
<script src="http://maps.google.com/ma . . .
{/if}
{/if}

Something to think about anyway?

 
dotnature
dotnature's picture

Joined: 2005-10-26
Posts: 224
Posted: Thu, 2005-12-15 01:07

I was trying to think of why a bulkload would be useful and now I kinda get it, if you have an album with a lot of photos and several groups of them are from the same location it might be useful. As an example...say you have a more general album called skiing from a recent trip to europe with say 150 shots, but the shots are from several differant locations , like 15 shots here, 15 at another place, etc, you get the idea. It would be useful I figure to add all 15 from same location maybe with a dropdown menu or just an add more button. For people who have a lot of photos and dont want a lot of subalbums it would save time, maybe have a new marker slightly larger or a diff color for groups of photos at the same coordinates.
Personally I havent got far enough into the map to see a need for this feature because I dont mind subalbums, it seems like something that can be added further down the road, I don't know what do you guys think about it?

 
Termitenshort
Termitenshort's picture

Joined: 2005-10-09
Posts: 1894
Posted: Thu, 2005-12-15 13:58
galmoid wrote:
Quote:
I have some time . . .

Well Termite, since you have such an inordinate amount of time
with nothing to do :-) :-)

I have set up some if/else statements in MapHeader.tpl where the
map.googleMapKey is set which detect the servername and port number. I did this in order to use the same ShowMap for the
same servername being accessed via http and https (This of course,
requires separate map keys). I then added a couple of other
different servernames (same as domainname in these cases).

I then started down the road of trying to create a key
management addition to MapSiteAdmin. After trying to think of
how I might do this, I thought, maybe adapt the filters stuff.
Well, i did mange to get pretty far; but, I'v now got myself
in a mess (my little knowledge has proven dangerous). I
ended up abandoning the key management effort and instead
just stuck with what I could do . . . the if/else statements.
Hey, they work for me.

Maybe -you- could more easily (and more quickly) adapt the
filters stuff to manage multiple map keys? I suppose it may
need four fields (a name for the entry, servername, serverport,
map key).

I did this in MapHeader:

{if $map.serverName == "www.anysystem.com" and $map.serverPort == "80"}
<script src="http://maps.google.com/ma . . .
{else}
{if $map.serverName == "www.anysystem.com" and $map.serverPort == "443"}
<script src="http://maps.google.com/ma . . .
{/if}
{/if}

Something to think about anyway?

Yeah I could get that done rather quickly :-)

 
Termitenshort
Termitenshort's picture

Joined: 2005-10-09
Posts: 1894
Posted: Thu, 2005-12-15 14:01
dotnature wrote:
I was trying to think of why a bulkload would be useful and now I kinda get it, if you have an album with a lot of photos and several groups of them are from the same location it might be useful. As an example...say you have a more general album called skiing from a recent trip to europe with say 150 shots, but the shots are from several differant locations , like 15 shots here, 15 at another place, etc, you get the idea. It would be useful I figure to add all 15 from same location maybe with a dropdown menu or just an add more button. For people who have a lot of photos and dont want a lot of subalbums it would save time, maybe have a new marker slightly larger or a diff color for groups of photos at the same coordinates.
Personally I havent got far enough into the map to see a need for this feature because I dont mind subalbums, it seems like something that can be added further down the road, I don't know what do you guys think about it?

I think you're right I will put that on hold for now ... I will try to think of the need and then I will put something in place. :)

version 0.4.6 will be released soon with the improvement made in "current work" + the MapKey management + % for map width/heigh

See you

 
Termitenshort
Termitenshort's picture

Joined: 2005-10-09
Posts: 1894
Posted: Thu, 2005-12-15 17:57

Hello all,

There is bug that was found that need some changes if you are using the "Export to GE" feature.

Please refer to appropriate post (HERE) to get more information about it and also make the necessary changes if you need to.

See you
-------------------------
The Termite :-)

 
Termitenshort
Termitenshort's picture

Joined: 2005-10-09
Posts: 1894
Posted: Thu, 2005-12-15 20:18
Termitenshort wrote:
Yeah I could get that done rather quickly :-)

Looks good ?

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Thu, 2005-12-15 21:25
Termitenshort wrote:
version 0.4.6 will be released soon with the improvement made in "current work" + the MapKey management + % for map width/heigh

I have not had mch time to devote to the custom controls. This weekend I should have some ime but can't guarantee. I am having some trouble making some background graphics (semi transparent .png) to look good in IE as well as FF.
http://gallery2.ca/gallery2/modules/map/templates/controls/Full_Florida/TypeBG.png is a background image that looks fine in FF but IE it does not show at all.
I got the slider/zoom control working right in FF and IE (a CSS fix)
and would like to move some of the inline CSS stuff to a external file.

 
Termitenshort
Termitenshort's picture

Joined: 2005-10-09
Posts: 1894
Posted: Thu, 2005-12-15 22:00
floridave wrote:
Quote:
version 0.4.6 will be released soon with the improvement made in "current work" + the MapKey management + % for map width/heigh

I have not had mch time to devote to the custom controls. This weekend I should have some ime but can't guarantee. I am having some trouble making some background graphics (semi transparent .png) to look good in IE as well as FF.
http://gallery2.ca/gallery2/modules/map/templates/controls/Full_Florida/TypeBG.png is a background image that looks fine in FF but IE it does not show at all.
I got the slider/zoom control working right in FF and IE (a CSS fix)
and would like to move some of the inline CSS stuff to a external file.

That's ok. i also have many thing to put in for the next version. Man those controls looks awsome !

:)

 
galmoid

Joined: 2005-11-07
Posts: 364
Posted: Thu, 2005-12-15 22:40
Termitenshort wrote:
Looks good ?

Maybe even Great!

 
galmoid

Joined: 2005-11-07
Posts: 364
Posted: Thu, 2005-12-15 23:31

If you want (and do not consider it a sin ;-) )

In a 'g' infowindow file (or all of them) . . .
after:

$map['infowindow']=$map['infowindow']."
        +'<br/><font color=black><b>Location:</b><br>'+px+','+py+'</font>'";

insert:

$map['infowindow']=$map['infowindow']."
        +'<br/><a href=\"http://terraserver.microsoft.com/image.aspx?t=1&s=10&lon='+px+'&lat='+py+'&w=1\" target=\'gpop\''
        +' onClick=\"window.open(href, \'gpop\',\'left=20,top=20,scrollbars=yes\').focus();return false;\">'
        +'View location at Terraserver</a><br/>(Unfortunately, USA only)'";

I think you can figure out what this does. :-)

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Fri, 2005-12-16 04:49
swordfish wrote:
floridave wrote:
swordfish wrote:
In addition to this error which I see exactly the same issue, the blank.gif is also wanting to display off the map at the bottom of my page. Check out the attached screenshot to believe it. Look near bottom, on top of my Gentoo icon. Funny, huh? FF of course displays everything perfectly.

This is with WPG2 right? The URL rewrite does not work and is not supported.

ozgreg wrote:
I can no longer continue supporting the embedded configuration of the Gallery2 rewrite modules.

floridave wrote:
See:
http://wpg2.ozgreg.com/forums/viewtopic.php?p=5538#5538
I would say that with the Gentoo logo and the Gallery logo (screen shot on wiki) that this is not a map module issue.

Dave

swordfish wrote:

Heh, yea I'm very aware of WPG2 and G2's url rewrite. But I've gotten it to work very well. I'm not so sure this is a WPG2 issue because previous map-module versions worked and the screenshot on the Wiki I believe is G2 standalone. So, perhaps the blank.gif around the navigation is a map-module issue but my additional issue is due to WPG2 and Url rewrite.?
I've gotten it to work by appending my full fqdn to the pngbehavior.htc (line 29) which fixes the navigation but my Gentoo icon is replaced with blank.gif (a tiny black dot). This is too funny and why it does that in IE is a mystery.

EDIT: I got it fixed. That Gentoo icon was a .png file (the rest are gif's). After converting it to a jpeg the map displays fine now under IE6. I guess your png transparency magic applies to any and all png images displayed.

I think a better option (since we will have a CSS for the module) would be to do something like this in the CSS:

#map img { 
  behavior: url( path/to/pngbehavior.htc ); 
  padding: 0; 
  }

Then all the images in the "map" <div> would have the behavior applied and not the rest of the page. Thoughts?

And also change line 29 of behavior.htc to:
var blankSrc = "http://www.google.com/mapfiles/transparent.gif";
Comments?

 
swordfish
swordfish's picture

Joined: 2004-10-01
Posts: 388
Posted: Fri, 2005-12-16 05:43

floridave,

Concerning post directly above; I like that idea. Think it would be much better.

 
dotnature
dotnature's picture

Joined: 2005-10-26
Posts: 224
Posted: Fri, 2005-12-16 07:23

I came across a google maps weather bookmarklet tonight wondering if this would be an interesting feature, basically click any spot on map and it sends the lat/long to a weather site like weather.com and gives current and forcasted weather for that click, can also have data in pop-up or sidebar. Would anyone use this?

 
swordfish
swordfish's picture

Joined: 2004-10-01
Posts: 388
Posted: Fri, 2005-12-16 07:45
dotnature wrote:
I came across a google maps weather bookmarklet tonight wondering if this would be an interesting feature, basically click any spot on map and it sends the lat/long to a weather site like weather.com and gives current and forcasted weather for that click, can also have data in pop-up or sidebar. Would anyone use this?

Hows about a link so we can have a look?
I came across this site that shows World sunrise/sunset within the infowindow in a nice table format. Click the calculate button within the infowindows and watch what happens. I could careless about the sunrise/set data but the table format and what other types of data could you pull in (perhaps weather) offers some interesting possibilities.

 
swordfish
swordfish's picture

Joined: 2004-10-01
Posts: 388
Posted: Fri, 2005-12-16 07:52

Checkout >> http://www.geocodezip.com/basic8j.asp?filename=example_number.xml

I was thinking this would be cool for the "Routes" showing your starting point as marker #1, points in between and ending. Maybe when the map module supports multiple maps have a numbered marker icon set, ability to choose each individual numbered marker icon for each map location with Routes.

Having a css module would it be possible to control the infowindow font type/size, limit the infowindows to a specific size, have scrollbars and increase/decrease the width of the G2 sidebar?
Like this example: http://www.evilc.com/phpbb/gmaps.php

 
dotnature
dotnature's picture

Joined: 2005-10-26
Posts: 224
Posted: Fri, 2005-12-16 16:23
Quote:
was thinking this would be cool for the "Routes" showing your starting point as marker #1

ya that is pretty cool

Quote:
Hows about a link so we can have a look?

Actually im not sure if theres a working version out there, I got the idea from here http://ryan.freebern.org/2005/02/08/google-maps-weather-bookmarklet

but several of the large map sites offer a free backend where you can just pass them the lat/long and they send you the weather, since thats already a feature I don't think it would be hard to do, Im going to check out the weather channels xml data feed http://www.weather.com/services/xmloap.html later today.

actually I just found this site and they use 3 weather services click anywhere on map thats resonable ( northern canada and middle of ocean doesnt return data) http://www.weatherbonk.com/weather/index.jsp

 
Termitenshort
Termitenshort's picture

Joined: 2005-10-09
Posts: 1894
Posted: Fri, 2005-12-16 17:02
floridave wrote:
I think a better option (since we will have a CSS for the module) would be to do something like this in the CSS:

#map img { 
  behavior: url( path/to/pngbehavior.htc ); 
  padding: 0; 
  }

Then all the images in the "map" <div> would have the behavior applied and not the rest of the page. Thoughts?

And also change line 29 of behavior.htc to:
var blankSrc = "http://www.google.com/mapfiles/transparent.gif";
Comments?

I'll be looking at a way to pass the path as a variable ;)

 
Termitenshort
Termitenshort's picture

Joined: 2005-10-09
Posts: 1894
Posted: Fri, 2005-12-16 17:06
swordfish wrote:
Quote:
I came across a google maps weather bookmarklet tonight wondering if this would be an interesting feature, basically click any spot on map and it sends the lat/long to a weather site like weather.com and gives current and forcasted weather for that click, can also have data in pop-up or sidebar. Would anyone use this?

Hows about a link so we can have a look?
I came across this site that shows World sunrise/sunset within the infowindow in a nice table format. Click the calculate button within the infowindows and watch what happens. I could careless about the sunrise/set data but the table format and what other types of data could you pull in (perhaps weather) offers some interesting possibilities.

That could be done with infowindow. I was looking at a way to have 3 tabs so we could create some new infowwindow templates with additionnal information on the 3rd tab (formely a zoom-in map of the area around the marker).

I think this would be a great idea and can be all done using templates :-)

 
Termitenshort
Termitenshort's picture

Joined: 2005-10-09
Posts: 1894
Posted: Fri, 2005-12-16 17:10
swordfish wrote:
Checkout >> http://www.geocodezip.com/basic8j.asp?filename=example_number.xml

I was thinking this would be cool for the "Routes" showing your starting point as marker #1, points in between and ending. Maybe when the map module supports multiple maps have a numbered marker icon set, ability to choose each individual numbered marker icon for each map location with Routes.

Having a css module would it be possible to control the infowindow font type/size, limit the infowindows to a specific size, have scrollbars and increase/decrease the width of the G2 sidebar?
Like this example: http://www.evilc.com/phpbb/gmaps.php

I think yes, can you add all of those feature to the wiki so that we don't forget them :-)

 
galmoid

Joined: 2005-11-07
Posts: 364
Posted: Fri, 2005-12-16 18:15
galmoid wrote:
If you want (and do not consider it a sin ;-) )

In a 'g' infowindow file (or all of them) . . .
after:

$map['infowindow']=$map['infowindow']."
        +'<br/><font color=black><b>Location:</b><br>'+px+','+py+'</font>'";

insert:

$map['infowindow']=$map['infowindow']."
        +'<br/><a href=\"http://terraserver.microsoft.com/image.aspx?t=1&s=10&lon='+px+'&lat='+py+'&w=1\" target=\'gpop\''
        +' onClick=\"window.open(href, \'gpop\',\'left=20,top=20,scrollbars=yes\').focus();return false;\">'
        +'View location at Terraserver</a><br/>(Unfortunately, USA only)'";

I think you can figure out what this does. :-)

Some details regarding the switches in the terraserver link:

t=1 aerial
t=2 topo
t=4 urban
(All image types are not available for all locations (even if
you're in the US))

s is the zoom(scale) factor. The range is 8-16 (8 being max zoomin)
(zoom note: If one wants to see a tab for both urban -and-
aerial one should use a zoom of 10 (11 appears to add a topo
tab) You might need to play with this, depending on location
to get all available tabs(at terraserver) to show up)

w sets the viewport size (size of the image window)
w=1 is the smallest
w=2 is medium
w=3 is the largest

 
Termitenshort
Termitenshort's picture

Joined: 2005-10-09
Posts: 1894
Posted: Fri, 2005-12-16 23:28

Just a quick info, version 0.4.6 is finished and I will be putting it in CVS and here tonight or tomorrow :-)

See you
-------------------------
The Termite :-)

 
dotnature
dotnature's picture

Joined: 2005-10-26
Posts: 224
Posted: Sat, 2005-12-17 01:01

awesome

 
swordfish
swordfish's picture

Joined: 2004-10-01
Posts: 388
Posted: Sat, 2005-12-17 07:04
dotnature wrote:
Quote:
was thinking this would be cool for the "Routes" showing your starting point as marker #1

ya that is pretty cool

Quote:
Hows about a link so we can have a look?

Actually im not sure if theres a working version out there, I got the idea from here http://ryan.freebern.org/2005/02/08/google-maps-weather-bookmarklet

but several of the large map sites offer a free backend where you can just pass them the lat/long and they send you the weather, since thats already a feature I don't think it would be hard to do, Im going to check out the weather channels xml data feed http://www.weather.com/services/xmloap.html later today.

actually I just found this site and they use 3 weather services click anywhere on map thats resonable ( northern canada and middle of ocean doesnt return data) http://www.weatherbonk.com/weather/index.jsp

Yea, that weatherbonk site is nifty. Got me thinking about having multiple thumbnails assigned to a single marker. The infowindow could have several mini-thumbnails from the same album or multiple albums.

 
dotnature
dotnature's picture

Joined: 2005-10-26
Posts: 224
Posted: Sat, 2005-12-17 23:24

Ya thats not bad idea actually having customizable tabs per marker, first one is photo with link or short description, second can be thumbnails of all photos for that location, 3rd can be weather data, or whatever really. If the tab can read from an xml file it can have some really dynamic data. It might be overkill though since your trying to present data in the map and not other way around. Having a thumbnail marker might just cover to much map space, though I like pop-ups they take up valuable map real estate. I think for thumbnails per marker I'd prefer them in a sidebar or movie strip above map if that is even possible. That also got me thinking I tried to look around but didn't find anything, is there a way to get the marker pop-up to display on left or right of marker instead of above it.
termite's never go be done with us around here:)

 
Termitenshort
Termitenshort's picture

Joined: 2005-10-09
Posts: 1894
Posted: Sun, 2005-12-18 00:03
dotnature wrote:
termite's never go be done with us around here:)

That's kinda what I was thinking :-) (just kidding)