Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 08-01-2017, 12:02 AM
SilverBoy SilverBoy is offline
 
Join Date: Feb 2002
Location: Libya
Posts: 497
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Google maps

Hi

At first point I have to tell that, I have no experience with google maps, so maybe my questions are very stupid ^_^.

I want to lunch hotel reviews section in my site, and I want to add hotels which are exist in my reviews as points in custom google map, so the first question, how I can get unique map for me, and then how I can add locations to it and give them a hotel symbol, the last question is, how I can linked the location in the map with URLs to open the connected hotel with it's location in the map?

I want some thing like the map in this link.
https://demo.jreviews.com/city-guide/hotels

Thank you in advance.
Reply With Quote
  #2  
Old 08-02-2017, 03:29 AM
SilverBoy SilverBoy is offline
 
Join Date: Feb 2002
Location: Libya
Posts: 497
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No information?
Reply With Quote
  #3  
Old 08-03-2017, 11:00 PM
SilverBoy SilverBoy is offline
 
Join Date: Feb 2002
Location: Libya
Posts: 497
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No body know how to implement this maps?????
Reply With Quote
  #4  
Old 08-03-2017, 11:38 PM
Dave Dave is offline
 
Join Date: May 2010
Posts: 2,583
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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/
Reply With Quote
  #5  
Old 08-04-2017, 05:26 AM
cellarius's Avatar
cellarius cellarius is offline
 
Join Date: Aug 2005
Posts: 1,987
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SilverBoy View Post
No body know how to implement this maps?????
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.
Reply With Quote
Благодарность от:
Dave
  #6  
Old 08-04-2017, 01:16 PM
Kane@airrifle's Avatar
Kane@airrifle Kane@airrifle is offline
 
Join Date: Jun 2011
Location: ZA
Posts: 181
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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]
Reply With Quote
Благодарность от:
SilverBoy
  #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
  #8  
Old 08-07-2017, 04:46 AM
bridge2heyday's Avatar
bridge2heyday bridge2heyday is offline
 
Join Date: Aug 2014
Location: Egypt
Posts: 141
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't think it is a good thing to go and edit your custom map on google whenever you want to add a new location .. working with WordPress directory plugin I was able to add different type of places ( different markers ) with WordPress and I was able to filter them by type and radios and any other field .
You can look at this code example https://developers.google.com/maps/d.../mysql-to-maps
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:54 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.12150 seconds
  • Memory Usage 2,247KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_code
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (2)post_thanks_box_bit
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete