vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Google maps (https://vborg.vbsupport.ru/showthread.php?t=325461)

SilverBoy 08-01-2017 12:02 AM

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.

SilverBoy 08-02-2017 03:29 AM

No information?

SilverBoy 08-03-2017 11:00 PM

No body know how to implement this maps?????

Dave 08-03-2017 11:38 PM

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/

cellarius 08-04-2017 05:26 AM

Quote:

Originally Posted by SilverBoy (Post 2589140)
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.

Kane@airrifle 08-04-2017 01:16 PM

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]

SilverBoy 08-04-2017 08:35 PM

Quote:

Originally Posted by Dave (Post 2589144)
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 (Post 2589152)
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 (Post 2589163)
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 :)

bridge2heyday 08-07-2017 04:46 AM

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


All times are GMT. The time now is 04:59 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02362 seconds
  • Memory Usage 1,738KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete