I really like the World map on my index page. Only 1 thing would make it better. I would love it if the system would place a pin at the location of each member that joined.
Placing the flag is cool but it doesn't reflect how many members you have in the country unless you click on it. In other words, I would love to see 1000 really small pins (blue for Men, Pink for women) instead of one big flag... That would give you the demographic of the site at a glance....
http://towtalk.net ... Hosted by Zarconia.net! |
More info. I know it's all a matter of Geocoding each members location via the profile information. I also understand that to create that map each time the page loads with all that information needing to be retrieved would create a huge demand on the system.
It is possible, according to Google to cache the information for repeated use once it's initially created and I think that is already done with D7.
check here --- http://code.google.com/apis/maps/documentation/geocoding/
I think displaying all the members on a map would have a very positive effect as it would create a very visual reference to where your visitors are hailing from and how many members are actually using the site.
http://towtalk.net ... Hosted by Zarconia.net! |
This would make a very sweet mod indeed, a little over my head but I'm sure there are moders that will. |
SHAMELESS BUMP.
I would be willing to pay for someone who could help me make this change. I also think it would be a good mod and would sell well. Anyone interested? (I know, not supposed to post job requests here. I will create the proper one in the proper place if I get no response here)
http://towtalk.net ... Hosted by Zarconia.net! |
Since you have the World Map functionality solved, perhaps you can give me a quick pointer.
I have activated the Google World Map Module to plot member locations
via ZIP code. Can you tell me what code to enter in field labelled: Profile address field name for exact address geocoding:
Tx
b
|
LOL! I have no idea! I put my address in that field without thinking. I bet you can define how you want the results displayed using it.
Anyone?
It's probably what I have been looking for. If I had to make an educated guess, it would have to match one of your address language names, like city?
http://towtalk.net ... Hosted by Zarconia.net! |
Put "zip" without the quotes. This is the system ID for the zip/postal code input. |
Still only shows 1 flag per country unless you zoom in.... http://towtalk.net ... Hosted by Zarconia.net! |
I would be interested in this as well. Let me know if you solve it. |
These folks have it figured out:
http://www.myfishmap.com/
|
That's EXACTLY what I'm looking for! great find!
Somebody here must be able to do this..... !!!
http://towtalk.net ... Hosted by Zarconia.net! |
Ok, in my own stumbling way, I came up with a compromise. Of course any of you that actually KNOW how to code PHP, please don't hesitate to jump in and give your two cents worth. As always, I take absolutely NO RESPONSIBILITY for my coding skills and neither should you.
I decided cities at full zoom were sufficient for my purposes. At zoom level 1, my page now shows cities and at zoom level 5, it goes to actual profile zip locations. The old way was level 1 zoom, country flags, level 5 zoom, cities and level 10 zoom, profile locations.
To make this change, I did the following---
in file -- /modules/boonex/map_profiles/classes/BxMapModule.php
I made the following changes
At line 40, I removed the reference to countries
delete ---
'BX_MAP_ZOOM_COUNTRIES', 1;)
Reset cities to a value of 1 and profiles to a value of 5.
Then go to about line 307 and remove the reference to countries. Change this --
if ($iZoom >= BX_MAP_ZOOM_COUNTRIES && $iZoom < BX_MAP_ZOOM_COUNTRIES) { echo $this->_getCountriesData($fLatMin, $fLatMax, $fLngMin, $fLngMax, $sMapClassInstanceName); } elseif
($iZoom >= BX_MAP_ZOOM_CITIES && $iZoom < BX_MAP_ZOOM_PROFILES) { echo $this->_getCitiesData($fLatMin, $fLatMax, $fLngMin, $fLngMax, $sMapClassInstanceName); } elseif ($iZoom >= BX_MAP_ZOOM_PROFILES) { echo $this->_getProfilesData($fLatMin, $fLatMax, $fLngMin, $fLngMax);
To this:
if
($iZoom >= BX_MAP_ZOOM_CITIES && $iZoom < BX_MAP_ZOOM_PROFILES) { echo $this->_getCitiesData($fLatMin, $fLatMax, $fLngMin, $fLngMax, $sMapClassInstanceName); } elseif($iZoom >= BX_MAP_ZOOM_PROFILES) { echo $this->_getProfilesData($fLatMin, $fLatMax, $fLngMin, $fLngMax);
I GIVE UP! JESUS THIS FORUM IS A PIECE OF CRAP! this forum really sucks for posting code so I don't recommend you copy this. It's very easy to just remove the references to countries. Don't forget to fix your if/elseif statements. i CAN'T GET ANYTHING TO POST PROPERLY HERE SO YOU WILL HAVE TO DO IT MANUALLY! I think I've explained it well enough to get the job done. Always make a backup of the file as usual.
Now my member city locations appear at level one. All I need to do now is figure out how to change them from that abortion of a high rise icon to a pin icon.
http://towtalk.net ... Hosted by Zarconia.net! |
badabing. Changing the icon is as simple as changing the image file 'city.png' http://towtalk.net ... Hosted by Zarconia.net! |
Ok, new problem.
Cannot figure out for the life of me why it's taking my new pin icon and making one large and one small for each location..... Obviously, I have something rather screwed up.
Take a peek.
http://www.towjobs.com
http://towtalk.net ... Hosted by Zarconia.net! |
GOT IT! Along about line 388 in that same file, you will find the size attributes for the images.
w- 48 h- 28 sw- 72 sh- 48
You need to change them to the size of the images you're using for city.png and city_shadow.png. In my case, they were 16X16 images.
End result = http://www.towjobs.com
I would really LOVE some input from one of the resident geniuses on this please.
http://towtalk.net ... Hosted by Zarconia.net! |
Great topic SkyForum, been trying to figure out a way to have the pins shown at the country level instead of the country flag. Your code worked great! |
Thanks. I hope you guys don't mind me working my way through problems here in the forum. Sometimes, following my thinking can be a bit of a job. Just ask any one of my members that watch me build a site while it's live... lol http://towtalk.net ... Hosted by Zarconia.net! |
Hi Sky, i try your solution and work fine. But at one moment i ask me what happend if i change ONLY the icon city.png and not also the file... so i put back the original BxMapModule.php and this is what happend :
when the page is load, i start to see the flag, if i do the zoom, at one moment change with the "point" (i don't know the name in english), if i do more zoom or i click at the "point" the icon change to user icon...
In my case i prefer in this way... If you want to see the results here
thank you.
... |
Hi Sky, i try your solution and work fine. But at one moment i ask me what happend if i change ONLY the icon city.png and not also the file... so i put back the original BxMapModule.php and this is what happend :
when the page is load, i start to see the flag, if i do the zoom, at one moment change with the "point" (i don't know the name in english), if i do more zoom or i click at the "point" the icon change to user icon...
In my case i prefer in this way... If you want to see the results here
thank you.
That's great! I like how it works on your site.
http://towtalk.net ... Hosted by Zarconia.net! |
Skyforum, the only problem I see with your changes is that when you zoom out of your map past the default zoom level, all icons disappear completely so you can't see where people are joined. |
Skyforum, the only problem I see with your changes is that when you zoom out of your map past the default zoom level, all icons disappear completely so you can't see where people are joined.
I noticed that too but it only seems to happen if you zoom out past a point where you can already see the entire world. I also noticed that if you click and drag the image sideways, you can tell there is a limit on each side of the box that once you pass it, the icons will not show. It's almost like the box that displays the map image is too big for the width assigned to the map for display. I'm going to play with it some more and see what I can figure out.
I just noticed something. If you look at the setup page for the world map mod and the box created for the image on the front page, the aspect ratio of the box is way off. The index page one is substantially wider. That might be causing the disappearing icons....
Near as I can tell, the map on the index page is being displayed at 659px x 246px. I think it really needs to be closer to square. Even though the map appears in the entire box, the icons won't
http://towtalk.net ... Hosted by Zarconia.net! |
Giving me a headache.
I was able to change the height of the map on the front page by editing the main.css file in modules/boonex/map_profiles. I increased the height by 100 px. It changed nothing except maybe displaying a better world view. As soon as you zoom out or drag the screen like Mauricecano noted, the icons disappear. Don't have any idea why.
http://towtalk.net ... Hosted by Zarconia.net! |
Thank You! This has worked quite nicely.
I was unable to enlarge map box but will work on it and let you know if I can solve it.
|
I had a problem with that also. I actually had to dump my temp files in my browser to get it to reload the css... http://towtalk.net ... Hosted by Zarconia.net! |
Thank you very much!
Put "zip" without the quotes. This is the system ID for the zip/postal code input.
|
csampson1 2 Mar 2010 ·
post is hidden (
show post
)
|
The main issue with the icons disappearing is because the script can only show one icon per location on the map, and when you try to show two it shows none.
So if you zoom out so you can see a Country on the map two times (because the map wraps around), the country flag disappears.
Light man a fire keep him warm for a night, light him ON fire & he will be warm the rest of his life |
Hey Sky Forum,
I assure you all this can be done and quite a bit more the Google Mapping option are over the top PLZ see this link:
http://www.getglobalexposure.com/mycommunity/index.php
The problem is I have no idea where to start with the coding that is Dolphin 7....I can put you in touch with a Google Map Expert bar none. There are several issues that the Dolphin 7 map and yes you are correct this is a FANTASTIC IDEA and can be made to work but maybe if we talk and you point me in the right direction to the CODE that is Dolphin 7 with this part of it I ASSURE YOU it can be done and quite quickly. I spent the last 6 months making the map with my guy using Google Maps as the core to some 80,000 properties those properties can be people place or things the map could care.... The issue for me is the map changes the geocodes from some reason which have been trying to track down via others I have paid for what I thought was the resolution if you would like to call me please do at this number 407-765-7917..........
Thanks for the heads up.esearch the site when I get a minute and contact you for that info if needed. I would like to make better use of the world map on my site.
http://towtalk.net ... Hosted by Zarconia.net! |
I tok a look at your site, but i dont see anything on the map for now. (Maybe thats just because you re doing one of your updates :))
Its a great ide. I would really like this feature for my page when you complete the modul.
Great treat!
regards
Mortypop
|
Hey Sky Forum,
I assure you all this can be done and quite a bit more the Google Mapping option are over the top PLZ see this link:
http://www.getglobalexposure.com/mycommunity/index.php
The problem is I have no idea where to start with the coding that is Dolphin 7....I can put you in touch with a Google Map Expert bar none. There are several issues that the Dolphin 7 map and yes you are correct this is a FANTASTIC IDEA and can be made to work but maybe if we talk and you point me in the right direction to the CODE that is Dolphin 7 with this part of it I ASSURE YOU it can be done and quite quickly. I spent the last 6 months making the map with my guy using Google Maps as the core to some 80,000 properties those properties can be people place or things the map could care.... The issue for me is the map changes the geocodes from some reason which have been trying to track down via others I have paid for what I thought was the resolution if you would like to call me please do at this number 407-765-7917..........
Ok, I'm back. I am not the one that can point you in the proper directions when it comes to Dolphin coding. I just figure it out by trial and error. (Used to do that in math class, drove the teachers nuts!). Here's what I would LOVE to have for my site.
- Instead of world flags in the default zoom level (where you can see the entire planet), I would like very small single icons placed for each user.
- Those pins would be different colors and the colors would be assigned to each of my membership types. Green for TG Member, Blue for TG Owner, etc. The overall view once the site gains a little notoriety would be stunning to someone logging in for the first time. Would give my site a true air of worldy acceptance.
- Zooming in would change the icon to a small flag, same color combination (a cool effect would be a small waving gif, but might be asking too much). Hovering over a pin would popup a quick profile of the member with a photo of their location if they add it to their profile. (of course, blocked to visitors without proper permissions) and further zooming in would display on the map their actual location by address or geocode, not by zip.
- To keep the server hits to a minimum for google and for us, The small pin idea would only function on the front page at minimum zoom, all other pages would make use of the country flag instead at minimum zoom, followed by the colored (waving) flags and actual address location.
I don't think that's asking too much.
http://towtalk.net ... Hosted by Zarconia.net! |
ok, asking a dumb question here, but where did you change the city to pin png? All I get is the old fashion marker on my maps.or if i put in user instead, of course i can get that.I would like to try the pin and maybe change it later to something else. But cant seem to figure where to change the code,lol
Derrick
Back to pulling my hair out! (ouch, ouch,ouch) |
ok, asking a dumb question here, but where did you change the city to pin png? All I get is the old fashion marker on my maps.or if i put in user instead, of course i can get that.I would like to try the pin and maybe change it later to something else. But cant seem to figure where to change the code,lol
Derrick
Everything I did was in this post. All I did to change the images was change the images and rename them with the same name.
http://towtalk.net ... Hosted by Zarconia.net! |
It just wasn't working!
If I got it to work on one page, then the stupid icons wouldn't show on another. So in the end, I ripped the entire thing out and reinstalled the default setup. I will try a different approach now.
I will find someone that knows that the hell they are doing to modify it for me....
http://towtalk.net ... Hosted by Zarconia.net! |
Ok, default install still has the same problem. Icons disappearing off the edges so I don't think it's a result of the changes I made here. A ticket has been submitted to correct the problem. On the index page, in a world view of more than 360 degrees, the icons are disappearing. Once the bug has been resolved, I think these changes will work just fine.
A ticket has been submittied by AlexT on the issue -
http://www.boonex.com/trac/dolphin/ticket/1936
http://towtalk.net ... Hosted by Zarconia.net! |
Does anyone know if this website: www.myfishmap.com is a boonex dolphin website? it is really nice |