I want to use 3 markers in a script. I've started to use Kanji and Kiro marker preset without problem.
When i've started to add a third marker (a pattern with letterA.patt file via ar.js url), google chrome (and firefox) complained about a memory problem !
The only solution founded was to modify aframe-ar.js and added letterA as marker preset, like Kiro and Kanji.
Question1: what about that memory problem with my pattern ?
Question2: why not added more marker preset (letterD...) by default in aframe-ar.js ?
Best regards,
Emmanuel
Not really the right platform for this question. You can use any number of markers that you want, you're not limited to just two. The AR.js preset might be limited but you can add your own markers with a .patt file. You can create your AR.js ready tag using the ARjs marker generator or by uploading your model and image target to the echoAR platform and then download the image marker.
After you get you .patt file you can add it to your scene like so:
<a-marker type='pattern' url='./<path to your .patt>'>
Inside your marker just add whatever you would do in a preset marker, just don't forget to close the marker tag.
Related
I have couple .png files and I need to create icons for the button.
Initially it will be a first image and when button is clicked and action is successful, the image shall be replaced with the second one.
What I can see, you can create only predetermined Vaadin icons. Documentation does not even provide images of these icons, only names, therefore I can't even decide if any of those icon will be suitable for me.
If anyone knows how to do it, I will appreciate the tip.
The setIcon method of the Button component actually accepts any component as a parameter. Thus if you want to use png-file as a icon, you can just create Image component using png as a resource for it.
Image image = new Image(png);
Button button = new Button("Button");
button.setIcon(image);
The font-icons from Vaadin Icons collection are naturally more light weight, and you can find visual map of the icons here if you use them instead: https://vaadin.com/docs/latest/components/icons
I'm trying to create an A-Frame/AR.js project that uses custom markers, it works well with marker presets but every time I upload a custom .patt file nothing shows up in front of the camera.
I'm using this custom marker generator. At first I thought maybe the issue is with the images I'm uploading but then I realized that no matter the image everytime I click 'Download marker' .patt file comes back with all 0s. So my assumption is that something is wrong with the generator itself when (not) picking up uploaded images?
I was wondering if anyone else ran into the same issue / realization and found a way around it.
Thank you!
Solved! It only works with .jpg images - .patt file comes back with all 0s when .png images are being uploaded. I hope other folks will find it helpful, too.
I am trying to add OpenLayers.Control.OverviewMap() to group of layers (geotiff with shp file) in Geoserver. Is there any way to automatically add this control to every map which I would like to display from Geoserver by OpenLayers? There already are some default control buttons like scale or navigations. I assume that this will require some changes in *js or other file in Geoserver, please let me know which one it will be.
Is it possible to display the marker tooltip (the title) by default in Google Map API 3? (Not the info windows)
Tooltip displaying is browser's behavior - it is impossible to call it with JS.
I using this library : http://code.google.com/p/google-maps-utility-library-v3/wiki/Libraries and happy with the result. For those looking similar should try this.
I have applied and configured CCK Location module to show node location on map (GMap, GMap location modules).
However there is small issue that map does not show location at the centre (address marker is off the screen and user must scroll through the map to find it ;-).
It looks like map is centred one map screen off to the left (to the west) from where it supposed to be to show marker at the centre.
I have tried to reinstall all those three modules, reset gmap macros to the simplest ones [gmap] all around but nothing helped.
Anyone knows what could be missing here?
Go to /admin/settings/gmap
Under the Default Map settings set the default size, zoom level and center of the map to what you want to show by default (before the location is selected).
Then go to /admin/content/node-type/[name-of-your-content-type]/fields/[name-of-your-location-cck-field]
(Basically click on the "configure" button after going to Manage fields for your content type)
In the GMap Macro, make sure it is something like this:
[gmap| zoom=7 | width=100% | height=400px ]
Note that it says A macro to be used as a base map for this field. This map will be recentered on the location, so the center is not that important.
See if this fixes your problem.
After few hours of struggling I have discovered conflict between GMap and (Tabs or CCK FieldGroup tabs) module.
I did put my location CCK map in field group as a tab. It looks like some javascript code conflicts there.
Till now I came up with 2 solutions:
Change your design and simply move gmap out of tab or place it on the first one.
Override css style of .ui-tabs-hide class. Change line with left:-15000px (or similar) to left:50% or left:(half-width-of-your-map-in-pixels)px.
Do not touch any other styles and everything should work fine.
Maybe there are better solutions. If yes - please share.