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

  • Home
  • SEARCH
  • 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 6162569
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T21:40:35+00:00 2026-05-23T21:40:35+00:00

I am unable to successfully add a google map to my dojo mobile application.

  • 0

I am unable to successfully add a google map to my dojo mobile application.

I have the following element in markup:

<div id="venue" dojotype="dojox.mobile.View" style="height:100%">
        <div id="map_canvas" style="width:100%; height:100%"></div>
</div>

And this script:

function initializeMap() {
   var latlng = new google.maps.LatLng(-34.397, 150.644);
   var myOptions = {
   zoom: 8,
   center: latlng,
   mapTypeId: google.maps.MapTypeId.ROADMAP
   };
   var node = dojo.byId("map_canvas");
   var map = new google.maps.Map(node, myOptions);
}

Nothing appears when I execute the initializeMap function. I also tried to set the map variable to the node.innerHTML but only a sliver of the map appears on the top of the viewport.

The example in the dojo site only shows the source of the markup and not the script. What am I missing, please?

  • 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-05-23T21:40:37+00:00Added an answer on May 23, 2026 at 9:40 pm

    Here’s snippets of HTML/Javascript I was able to get working.

    Details

    var latlng = new google.maps.LatLng(item.Latitude, item.Longitude);
    if (global.map == null) {
        var myOptions = {
              zoom: 16,
              center: latlng,
              mapTypeId: google.maps.MapTypeId.ROADMAP
            };
      global.map = new google.maps.Map(dojo.byId('map_canvas'), myOptions);
    } else {
      global.map.setCenter(latlng);
    }
    var view = dijit.byId('ObjectsListView');
    view.performTransition('ObjectDetailView', 1, 'slide');
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been unable to trigger an onselect event handler attached to a <div>
I have modified my PHP web app to add events to a Google Calendar.
I have successfully implemented the scrollTo jQuery plugin which scrolls to the next div
I have been unable to receive UDP multicast under VxWorks 5.5. I've joined the
I have .NET 3.5 application wrote in C# using NHibernate. Before I has OracleClientDriver
I have installed Red5 server successfully and also am able to run the demos
I am unable to get this event to fire: $(#about).click(function() { //I have put
I have a library that I have been using successfully with PHP 5.1.6 with
I have a PHP mail script that successfully sends emails to everything BUT GMail
I have two tables Users Users_Role I decided to try to add a foreign

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.