Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8975333
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T18:51:06+00:00 2026-06-15T18:51:06+00:00

i have this code for google map in my page..i wanted to change the

  • 0

i have this code for google map in my page..i wanted to change the value of the longitude and latitude..it should be from my database..how will i accomplish it?

$(function() { 
    demo.add(function() {
        $('#gmap').gmap({'center': '47.660937,9.569803', 'zoom': 10,'disableDefaultUI':true, 'callback': function() {
            var self = this;
            self.addMarker({'position': this.get('map').getCenter() }).click(function() {});    
                    }});
    }).load();
});

here’s when how i declare my variable from database..

$propertyId = $this->_getParam('propertyId', null);

            $propDetail = $propertyDb->getProperty($sessionOutlet, $propertyId);

            $this->view->description = $propDetail[0]['Description'];
            $this->view->propertyname = $propDetail[0]['PropertyName'];
            $this->view->longitude = $propDetail[0]['Longitude'];
            $this->view->latitude = $propDetail[0]['Latitude'];
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T18:51:08+00:00Added an answer on June 15, 2026 at 6:51 pm

    About the JS variable declaration from ZEND, you can insert PHP variable in your JS code like this :

    var longitude = <?php echo $this->longitude; ?>; // for number
    var description = "<?php echo $this->description; ?>"; // for string
    

    You could also use inline conditional :

    var myVar = "<?php echo (isset($this->myVar)) ? $this->myVar : 'Not defined' ; ?>"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this code which I have found from google. It's a adapter for
I have read and re-read this page, as well as run the samples: http://code.google.com/chrome/extensions/background_pages.html
I'm new at this, but I have a Google V3 map that loads from
I have a simple Google map v3 with only one marker with this code:
I have tried to add options to my google map based on this page:
I have a page on my site with a regular, embeded-from-Google Google Map. The
I have used this code (kind of tutorial) at http://code.google.com/p/gwt-examples/wiki/gwt_hmtl5 ... In this code,
For example we have this line chart at Google Code API there is a
I have this block of code inside a loop: var points = [new google.maps.LatLng(lat1,
I have a private project, and i want it hosted on google code. this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.