I am using Ionic-native Geo-location for getting lat and lng but when i run the code i get to know that its for "development purpose only".
i have tried v3 or others without api key.
home.html
<div class="map-wrapper">
<div id="map_center">
<img src="../../assets/icon/marker.png" />
</div>
<div #map id="map"></div>
</div>
I expected google maps without api key because i am using ionic native plugin
The fact that google maps requires a API key now is because Google changed the pricing plan for Google Maps. You are now required to create a cloud account and activate the Maps API.
For more details see: Google Maps docs.
This has nothing to do with the ionic-native plugin.
Related
I am a newbie with Grafana and I am trying to share my panel live.
I found the official doc which is well explained: https://grafana.com/docs/grafana/latest/reference/share_panel/
However, I am having an issue with my snapshot.raintank.io. I generated a link by going to share --> Snapshot--> Publish to snapshot.raintank.io. In the expire box I filled to "Never". However, when I should have data coming live on my real panel, it is not coming live to my shared panel on snapshot.raintank.io.
So, is it normal that the snapshot.raintank.io is not going live but it is only a way to interact with the existing data or am I doing something wrong?
Let me know if you need any extra information.
Please help if you have any ideas :)
My html code:
<div style="text-align: center">
<iframe src="https://snapshot.raintank.io/dashboard/snapshot/*********?viewPanel=4&orgId=2&refresh=5s" width="1000" height="350" frameborder="0"></iframe>
<iframe src="https://snapshot.raintank.io/dashboard/snapshot/*********??viewPanel=2&orgId=2&refresh=5s" width="1000" height="350" frameborder="0"></iframe>
</div>
</div>
Publishing a snapshot does just that: it publishes a snapshot. Snapshots are point-in-time captures of the data. They are captured just like you would take a snapshot of any other data store. They do not include any new or live updated information. If you want to publish your dashboard online then you will need to provide access to the dashboard directly.
Im working on adding social sharing to an Ionic app. I would like to data coming from my CMS to populate the data needed for the Social Sharing Plugin but I cannot get the syntax right. Can anyone see what I am doing wrong?
<ion-content class="home">
<button default (click)="share('{{post.name}}', '{{post.desk}}', null, '{{post.url}}')">Share</button>
<button default (click)="shareViaTwitter('{{post.name}}', null, '{{post.url}}')">Share on Twitter</button>
</ion-content>
I am trying to scrape a page that is modified by javascript after initial load using Scrapy on Raspberri Pi.
I tried to install docker and scrapinghub/splash to render the page before passing it into scrapy, but realized Splash doesn't support ARM yet. Are there other options to scrape pages using javascript with Scrapy on a Raspberry Pi?
Currently, using the normal scrapy request on the site I only get this html, which is because the site loads first, and then the javascript renders the entire content. So before the javascript the page source looks empty:
<body class="notie8 notie9 lang-{{html.lang}}">
<!--<![endif]-->
<div loading-line></div>
<div page-layout>
<div ng-view></div>
</div>
</body>
</html>
For reference, the site I am referring to is: https://www.sreality.cz/hledani/prodej/byty?region=brno
Sreality uses API, isn't this a way to go? For your URL, there's this API call: https://www.sreality.cz/api/cs/v2/estates?category_main_cb=1&category_type_cb=1&per_page=20®ion=brno&tms=1502631428897 (look for XHR requests in your browser's developer tools).
I am using Google+ JavaScript API and currently my Google+ share counts are not showing on the website.
Note: I am using Google+ JavaScript API
This is the code I tried
<!-- Place this tag in your head or just before your close body tag. -->
<script src="apis.google.com/js/platform.js" ; async defer></script>
<!-- Place this tag where you want the share button to render. -->
<div class="g-plus" data-action="share" data-annotation="vertical-bubble" data-height="60">
</div>
They have been retired now so the share counts are no longer available.
Google may have done this to speed up the load time of the Google Plus buttons.
https://plus.google.com/110610523830483756510/posts/Z1FfzduveUo
I am trying to use Google Tag Manager and implement a custom dimension in a website. I use code igniter and need to get how many facebook, twitter and googleplus logins there are. I already inserted the dataLayer in the body above the GTM code but it seems the dataLayer.push isn't sending anything to GA. I am not seeing any pageviews or custom dimensions fired in GA. Is there anything else I need to do?
<body>
<script>
dataLayer = [];
</script>
<!-- Google Tag Manager -->
<noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-XXXXXX"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-XXXXXX');</script>
<!-- End Google Tag Manager -->
<script>
dataLayer.push({'socialType': '<?php echo $adapter->id; ?>'});
</script>
Do I need to put the regular GA code or does GTM insert this for me?
From what you already have you also need to do the following:
Make sure that you have created a tag for Google Analytics in your tag manager account for page views, I assume that you have already done this.
Make sure that you have created another tag for Google Analytics, set the Analytics ID and then set the type of tag to Social.