Jump to content

Member Map

Featured Replies


Does it also work like a normal Google map in being able to add locations of different places (e.g. event locations)?



And if that is possible, can different markers be created to differentiate between forum member locations and event locations?



Yes, only administrators can add those, have a look at the custom markers section in the ACP.
  • Replies 3.2k
  • Views 199.7k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • That is correct. I have thought about making this a paid app many times before, both for the 4.4 and 4.3 version. And the price I'm placing on this now is the same I planned to put on it back then. (I

  • I'm sure you are able to export an entire folder as a KML or KMZ file. Most of the files I've tested with contains thousands of markers.  Yes. But I'll have to make quite a few changes in order

  • Days or a week. I've re-structured the main javascript code, so that needs a bit of testing. Unfortunately none of you can beta test this, as I think that would make it impossible for you to purc

Posted Images

Coolio! :thumbsup:

And one more thing... can the default markers be changed, those being mine (Administrator - blue blob with a house) and the members (red blob)?


Coolio! :thumbsup:



And one more thing... can the default markers be changed, those being mine (Administrator - blue blob with a house) and the members (red blob)?



Every one see's their own marker as the home marker, all others are red

Ahhh I knew that :blush:

Is there any way this can be automated to pull out the locations from data entered?

Pull it from what location ?

I was curious about that, myself. Maybe have an option to scan the Location field on all member's profiles and import every one with a usable location given.

Hmm, one of the problems of parsing a larger amount of data is that it can't be done at once. Google do limit the amount of lookups you can do per second.

That's exactly what I was after. Surely the scan would only be heavy when firt performed as after that it'd only have to be run for new users? There was a Mod that had that functionality for vB and it worked well.

  • 2 weeks later...

Hey, thanks for a great addon! I just have one problem that I can't figure out how to fix.

No matter how I enter the location - typing it or entering the exact coordinates, it gets written to database rounded. So 'Moscow, Russia' becomes 55.000000,37.000000. Even if I go to phpMyAdmin and manually change it to 55.452083,37.370348, after refreshing the map in the browser, the values in the database go back to rounded ones.

Found the fixed map.php on page 8 of the topic, but it's for 1.0.0 beta 2. Should I use it on the latest version?


Hey, thanks for a great addon! I just have one problem that I can't figure out how to fix.



No matter how I enter the location - typing it or entering the exact coordinates, it gets written to database rounded. So 'Moscow, Russia' becomes 55.000000,37.000000. Even if I go to phpMyAdmin and manually change it to 55.452083,37.370348, after refreshing the map in the browser, the values in the database go back to rounded ones.



Found the fixed map.php on page 8 of the topic, but it's for 1.0.0 beta 2. Should I use it on the latest version?



It does sound like an odd issue, if you do update via phpmyadmin, instead of refreshing the page, click the page link again, this will prevent the post data from the previous request re-putting data in the database

Oh, yes, seems the refreshing part was related to POST data indeed. Thanks!

What about numbers being rounded when entering the location normal way, how do I fix that in 1.0.1?


Oh, yes, seems the refreshing part was related to POST data indeed. Thanks!



What about numbers being rounded when entering the location normal way, how do I fix that in 1.0.1?



I would need to debug it a little, I'll get some code together for you to run that should give me more information (It's probably due to the locale setup on your server)

OK, I figured it out. You're relying on $LocaleInfo["mon_thousands_sep"] and $LocaleInfo["mon_decimal_point"] to fix the value for MySQL. localeconv() on my server returns following array (currency/monetary values aren't set, no idea why):

Array

(

    [decimal_point] => .

    [thousands_sep] => 

    [int_curr_symbol] => 

    [currency_symbol] => 

    [mon_decimal_point] => 

    [mon_thousands_sep] => 

    [positive_sign] => 

    [negative_sign] => 

    [int_frac_digits] => 127

    [frac_digits] => 127

    [p_cs_precedes] => 127

    [p_sep_by_space] => 127

    [n_cs_precedes] => 127

    [n_sep_by_space] => 127

    [p_sign_posn] => 127

    [n_sign_posn] => 127

    [grouping] => Array

        (

        )


    [mon_grouping] => Array

        (

        )


)



So I changed:

$floatString = str_replace($LocaleInfo["mon_decimal_point"] , ".", $floatString);

            $floatString = str_replace($LocaleInfo["mon_thousands_sep"] , "", $floatString);



To:

$floatString = str_replace($LocaleInfo["decimal_point"] , ".", $floatString);

            $floatString = str_replace($LocaleInfo["thousands_sep"] , "", $floatString);



Now it seems to work fine.

And thanks a lot for prompt answers btw, awesome support! ;)


OK, I figured it out. You're relying on $LocaleInfo["mon_thousands_sep"] and $LocaleInfo["mon_decimal_point"] to fix the value for MySQL. localeconv() on my server returns following array (currency/monetary values aren't set, no idea why):



Array

(

    [decimal_point] => .

    [thousands_sep] => 

    [int_curr_symbol] => 

    [currency_symbol] => 

    [mon_decimal_point] => 

    [mon_thousands_sep] => 

    [positive_sign] => 

    [negative_sign] => 

    [int_frac_digits] => 127

    [frac_digits] => 127

    [p_cs_precedes] => 127

    [p_sep_by_space] => 127

    [n_cs_precedes] => 127

    [n_sep_by_space] => 127

    [p_sign_posn] => 127

    [n_sign_posn] => 127

    [grouping] => Array

        (

        )


    [mon_grouping] => Array

        (

        )


)



So I changed:

$floatString = str_replace($LocaleInfo["mon_decimal_point"] , ".", $floatString);

            $floatString = str_replace($LocaleInfo["mon_thousands_sep"] , "", $floatString);



To:

$floatString = str_replace($LocaleInfo["decimal_point"] , ".", $floatString);

            $floatString = str_replace($LocaleInfo["thousands_sep"] , "", $floatString);



Now it seems to work fine.


Great!, I'm not sure why you don't have those variables set though, Something for me to look into for the next version (as far as I know, you're the only user that's encountered this).


And thanks a lot for prompt answers btw, awesome support! ;)



No problem :thumbsup:

Great!, I'm not sure why you don't have those variables set though, Something for me to look into for the next version (as far as I know, you're the only user that's encountered this).



If you need any additional info on my server/settings, or need to run some scripts to test - feel free to PM me. ;)

If you need any additional info on my server/settings, or need to run some scripts to test - feel free to PM me. ;)



You actually provided exactly what I was going to ask for (w00t).

Just need to decide whether to use the other variables, or fall back to them if the others are empty.

If they are in the exact same position the last one will appear on top. if they are nearby as you zoom in they will seperate.



I do want to merge these in future so they merge into one marker.




Having a similar problem. If more than one person enters the same city/state, not a specific address, the latest one replaces the previous marker. Even when zoomed in, only the most recent one appears. How can this be fixed so that all markers can be seen, even if they're in the same spot?

Maybe suggested, maybe not, but wysiwyg editor for Marker Description field in ACP would be great. Would be good when in Description were images, links etc.


Having a similar problem. If more than one person enters the same city/state, not a specific address, the latest one replaces the previous marker. Even when zoomed in, only the most recent one appears. How can this be fixed so that all markers can be seen, even if they're in the same spot?



It's going to be addressed in a future update, I'm not sure when that will be though.


Maybe suggested, maybe not, but wysiwyg editor for Marker Description field in ACP would be great. Would be good when in Description were images, links etc.



descriptions are not parsed, so a wysiwyg would be pointless.

descriptions are not parsed, so a wysiwyg would be pointless.



Is that possible in next version? Live link would be good.

Is that possible in next version? Live link would be good.



I'll look into it, one thing I'll need to look at is the resources that would be used to parse each description

stoo2000 please add different markers for each group.

Is it possible to choose to load the map in hybrid or satelite view by default (file edit)?

Guest
This topic is now closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.