Here Map Premium plan issue in setting MapOverlay custom view on top of marker












0















I want to add a custom layout Infowindow on top of the marker. Android Here map Basic pack was having the following features Map.InfoBubbleAdapter() ,hideInfoBubble ,getInfoBubbleContents and isInfoBubbleVisible which are now missing in the Premium pack .



As suggested in Here Map Premium plan Map.InfoBubbleAdapter() ,hideInfoBubble ,getInfoBubbleContents and isInfoBubbleVisible missing?



This are the list of issues.




  1. I have implemented MapOverlay which seems to give custom layout
    but its not aligned to the marker.

  2. The infoWindow is getting visible when i am trying to zoom in,even when i have not tuned on the visibility of layout.


  3. The position of infoWindow is not on the geoCordinate that were set to mapOverlay.



I have 20 different marker and i want to show the custom info window when user taps on any marker and turn off the previous marker .
I tried the code below but its not working and there seems no documentation on implementation.



        @Override
public boolean onMapObjectsSelected(List<ViewObject> objects) {

for (ViewObject object : objects) {
if (object.getBaseType() == ViewObject.Type.USER_OBJECT && ((MapObject) object).getType() == MapObject.Type.MARKER) {
MapMarker mapMarker = (MapMarker) object;
if(!isMapMarkerViewVisible()){
setInfoWindow(mapMarker);
}else{
removeInfoWindow();
}

return true;
}

}

return false;
}

@Override
public boolean onTapEvent(PointF pointF) {
for (MapObject mapObject : mapObjects) {
if (mapObject.getType() == MapObject.Type.MARKER) {
removeInfoWindow();
}
}
return super.onTapEvent(pointF);
}


private void setInfoWindow(MapMarker mMark) {
infoWindowText.setText(mMark.getTitle());
infoWindowText.setTag(mMark.getTitle());
mapOverlay = new MapOverlay(infoWindowView, mMark.getCoordinate());
hereMap.addMapOverlay(mapOverlay);
}

private boolean isMapMarkerViewVisible(){
return infoWindowView.getVisibility() == View.VISIBLE;
}
private void removeInfoWindow() {
if(infoWindowView!=null) {
if (infoWindowView.getVisibility() == View.VISIBLE) {
infoWindowView.setVisibility(View.INVISIBLE);
}
}
}


The above code behaves strangely .



When i try to zoom in and out the info window strangely appears on the map .Even when i have not set the visibility.
The Above link have the code that was working but its not supporting now.










share|improve this question

























  • Did you solve this issue already? I saw also your question here: github.com/heremaps/here-android-sdk-examples/issues/180

    – HERE Developer Support
    Dec 5 '18 at 7:59











  • Yes.But there are some glitches when i try to show different info window when panning the map. And also the position of views is different on different screen .The InfoBubble was better . As its not having any problem in starter pack. Please make it available in Premium pack.

    – Ravi Parmar
    Dec 5 '18 at 8:24
















0















I want to add a custom layout Infowindow on top of the marker. Android Here map Basic pack was having the following features Map.InfoBubbleAdapter() ,hideInfoBubble ,getInfoBubbleContents and isInfoBubbleVisible which are now missing in the Premium pack .



As suggested in Here Map Premium plan Map.InfoBubbleAdapter() ,hideInfoBubble ,getInfoBubbleContents and isInfoBubbleVisible missing?



This are the list of issues.




  1. I have implemented MapOverlay which seems to give custom layout
    but its not aligned to the marker.

  2. The infoWindow is getting visible when i am trying to zoom in,even when i have not tuned on the visibility of layout.


  3. The position of infoWindow is not on the geoCordinate that were set to mapOverlay.



I have 20 different marker and i want to show the custom info window when user taps on any marker and turn off the previous marker .
I tried the code below but its not working and there seems no documentation on implementation.



        @Override
public boolean onMapObjectsSelected(List<ViewObject> objects) {

for (ViewObject object : objects) {
if (object.getBaseType() == ViewObject.Type.USER_OBJECT && ((MapObject) object).getType() == MapObject.Type.MARKER) {
MapMarker mapMarker = (MapMarker) object;
if(!isMapMarkerViewVisible()){
setInfoWindow(mapMarker);
}else{
removeInfoWindow();
}

return true;
}

}

return false;
}

@Override
public boolean onTapEvent(PointF pointF) {
for (MapObject mapObject : mapObjects) {
if (mapObject.getType() == MapObject.Type.MARKER) {
removeInfoWindow();
}
}
return super.onTapEvent(pointF);
}


private void setInfoWindow(MapMarker mMark) {
infoWindowText.setText(mMark.getTitle());
infoWindowText.setTag(mMark.getTitle());
mapOverlay = new MapOverlay(infoWindowView, mMark.getCoordinate());
hereMap.addMapOverlay(mapOverlay);
}

private boolean isMapMarkerViewVisible(){
return infoWindowView.getVisibility() == View.VISIBLE;
}
private void removeInfoWindow() {
if(infoWindowView!=null) {
if (infoWindowView.getVisibility() == View.VISIBLE) {
infoWindowView.setVisibility(View.INVISIBLE);
}
}
}


The above code behaves strangely .



When i try to zoom in and out the info window strangely appears on the map .Even when i have not set the visibility.
The Above link have the code that was working but its not supporting now.










share|improve this question

























  • Did you solve this issue already? I saw also your question here: github.com/heremaps/here-android-sdk-examples/issues/180

    – HERE Developer Support
    Dec 5 '18 at 7:59











  • Yes.But there are some glitches when i try to show different info window when panning the map. And also the position of views is different on different screen .The InfoBubble was better . As its not having any problem in starter pack. Please make it available in Premium pack.

    – Ravi Parmar
    Dec 5 '18 at 8:24














0












0








0








I want to add a custom layout Infowindow on top of the marker. Android Here map Basic pack was having the following features Map.InfoBubbleAdapter() ,hideInfoBubble ,getInfoBubbleContents and isInfoBubbleVisible which are now missing in the Premium pack .



As suggested in Here Map Premium plan Map.InfoBubbleAdapter() ,hideInfoBubble ,getInfoBubbleContents and isInfoBubbleVisible missing?



This are the list of issues.




  1. I have implemented MapOverlay which seems to give custom layout
    but its not aligned to the marker.

  2. The infoWindow is getting visible when i am trying to zoom in,even when i have not tuned on the visibility of layout.


  3. The position of infoWindow is not on the geoCordinate that were set to mapOverlay.



I have 20 different marker and i want to show the custom info window when user taps on any marker and turn off the previous marker .
I tried the code below but its not working and there seems no documentation on implementation.



        @Override
public boolean onMapObjectsSelected(List<ViewObject> objects) {

for (ViewObject object : objects) {
if (object.getBaseType() == ViewObject.Type.USER_OBJECT && ((MapObject) object).getType() == MapObject.Type.MARKER) {
MapMarker mapMarker = (MapMarker) object;
if(!isMapMarkerViewVisible()){
setInfoWindow(mapMarker);
}else{
removeInfoWindow();
}

return true;
}

}

return false;
}

@Override
public boolean onTapEvent(PointF pointF) {
for (MapObject mapObject : mapObjects) {
if (mapObject.getType() == MapObject.Type.MARKER) {
removeInfoWindow();
}
}
return super.onTapEvent(pointF);
}


private void setInfoWindow(MapMarker mMark) {
infoWindowText.setText(mMark.getTitle());
infoWindowText.setTag(mMark.getTitle());
mapOverlay = new MapOverlay(infoWindowView, mMark.getCoordinate());
hereMap.addMapOverlay(mapOverlay);
}

private boolean isMapMarkerViewVisible(){
return infoWindowView.getVisibility() == View.VISIBLE;
}
private void removeInfoWindow() {
if(infoWindowView!=null) {
if (infoWindowView.getVisibility() == View.VISIBLE) {
infoWindowView.setVisibility(View.INVISIBLE);
}
}
}


The above code behaves strangely .



When i try to zoom in and out the info window strangely appears on the map .Even when i have not set the visibility.
The Above link have the code that was working but its not supporting now.










share|improve this question
















I want to add a custom layout Infowindow on top of the marker. Android Here map Basic pack was having the following features Map.InfoBubbleAdapter() ,hideInfoBubble ,getInfoBubbleContents and isInfoBubbleVisible which are now missing in the Premium pack .



As suggested in Here Map Premium plan Map.InfoBubbleAdapter() ,hideInfoBubble ,getInfoBubbleContents and isInfoBubbleVisible missing?



This are the list of issues.




  1. I have implemented MapOverlay which seems to give custom layout
    but its not aligned to the marker.

  2. The infoWindow is getting visible when i am trying to zoom in,even when i have not tuned on the visibility of layout.


  3. The position of infoWindow is not on the geoCordinate that were set to mapOverlay.



I have 20 different marker and i want to show the custom info window when user taps on any marker and turn off the previous marker .
I tried the code below but its not working and there seems no documentation on implementation.



        @Override
public boolean onMapObjectsSelected(List<ViewObject> objects) {

for (ViewObject object : objects) {
if (object.getBaseType() == ViewObject.Type.USER_OBJECT && ((MapObject) object).getType() == MapObject.Type.MARKER) {
MapMarker mapMarker = (MapMarker) object;
if(!isMapMarkerViewVisible()){
setInfoWindow(mapMarker);
}else{
removeInfoWindow();
}

return true;
}

}

return false;
}

@Override
public boolean onTapEvent(PointF pointF) {
for (MapObject mapObject : mapObjects) {
if (mapObject.getType() == MapObject.Type.MARKER) {
removeInfoWindow();
}
}
return super.onTapEvent(pointF);
}


private void setInfoWindow(MapMarker mMark) {
infoWindowText.setText(mMark.getTitle());
infoWindowText.setTag(mMark.getTitle());
mapOverlay = new MapOverlay(infoWindowView, mMark.getCoordinate());
hereMap.addMapOverlay(mapOverlay);
}

private boolean isMapMarkerViewVisible(){
return infoWindowView.getVisibility() == View.VISIBLE;
}
private void removeInfoWindow() {
if(infoWindowView!=null) {
if (infoWindowView.getVisibility() == View.VISIBLE) {
infoWindowView.setVisibility(View.INVISIBLE);
}
}
}


The above code behaves strangely .



When i try to zoom in and out the info window strangely appears on the map .Even when i have not set the visibility.
The Above link have the code that was working but its not supporting now.







android here-api






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 22 '18 at 9:46







Ravi Parmar

















asked Nov 22 '18 at 4:52









Ravi ParmarRavi Parmar

82110




82110













  • Did you solve this issue already? I saw also your question here: github.com/heremaps/here-android-sdk-examples/issues/180

    – HERE Developer Support
    Dec 5 '18 at 7:59











  • Yes.But there are some glitches when i try to show different info window when panning the map. And also the position of views is different on different screen .The InfoBubble was better . As its not having any problem in starter pack. Please make it available in Premium pack.

    – Ravi Parmar
    Dec 5 '18 at 8:24



















  • Did you solve this issue already? I saw also your question here: github.com/heremaps/here-android-sdk-examples/issues/180

    – HERE Developer Support
    Dec 5 '18 at 7:59











  • Yes.But there are some glitches when i try to show different info window when panning the map. And also the position of views is different on different screen .The InfoBubble was better . As its not having any problem in starter pack. Please make it available in Premium pack.

    – Ravi Parmar
    Dec 5 '18 at 8:24

















Did you solve this issue already? I saw also your question here: github.com/heremaps/here-android-sdk-examples/issues/180

– HERE Developer Support
Dec 5 '18 at 7:59





Did you solve this issue already? I saw also your question here: github.com/heremaps/here-android-sdk-examples/issues/180

– HERE Developer Support
Dec 5 '18 at 7:59













Yes.But there are some glitches when i try to show different info window when panning the map. And also the position of views is different on different screen .The InfoBubble was better . As its not having any problem in starter pack. Please make it available in Premium pack.

– Ravi Parmar
Dec 5 '18 at 8:24





Yes.But there are some glitches when i try to show different info window when panning the map. And also the position of views is different on different screen .The InfoBubble was better . As its not having any problem in starter pack. Please make it available in Premium pack.

– Ravi Parmar
Dec 5 '18 at 8:24












0






active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53424096%2fhere-map-premium-plan-issue-in-setting-mapoverlay-custom-view-on-top-of-marker%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53424096%2fhere-map-premium-plan-issue-in-setting-mapoverlay-custom-view-on-top-of-marker%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

MongoDB - Not Authorized To Execute Command

How to fix TextFormField cause rebuild widget in Flutter

in spring boot 2.1 many test slices are not allowed anymore due to multiple @BootstrapWith