This is a migrated thread and some comments may be shown as answers.

Why Does Google Maps Load On Bare "Blank" Project

3 Answers 64 Views
General Discussion
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Justin
Top achievements
Rank 1
Justin asked on 19 Apr 2013, 02:13 PM
When using the simulator, it automatically includes Google Maps.  Is there any way to prevent this?  Does this get built into app binaries?

3 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 19 Apr 2013, 02:38 PM
Hello Justin,

In order for Google Maps to function, you need to add the following reference:

<script src="http://maps.google.com/maps/api/js?sensor=true"></script>

The Blank project template of Icenium does not contain this reference, so you must have chosen the jQuery or Kendo UI template, however you are not bound to stick with the defaults and can modify it at any time.

Greetings,
Steve
the Telerik team

Share feedback and vote for features on our Feedback Portal.
Want some Kendo UI online training - head over to Kendo UI Dojo.
0
Justin
Top achievements
Rank 1
answered on 19 Apr 2013, 03:22 PM
Steve,

I DID use a "blank" template.

Do this:
Start a new "blank" template
Run it
Immediately open the console and watch it access it Google Maps APIs.  
See screenshot below.

Also, why would ANY template have Google Maps by default?

Screenshot
0
Steve
Telerik team
answered on 19 Apr 2013, 04:25 PM
Hi Justin,

Thanks for the clarification. One of the features of the simulator is to give you the ability to simulate any location, so that is why Google Maps is used, for more info check: Device Simulator In Mist. You can start the Geolocation widget by clicking on the "aim crossfire" icon.

The jQuery and Kendo templates both show how to utilize the GeoLocation Cordova API and for presentation purpose use Google Maps. As stated before, you're welcome to change them at any time you want. We decided that it is better for users to have something runnable as soon as they add the template, so they can play around with the product.

Greetings,
Steve
the Telerik team

Share feedback and vote for features on our Feedback Portal.
Want some Kendo UI online training - head over to Kendo UI Dojo.
Tags
General Discussion
Asked by
Justin
Top achievements
Rank 1
Answers by
Steve
Telerik team
Justin
Top achievements
Rank 1
Share this question
or