Google earth browser plugin does not accept custom markers with custom images - markers

I use custom images in google maps markers. I have included google earth control through google earth browser plugin. But they don't show custom images in google earth control? Any way I can solve this problem?
Thanks,
Jayesh

In general, you define your own symbols via Style/Iconstyle/Icon structure first, then you reference them in placemarks using the styleUrl element.
If you have a KML/KMZ that works well with the standalone GE application showing your custom icons, you can load it into the API using some JavaScript like
var networkLink = ge.createNetworkLink('My cool KML/KMZ file');
var link = ge.createLink('Link to My cool ...');
link.setHref('http://www.here.on.the.net/MyCool.kmz');
networkLink.setLink(link);
ge.getFeatures().appendChild(networkLink);
If not you may get the stylemaps into the "internal KML" via some code. For example see here
Hope this helps.
Good luck
MikeD

Try absolute paths for the marker icon's images. Must be a bug of some sort.

Related

How to get Labels to appear on markers in ArcGis Maps webpart for SharePoint?

I'm using the Arcgis Maps web part for SharePoint. I can get my markers / pins to appear, now I'm trying to get labels to appear identifying each. How do I go about this?
Please see screenshot below:
I've managed to find work around by simply building the map using Arcgis's Online tool (Arcgis Online) I'm not sure if the webpart is buggy, but the Online version is simple and intuitive. I pulled the map into a Web Page Viewer web part. It works very well.

Render Airbnb google map markers with images

How do i customize my markers to bear many images as the airbnb google map interface does? and how would i upload the images to google maps without using story maps? Any clue will be appreciated.
Read about Marker and Callout API (it depends on your need):
Follow official example for customizing them:
CustomCallout: https://github.com/react-community/react-native-maps/blob/master/example/examples/CustomCallout.js
CustomMarker: https://github.com/react-community/react-native-maps/blob/master/example/examples/CustomMarkers.js
If you don't like reading code, follow tutorial, eg:
https://codedaily.io/tutorials/9/Build-a-Map-with-Custom-Animated-Markers-and-Region-Focus-when-Content-is-Scrolled-in-React-Native
The above tut is not give you the same result, but it showed you how to customizing.

Google Custom Search API Search Image by Image URL

I am working on an application which will have an option for users to upload images. Once uploaded, the application will show other images from the web which look exactly similar, whether or not of the same size.
For this, I will create a temporary URL for the image so that I could provide Google custom search API the URL of the image. I would expect in response, URL's of images that are exactly the same or similar to it, perhaps in JSON format.
I did find a similar question posted in January. Till then Google did not support anything like this, apparently:
Google Javascript Custom Search API: Search images by image url
One can also simply do:
http://images.google.com/searchbyimage?site=search&image_url={Image URL}
Since that is not part of an official API, it may not be right to use this method.
Can someone help me?
Well, the answer quite simply is TinEye Commercial API https://api.tineye.com/welcome. I was looking in the wrong place I guess, I did not have any luck with Google Custom Search API.
Would you need a simple result?
If you are, you can use Vision API of Google.
This is very simple.
https://cloud.google.com/vision/
You can try on the top.
First, access the URL.
Second, upload your image file on the "Try API"
Third, click "JSON" tab menu on the result.
You can be seen JSON about similar images.

Is it possible to use "Styled Maps" with MKMapView?

Cheers,
for about a year now Google allows you to adjust the styling of their maps according to your needs. They offer a tool which allows for the easy creation of styles too:
Google Maps API Styled Maps Wizard
What I'd like to know is: can this feature of their API be used with MKMapView as provided in the Map Kit Framework? If so, how and at which point would I feed the JSON code which the wizard produces to the API?
If this doesn't work with MKMapView: What's the next best way to include Googles Styled Maps in an app?
Thanks alot!
As far as I'm aware, MKMapView doesn't provide this functionality "out of the box" as the Google Maps API does; the class reference, seems to support this hypothesis. You could re-implement some of the styles using annotations and overlays (see the class reference), but that assumes you have access to the point of interest data. Your success will likely depend on what styles you want to use.
As for the next best way, I opened your link, the styled maps wizard, on my iPad and it seems to work flawlessly. Perhaps you could host a pre-styled map somewhere online and simply show it in your app using a UIWebView? That would obviously limit you in some ways, but at least it would be styled!

Getting DOM from page using Chromium/WebKit

Trying to get access to a page's DOM after rendering. I do not need to view the page and plan to apply this programmatically without any GUI or interaction.
The reason I am interested in post-rendering is that I want to know where objects appear. Some location information is coded in the HTML (e.g., via offsetLeft), but much is not. Also, Javascript can change the ultimate positioning. I want positions that are as close to what the user will see as possible.
I've looked into Chromium code and think there is a way to do this but there is not enough documentation to get started.
Putting it VERY simply I'd be interested in pseudo-code like this:
DOMRoot *r = new Page("http://stackoverflow.com")->getDom();
Any tips on starting points?
You should use the Web API wrapper that Chromium exposes; specifically, the WebDocument class contains the functionality that you need. You can call it like this:
WebFrame * mainFrame = webView->mainFrame();
WebDocument document = mainFrame->document();
WebElement docElement = document->docElement();
// Manipulate the DOM here using docElement
...
You can browse the source code for Chromium's Web API wrapper here. Although there's not much in the way of documentation, the header files are fairly well-commented and you can browse Chrome's source code to see the API in action.
It's difficult to get started using Chromium. I recommend looking at the test_shell application. Also, a framework like the Chromium Embedded Framework (CEF) simplifies the process of embedding Chromium in your application; I use CEF in my current project and I'm very satisfied with it.