Comments 2Michael started the conversationJanuary 8, 2017 at 10:46pmHi there,This is the code for Google map demo...how can i set the code to default map to satellite view?tried this...but doesn't default to sat. [rd_gmaps height="500px" lat="49.045545" lng="-122.669599" maptypeid="satellite"] 899TheFox repliedJanuary 9, 2017 at 5:41amHello again, We don't have this option in our map module. If you want to change our map to satellite, you need to use a child theme and copy this in the child theme functions.php : if (!function_exists('rd_gmaps')) { function rd_gmaps($atts, $content = null) { extract(shortcode_atts(array( 'zoom' => '12', 'height' => '400px', 'title' => 'our headquarters', 'lat' => '40.843292', 'lng' => '-73.864512', 'image' => '', ), $atts)); ob_start(); $wc_rp_rs = RandomString(5); $protocol = is_ssl() ? 'https' : 'http'; wp_enqueue_script('gmaps_api', ''.$protocol.'://maps.google.com/maps/api/js?key=AIzaSyAukA2dbngV9nXMmn91NxPWfGWejg6WD4s', array(), false, false); ?> <script type="text/javascript"> "use strict"; function initialize<?php echo esc_js($wc_rp_rs); ?>() { var latlng = new google.maps.LatLng(<?php echo esc_js($lat." , ".$lng) ?>); var grayStyles = [ { featureType: "all", stylers: [ { saturation: -10 }, { lightness: 10 } ] }, ]; var options<?php echo esc_js($wc_rp_rs); ?> = { center : latlng, scrollwheel : false, <?php echo(isMobile()) ? 'draggable: false,' : ''; ?> mapTypeId: google.maps.MapTypeId.SATELLITE, zoomControl : true, styles: grayStyles, zoomControlOptions : { style: google.maps.ZoomControlStyle.SMALL, position: google.maps.ControlPosition.TOP_LEFT }, mapTypeControl : true, mapTypeControlOptions : { style: google.maps.MapTypeControlStyle.HORIZONTAL_BAR, position: google.maps.ControlPosition.TOP_RIGHT }, scaleControl : true, scaleControlOptions : { position: google.maps.ControlPosition.TOP_LEFT }, streetViewControl : true, streetViewControlOptions : { position: google.maps.ControlPosition.TOP_LEFT }, panControl : false, zoom : <?php echo esc_js($zoom); ?> }; var map<?php echo esc_js($wc_rp_rs); ?> = new google.maps.Map(document.getElementById("gm_<?php echo esc_js($wc_rp_rs); ?>"), options<?php echo esc_js($wc_rp_rs); ?>); var marker = new google.maps.Marker({ position: latlng, <?php if($image !== ''){ $bg_id = preg_replace( '/[^\d]/', '', $image ); $bg_img = wp_get_attachment_image_src( $bg_id, 'full' ); ?> icon: '<?php echo $bg_img[0]; ?>', <?php } ?> map: map<?php echo esc_js($wc_rp_rs); ?>, title:"<?php echo esc_js($title); ?>" }); } jQuery(document).ready(function () { initialize<?php echo esc_js($wc_rp_rs); ?>(); jQuery(".tabs-wrapper ul.tabs li").click(function (e) { setTimeout(function(){ google.maps.event.trigger(window, 'resize', {});},400); }); jQuery(".tabs-wrapper ul.tabs li a").click(function (e) { setTimeout(function(){ google.maps.event.trigger(window, 'resize', {});},400); }); jQuery('.wpb_accordion_section h3 > a').click(function(){ setTimeout(function(){ google.maps.event.trigger(window, 'resize', {});},400); }); }) </script> <div class="map_canvas_body"> <div id="gm_<?php echo esc_attr($wc_rp_rs); ?>" class="map_canvas" style="height:<?php echo esc_attr($height);?>;"></div> </div> <?php $output_string = ob_get_contents(); ob_end_clean(); return $output_string; } add_shortcode( 'rd_gmaps', 'rd_gmaps' ); } Do not hesitate to contact us if you have more questions.Have a nice day! Regards.--------------------- Hosting we recommend ( Free SSL and CDN included in all plan ). Speed up your site with Autoptimize Test your site with GTmetrix and fix the issue to make it faster How to Update your Theme 2Michael repliedJanuary 12, 2017 at 4:13pmThanks kindly...this works well...also how would i add labels? 2Michael repliedJanuary 12, 2017 at 4:23pmThanks kindly...this works well... also how would i add...... "street" labels? 899TheFox repliedJanuary 13, 2017 at 8:40amHello Michael,Glad to have been able to help you!The street label should be on by default,Try to zoom on the map to see the street labels.Do not hesitate to contact us if you have more questions. Regards.--------------------- Hosting we recommend ( Free SSL and CDN included in all plan ). Speed up your site with Autoptimize Test your site with GTmetrix and fix the issue to make it faster How to Update your Theme 2Michael repliedJanuary 13, 2017 at 6:31pmHi there ....street labels are``not on`` by default ....and tried zoom , no change, I can select it manually, though need it automatic...Please advise 899TheFox repliedJanuary 14, 2017 at 8:07amHello Michael,This is strange, could you please give us a link to your page?By the street labels what do you mean?Maybe we are not on the same page.Regards--------------------- Hosting we recommend ( Free SSL and CDN included in all plan ). Speed up your site with Autoptimize Test your site with GTmetrix and fix the issue to make it faster How to Update your Theme 2Michael repliedJanuary 15, 2017 at 4:42pmHi there,Attached is "no street names" and "street names"...please tell me how to automatically set street names...Thanks! 899TheFox repliedJanuary 16, 2017 at 6:09amHello Michael,Try to add this : { "featureType": "road", "elementType": "labels", "stylers": [ { "visibility": "on" } ] }, After center : latlng, scrollwheel : false,Do not hesitate to contact us if you have more questions. Regards.--------------------- Hosting we recommend ( Free SSL and CDN included in all plan ). Speed up your site with Autoptimize Test your site with GTmetrix and fix the issue to make it faster How to Update your Theme Michael replied privately 899TheFox repliedJanuary 18, 2017 at 4:41amHello Michael,Could you please check and confirm that you see the streets now.Regards--------------------- Hosting we recommend ( Free SSL and CDN included in all plan ). Speed up your site with Autoptimize Test your site with GTmetrix and fix the issue to make it faster How to Update your Theme 2Michael repliedJanuary 18, 2017 at 4:44pmWe have streets...Thanks kindly! 899TheFox repliedJanuary 19, 2017 at 5:36amHello Michael,You're welcome!Glad to have been able to help you!Do not hesitate to contact us if you have more questions.Have a nice day! Regards.--------------------- Hosting we recommend ( Free SSL and CDN included in all plan ). Speed up your site with Autoptimize Test your site with GTmetrix and fix the issue to make it faster How to Update your Theme Sign in to reply ...
Hi there,
This is the code for Google map demo...how can i set the code to default map to satellite view?
tried this...but doesn't default to sat. [rd_gmaps height="500px" lat="49.045545" lng="-122.669599" maptypeid="satellite"]
Hello again,
We don't have this option in our map module.
If you want to change our map to satellite, you need to use a child theme and copy this in the child theme functions.php :
Do not hesitate to contact us if you have more questions.
Have a nice day!
Regards.
---------------------
Hosting we recommend ( Free SSL and CDN included in all plan ).
Speed up your site with Autoptimize
Test your site with GTmetrix and fix the issue to make it faster
How to Update your Theme
Thanks kindly...this works well...
also how would i add labels?
Thanks kindly...this works well...
also how would i add...... "street" labels?
Hello Michael,
Glad to have been able to help you!
The street label should be on by default,
Try to zoom on the map to see the street labels.
Do not hesitate to contact us if you have more questions.
Regards.
---------------------
Hosting we recommend ( Free SSL and CDN included in all plan ).
Speed up your site with Autoptimize
Test your site with GTmetrix and fix the issue to make it faster
How to Update your Theme
Hi there ....street labels are``not on`` by default ....and tried zoom , no change,
I can select it manually, though need it automatic...
Please advise
Hello Michael,
This is strange, could you please give us a link to your page?
By the street labels what do you mean?
Maybe we are not on the same page.
Regards
---------------------
Hosting we recommend ( Free SSL and CDN included in all plan ).
Speed up your site with Autoptimize
Test your site with GTmetrix and fix the issue to make it faster
How to Update your Theme
Hi there,
Attached is "no street names" and "street names"...please tell me how to automatically set street names...
Thanks!
Hello Michael,
Try to add this :
After
Do not hesitate to contact us if you have more questions.
Regards.
---------------------
Hosting we recommend ( Free SSL and CDN included in all plan ).
Speed up your site with Autoptimize
Test your site with GTmetrix and fix the issue to make it faster
How to Update your Theme
Hello Michael,
Could you please check and confirm that you see the streets now.
Regards
---------------------
Hosting we recommend ( Free SSL and CDN included in all plan ).
Speed up your site with Autoptimize
Test your site with GTmetrix and fix the issue to make it faster
How to Update your Theme
We have streets...Thanks kindly!
Hello Michael,
You're welcome!
Glad to have been able to help you!
Do not hesitate to contact us if you have more questions.
Have a nice day!
Regards.
---------------------
Hosting we recommend ( Free SSL and CDN included in all plan ).
Speed up your site with Autoptimize
Test your site with GTmetrix and fix the issue to make it faster
How to Update your Theme