Thread: Google maps
View Single Post
  #7  
Old 08-04-2017, 08:35 PM
SilverBoy SilverBoy is offline
 
Join Date: Feb 2002
Location: Libya
Posts: 497
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dave View Post
The only thing I can recommend you is to take a look at the JavaScript API of Google Maps at https://developers.google.com/maps/d...on/javascript/
Thank you Dave .

Quote:
Originally Posted by cellarius View Post
You're not asking for anything trivial here. This is nothing that can be done - or explained to you - in a matter of a few minutes.

There is a whole lot of issues attached, and none of them is easily solved. For example: How do you tell Google Maps what place to show? Where does it take the data from? You basically need to have a database running in the background or extend the post data structure of vB accordingly. Posts are non structured data and normally not suitable to run such things.

I have something similar up and running on my site, and a whole lot of work went into that. Its a customized solution highly integrated in the structure of my site, with a seperate database running in the background and tied in with the vB database. It's nothing that could be shared easily. I don't say this to tease you, but to point out that you're actually asking quite a lot here, since you seem to be a bit... impatient, let's say.
What I asked for is simple, that is why I confused.

Quote:
Originally Posted by Kane@airrifle View Post
You can start by building your own custom map: https://www.google.com/maps/d/

This custom map is embeddable only if you have HTML posting permissions and will by default show every location you have added to the custom map.

However, I assume that each hotel will already have its own unique entry on Google maps in which case you can simply use BBCODE to embed each individual hotel entry in the review post. Like so - alter the sizing etc to suit: (Cannot remember why I have literal in there, you could probably leave it out)

Code:
<vb:literal>
<iframe width="600" height="600" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://maps.google.com/maps?q={param}&t=h&output=embed"></iframe>
</vb:literal>

The param will parse, either a Google place name and address eg: Awal Hotel Tripoli, Ṭarā-bu-lus al-Gharb, Libya or it will parse, a G-maps coordinate eg: 32.889376, 13.173355 or a GPS friendly coordinate eg: 32?53'21.8"N 13?10'24.1"E between whatever BBcode tag you choose eg: [map]
Thank you Kane, I get the solution and what I want from your post, now I can create my custom map and add places to it then embed it in my site
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01177 seconds
  • Memory Usage 1,779KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete