jwrightspplus

Forum Replies Created

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • in reply to: Add '15 miles' to store locator radius drop-down? #27273
    jwrightspplus
    Member

    Question…. would not all the recommended changed mentioned here be wiped out when the Pro Plugin gets updated?

    in reply to: map on the phone (plug Wptouch) is not visible #24402
    jwrightspplus
    Member

    The problem is that there is suppose to be a whole bunch of generated map code in this empty div:

    <div class="wpgmza_map" id="wpgmza_map_19" style="display:block; overflow:auto; width:100%; height:350px; float:left;"> </div>

    Its all there on the desktop but not on WP-Touch mobile.

    in reply to: map on the phone (plug Wptouch) is not visible #24401
    jwrightspplus
    Member

    The short code is generating html content on the mobile….

                <a name="map19"></a>
                <div class="wpgmza_map" id="wpgmza_map_19" style="display:block; overflow:auto; width:100%; height:350px; float:left;"> </div>
    			<div style="display:block; width:100%;">
    			<div id="wpgmaps_directions_edit_19" style="display:none; width:100%; clear:both;" class="wpgmaps_directions_outer_div">
    				<h2>Get Directions</h2>
    				<div id="wpgmaps_directions_editbox_19" class="table-parent">
    					<table>
    						<tbody><tr>
    							<td>
    								<label for="wpgmza_dir_type_19">For</label>
    							</td>
    							<td>
    								<select id="wpgmza_dir_type_19" name="wpgmza_dir_type_19" tabindex="2">
    									<option value="DRIVING" selected="selected">Driving</option>
    									<option value="WALKING">Walking</option>
    									<option value="TRANSIT">Transit</option>
    									<option value="BICYCLING">Bicycling</option>
    								</select>
    								&nbsp;
    								<a href="javascript:void(0);" mapid="19" id="wpgmza_show_options_19" onclick="wpgmza_show_options(19);" style="font-size:10px;">show options</a>
    								<a href="javascript:void(0);" mapid="19" id="wpgmza_hide_options_19" onclick="wpgmza_hide_options(19);" style="font-size:10px; display:none;">hide options</a>
    								<div style="display:none" id="wpgmza_options_box_19">
    									<input type="checkbox" id="wpgmza_tolls_19" name="wpgmza_tolls_19" value="tolls" tabindex="3"> <label for="wpgmza_tolls_19">Avoid Tolls</label><br>
    									<input type="checkbox" id="wpgmza_highways_19" name="wpgmza_highways_19" value="highways" tabindex="4"> <label for="wpgmza_highways_19">Avoid Highways</label><br>
    									<input type="checkbox" id="wpgmza_ferries_19" name="wpgmza_ferries_19" value="ferries" tabindex="5"> <label for="wpgmza_ferries_19">Avoid Ferries</label>
    								</div>
    							</td>
    						</tr>
    						<tr class="wpgmaps_from_row">
    							<td class="wpgmaps_from_td1">
    								<label for="wpgmza_input_from_19">From</label>
    							</td>
    							<td width="90%" class="wpgmaps_from_td2">
    								<input type="text" value="" id="wpgmza_input_from_19" style="width:80%" tabindex="6"> 
    							</td>
    						</tr>
    						<tr class="wpgmaps_to_row">
    							<td class="wpgmaps_to_td1">
    								<label for="wpgmza_input_to_19">To</label>
    							</td>
    							<td width="90%" class="wpgmaps_to_td2">
    								<input type="text" value="" id="wpgmza_input_to_19" style="width:80%" tabindex="7"> 
    							</td>
    						</tr>
    						
    						<tr>
    							<td>
    							</td>
    							<td>
    								<input onclick="javascript:void(0);" class="wpgmaps_get_directions " id="19" type="button" value="Go" tabindex="8">
    							</td>
    						</tr>
    					</tbody></table>
    				</div>
    			</div>
    	<div id="wpgmaps_directions_notification_19" style="display:none;">Fetching directions……</div>
    	<div id="wpgmaps_directions_reset_19" style="display:none;">
    		<a href="javascript:void(0)" onclick="wpgmza_reset_directions(19);" id="wpgmaps_reset_directions" title="Reset directions">Reset directions</a>
    		<br>
    		<a href="" id="wpgmaps_print_directions_19" title="Print directions">Print directions</a>
    	</div>
    	<div id="directions_panel_19"></div>
    

    And I am not seeing any JQuery errors when emulating a mobile site on Chrome.

    in reply to: map on the phone (plug Wptouch) is not visible #24400
    jwrightspplus
    Member

    Yes I have.

    in reply to: map on the phone (plug Wptouch) is not visible #24362
    jwrightspplus
    Member
    This reply has been marked as private.
    in reply to: map on the phone (plug Wptouch) is not visible #24361
    jwrightspplus
    Member

    Maps still not showing on WPTouch.

    Just upgraded to:

    WP Google Maps – Version 6.4.02
    WP Google Maps – Pro Add-on – Version 6.13
    WP Google Maps – Gold Add-on – Version 4.03

    Using WPtouch Pro – Version 4.3.8

    in reply to: Need Latest Version of Pro and Gold #24013
    jwrightspplus
    Member
    This reply has been marked as private.
    in reply to: Make Polygons Direct Link #10587
    jwrightspplus
    Member

    Well I have a hack to make the polygons clickable – but it’s a very rough hack, only accomplishes what I needed it to do, has no settings in the admin tool and it will be over written if and when WP Google Maps does an update. So user beware…

    But until the WP Google Maps team releases their more polished version of this feature hear you go.

    Open up the wp-google-maps-pro/js/core.js
    Right around line 1859 (at least that is where it at in my version) you should see the following piece of code:

    if (tmp_data['title'] !== "") {
             infoWindow_poly[polygonid] = new google.maps.InfoWindow();
             google.maps.event.addListener(WPGM_Path_Polygon[polygonid], 'click', function(event) {
                 infoWindow_poly[polygonid].setPosition(event.latLng);
                 content = "";
                 if (tmp_data['link'] !== "") {
                     var content = "<a href='"+tmp_data['link']+"'>"+tmp_data['title']+"</a>";
                 } else {
                     var content = tmp_data['title'];
                 }
                 infoWindow_poly[polygonid].setContent(content);
                 infoWindow_poly[polygonid].open(MYMAP[entry].map,this.position);
             }); 
            }

    This set’s up the click listener on the polygon.

    Change it to:

    if (tmp_data['title'] !== "") {
             infoWindow_poly[polygonid] = new google.maps.InfoWindow();
             google.maps.event.addListener(WPGM_Path_Polygon[polygonid], 'click', function(event) {
                 //infoWindow_poly[polygonid].setPosition(event.latLng);
                 //content = "";
                 if (tmp_data['link'] !== "") {
                     //var content = "<a href='"+tmp_data['link']+"'>"+tmp_data['title']+"</a>";
    				 window.location.href = tmp_data['link'];
                 } 
    			 //else {
                     //var content = tmp_data['title'];
                 //}
                 //infoWindow_poly[polygonid].setContent(content);
                 //infoWindow_poly[polygonid].open(MYMAP[entry].map,this.position);
             }); 
            }

    This will make the polygon clickable to whatever you set as the “URL” value for the polygon and get rid of the link in the info-window.

    You can see it in action at:

    http://dca.spplusparking.com/ (while it is up – its a proof of concept website so probably wont be up forever)

    Good luck.

    John

    • This reply was modified 5 years, 8 months ago by jwrightspplus.
    in reply to: Make Polygons Direct Link #10023
    jwrightspplus
    Member

    I have seen a couple of updates come through for the plug in but have not seen this feature added yet.

    I really like this plug in and its a great tool but the polygon user interaction is not what folks would normally expect to happen on a hover or click. Is there a hack we can put into place while you are working on releasing the clickable functionality?

    Thanks!

    John

Viewing 9 posts - 1 through 9 (of 9 total)