Google Maps Zoom
10 years ago
konstantin penner
Member
Hey, can you please say me, where i can edit the zoom option in the js for google maps?
i have only the coordinates and i want only place in the contact form without street and city. Kind regards |
10 years ago
Alice
Support Service
Hi!
Please, clarify the issue. What do you want to place on the map? The following map types are supported in Google Maps API: ROADMAP (normal, default 2D map) SATELLITE (photographic map) HYBRID (photographic map + roads and city names) TERRAIN (map with mountains, rivers, etc.) Please, find a word in this file (js --> smthemes.js) and replace it with the most appropriate map type. |
10 years ago
konstantin penner
Member
Hey, thanks for replay. I want only show the federal state "Nordrhein Westfalen" in germany. No Street, no city. Regards.
|
10 years ago
Alice
Support Service
Hi!
It is impossible to do. You can choose any type of map that is supported by Google Maps API. We can't help you to customize the API. |
10 years ago
konstantin penner
Member
Hi, i have the right coordinates. Is there no zoom option in the js? Kind regards
|
10 years ago
konstantin penner
Member
What is with "mzoom" and "zoom" ?
|
10 years ago
Dave
Support Service
There is zoom option.
It is set in the code:
in the file function.php located in the directory of the theme. |
10 years ago
konstantin penner
Member
Hi, thank you for your help, but is unfortunately not working. i set mzoom from 1 til 20, but he take only the standard zoom :(
|
10 years ago
Dave
Support Service
Hi!
We can suggest you to insert the map using google map shortcode in the text editor toolbox. After inserting the map you will see the following code in the editor:
You just have to add the attribute mzoom here. It should look like:
To remove the default map from your contact form you have to delete the address in the text field "Map Address" on page Stylish --> Contact form and save changes. |
10 years ago
konstantin penner
Member
hi, i dont understand what excactly u mean. U mean this google maps shortcode? :https://www.google.de/maps/place/Nordrhein-Westfalen/@51.4270853,7.6639887,8z/data=!3m1!4b1!4m2!3m1!1s0x47b9167c8e4248a1:0x2f4c327e4fd78f5f
U mean the Wordpress plugin google map shortcode?: "https://wordpress.org/plugins/google-map-shortcode/" Where i find the "text editor toolbox"? "After inserting the map..." = Where i insert the map? sorry, but cant follow u :) Regards |
10 years ago
Dave
Support Service
Hi!
Here is some useful information about what the Text Editor Toolbox is - http://codex.wordpress.org/TinyMCE. Insert the map using the shortcode provided by our theme. It is already implemented into your WYSIWYG editor panel(see the picture below): After inserting the map you will see the following code in the editor:
You just have to add the attribute mzoom here. It should look like:
To remove the default map from your contact form you have to delete the address in the text field "Map Address" on page Stylish --> Contact form and save changes. |
10 years ago
konstantin penner
Member
Yes, its working.
Thank you! |
Leave a reply
Search by forum
SMThemes.com Support
-
Categories
- Framework
- Themes
- Affiliate Company
- Sponsorship Useful pages
- How to start using our themes
- Contacts