Results 1 to 2 of 2

Thread: Map gray in view

  1. #1

    Default Answered: Map gray in view

    Hi guys,

    I'm trying to put a map in the view of a TabPanel gray screen and see. Achievement see the name of Google and the Terms of Service. This is my code:

    index.html
    HTML Code:
    <script src="https://maps-api-ssl.google.com/maps/api/js?key=APIKEYMAPS&libraries=visualization"></script>
    view:
    Code:
    Ext.define('AppSencha.view.ViewMaps',{
      extend: 'Ext.Map',
    
    
      alias:'widget.viewmaps',
    
    
        config: {
          mapOptions:{
            center : new google.maps.LatLng(-12.4292568,-39.2530157),
            zoom : 13
            }
        }
    });
    Any suggestions? Thanks.

  2. Are you seeing a gray screen instead of the map? Any errors or messages in console? Have you seen the examples on the doc page and doc examples?
    http://docs.sencha.com/touch/2.4/2.4...#!/api/Ext.Map
    http://docs.sencha.com/touch/2.4/2.4...!/example/maps

  3. #2
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985
    Answers
    506

    Default

    Are you seeing a gray screen instead of the map? Any errors or messages in console? Have you seen the examples on the doc page and doc examples?
    http://docs.sencha.com/touch/2.4/2.4...#!/api/Ext.Map
    http://docs.sencha.com/touch/2.4/2.4...!/example/maps

  4. #3

    Default

    Gary Schlosberg, I see a gray screen. And if I use it in the documents:


    <scripttype="text/javascript"src="http://maps.google.com/maps/api/js?sensor=true"></script>As usual and I get this error in the console:

    Google Maps API warning: NoApiKeys https://developers.google.com/maps/d...es#no-api-keys
    util.js:212 Google Maps API warning: SensorNotRequired https://developers.google.com/maps/d...r-not-required

  5. #4

    Default

    Quote Originally Posted by Gary Schlosberg View Post
    Are you seeing a gray screen instead of the map? Any errors or messages in console? Have you seen the examples on the doc page and doc examples?
    http://docs.sencha.com/touch/2.4/2.4...#!/api/Ext.Map
    http://docs.sencha.com/touch/2.4/2.4...!/example/maps
    Thanks Gary Schlosberg,

    I realized that the problem was in the browser window when activated the tools Develop the Chorme worked well. The only detail is that the zoom in mapOptions option does not work,

    Any suggestions?

Similar Threads

  1. Replies: 1
    Last Post: 26 Nov 2014, 4:04 PM
  2. Replies: 3
    Last Post: 24 Sep 2014, 11:18 AM
  3. [FIXED] Unable to fire events from map view until map view is added to the main view.
    By bweiler in forum Sencha Touch 2.x: Bugs
    Replies: 7
    Last Post: 11 Feb 2012, 1:50 PM
  4. Replies: 2
    Last Post: 10 Feb 2012, 9:39 AM
  5. Why xtheme-gray is not really gray?!
    By wuschba in forum Ext 3.x: Help & Discussion
    Replies: 1
    Last Post: 9 Dec 2009, 8:52 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •