• Resolved themc

    (@themc)


    working with the latest wp up to date.

    this script is working up to date with geolocation (blue dot +radius).
    i still need help with 1 more thing. making it so when using directions the from here point will be filled with the users geolocation. if anybody could pretty plz help with that this version from the cgmp would be awesome.

    if you want the plugin with my work so far:

    2. in your wordpress by ftp goto wp-content/plugins/comprehensive-google-map-plugin/assets/js/

    3. open cgmp.framework.min.js

    4. open a browser and goto http://pastebin.com/uw9MBqAW use the raw paste and overwrite your cgmp.framework.min.js file.

    5.save and get a mobile device phone or tablet. (i found google chrome also works but the radius is very very big…. on a device its more accurate thnx to sensors.

    ill upload a picture with screenshot from our ipad as example in the next post.

    http://wordpress.org/plugins/comprehensive-google-map-plugin/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter themc

    (@themc)

    as promised the screenshot.

    watch it before the link expires.

    http://tinypic.com/r/25ezn6e/5

    + if somebody could help me with the directions from here or to here (geolocation start point) part…. it would make my day.

    Thread Starter themc

    (@themc)

    small fix i noticed while testing i deleted the

    $(dirDivId + ‘ input#b_address’).val(addy); from the first field.

    this makes it so the to here wasnt working correctly you can fix it by putting the line above under the input a value by searching for addy in the script.

    or bij replacing the following content

    [ Moderator note: please wrap code in backticks or use the code button. ]

    var addy = marker.content;
                                                    addy = addy.replace("Lat/Long: ", "");
    
    						$(parentInfoBubble + ' a.dirToHereTrigger').live("click", function() {
    							var thisId = this.id;
    							if (thisId == 'toHere-' + localBubbleData.bubbleHolderId) {
    								$(dirDivId).fadeIn();
    								$(dirDivId + ' input#a_address').val('');
    
    								$(dirDivId + ' input#radio_km').attr("checked", "checked");
    							}
    						});
    
    						$(parentInfoBubble + ' a.dirFromHereTrigger').live("click", function() {
    							var thisId = this.id;
    							if (thisId == 'fromHere-' + localBubbleData.bubbleHolderId) {
    								$(dirDivId).fadeIn();
    								$(dirDivId + ' input#a_address').val(addy);
    								$(dirDivId + ' input#b_address').val('');
    								$(dirDivId + ' input#radio_km').attr("checked", "checked");
    							}
    						});
    <strong>with </strong>
    
    var addy = marker.content;
                                                    addy = addy.replace("Lat/Long: ", "");
    
    						$(parentInfoBubble + ' a.dirToHereTrigger').live("click", function() {
    							var thisId = this.id;
    							if (thisId == 'toHere-' + localBubbleData.bubbleHolderId) {
    								$(dirDivId).fadeIn();
    								$(dirDivId + ' input#a_address').val('');
                                                                    $(dirDivId + ' input#b_address').val(addy);
    								$(dirDivId + ' input#radio_km').attr("checked", "checked");
    							}
    						});
    
    						$(parentInfoBubble + ' a.dirFromHereTrigger').live("click", function() {
    							var thisId = this.id;
    							if (thisId == 'fromHere-' + localBubbleData.bubbleHolderId) {
    								$(dirDivId).fadeIn();
    								$(dirDivId + ' input#a_address').val(addy);
    								$(dirDivId + ' input#b_address').val('');
    								$(dirDivId + ' input#radio_km').attr("checked", "checked");
    							}
    						});
    Thread Starter themc

    (@themc)

    i got it all fixed including the to here from here.

    so the script is finally complete.

    halleluja!!!

    http://pastebin.com/QeqRx4S1

    download it if you want.

    Plugin Contributor alexanderzagniotov

    (@alexanderzagniotov)

    Wow, thanks a lot. Nice feature!

    Plugin Contributor alexanderzagniotov

    (@alexanderzagniotov)

    Will add into v8.0.2

    Plugin Contributor alexanderzagniotov

    (@alexanderzagniotov)

    Added it as an experimental feature for users with mobile devices

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘plugin with geolocation radius and position changed.’ is closed to new replies.