HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


ocDatamap - Comments

Login / Search

 [ Join | More ]
 

ocDatamap by Kamen Blaginov

Downloads: 389
Added: 06 February 2011
Rating:
This is a main block, that shows a different catalogue entries locations longitude/latitude values (the names of the fields to take longitude/latitude from are configured inside block parameters). The different catalogue entries are shown as pins on a Google map. Clicking on the pin shows the catalogue entry in a little box (as a link to the entry). Example:

Code

[block title="store locater" description="This is a Store Locater" latfield="lat" l

Zoom not having effect

Avatar
Excelent code I have not had luck with the zoom value no matter what number I use I has no effect on the map.

Here is the code I have used

Code

[block title="Localizador" description="Mapas google" latfield="Latitud" longfield="Longitud" catalogue="salas" width="100%" height="300px" api_key="ABQIAAAAlef_q9YkdeERarebdwPNkRT8la1y8YqF3RKxkL9uXM-At6mb-RS96ILHebgyweNV_DRrskIJGPG_yA" zoom="3" latitude="9.929857" longitude="-84.084935"]main_google_map[/block]


Last edit: by Chris Graham

Avatar
I'd check the page source for ".setZoom" and see if it's in there with the value you set. I reviewed the code just now and can't see any bugs, so if we verify this we know it is something either on Google's end or the parameters entered. Personally I haven't used this before.

Google map block no working on International Language (Spanish)

Avatar
Here is the report I get when trying to insert the block when  language is set in keep_lang=ES

PHP WARNING [2] strpos() [<a href='PHP: strpos - Manual'>function.strpos.php</a>]: Empty delimiter in /home/public_html/mysite.com/sources/misc_scripts.php on line 451 (version: 6.0.3, PHP version: 5.2.8, URL: /data/block_helper.php?type=step2&block=main_google_map&fiel
d_name=post&keep_lang=ES)

Avatar
One of these language strings in the pack must be incorrectly blank.

BLOCK_IND_ADVANCED
or
BLOCK_IND_NUMERIC
or
BLOCK_IND_WHETHER

Google map block no working on International Language (Spanish)

Avatar
Thank you, it works now!. :thumbs:
After I have entered a value on comcode.po for ES in custom_lang
BLOCK_IND_ADVANCED
BLOCK_IND_NUMERIC
BLOCK_IND_WHETHER

As a suggestion, would it be possible to default to the original language if values are empty and this will be useful for most of the codes as if not translated I get blank value so I have to enter the English value for the Spanish lang which at least tells me what it is I have on that field.

Avatar
If it came from Launchpad, Launchpad shouldn't be putting things that are set to "(no translation yet)" as blank, is that what it's doing? Or did someone actually translate it to blank?

I already fixed the code to not stack trace on the situation, it just reverts to being less smart.

1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: