The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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. |
#2
|
|||
|
|||
No information?
|
#3
|
|||
|
|||
No body know how to implement this maps?????
|
#4
|
|||
|
|||
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/
|
#5
|
||||
|
||||
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. |
Благодарность от: | ||
Dave |
#6
|
||||
|
||||
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 |
#7
|
|||
|
|||
Quote:
Quote:
Quote:
|
#8
|
||||
|
||||
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 |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|